Searched refs:ExtensionValue (Results 1 – 5 of 5) sorted by relevance
49 internal sealed class ExtensionValue<T> : IExtensionValue class54 internal ExtensionValue(FieldCodec<T> codec) in ExtensionValue() method in Google.Protobuf.ExtensionValue67 return new ExtensionValue<T>(codec) in Clone()78 return other is ExtensionValue<T> in Equals()79 && codec.Equals((other as ExtensionValue<T>).codec) in Equals()80 && Equals(field, (other as ExtensionValue<T>).field); in Equals()102 if (value is ExtensionValue<T>) in MergeFrom()104 var extensionValue = value as ExtensionValue<T>; in MergeFrom()
66 return ((ExtensionValue<TValue>)value).GetValue();137 ((ExtensionValue<TValue>)extensionValue).SetValue(value);
88 return new ExtensionValue<TValue>(codec); in CreateValue()
217 if (extensionValue is ExtensionValue<T>)219 ExtensionValue<T> single = extensionValue as ExtensionValue<T>;254 if (extensionValue is ExtensionValue<T>) in TryGetPrimitiveValue()256 ExtensionValue<T> single = extensionValue as ExtensionValue<T>; in TryGetPrimitiveValue()273 if (type.GetGenericTypeDefinition() == typeof(ExtensionValue<>)) in TryGetPrimitiveValue()279 …value = (T)typeInfo.GetDeclaredMethod(nameof(ExtensionValue<T>.GetValue)).Invoke(extensionValue, E… in TryGetPrimitiveValue()
189 csharp/src/Google.Protobuf/ExtensionValue.cs \