Home
last modified time | relevance | path

Searched refs:ExtensionValue (Results 1 – 5 of 5) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/
DExtensionValue.cs49 internal sealed class ExtensionValue<T> : IExtensionValue class
54 internal ExtensionValue(FieldCodec<T> codec) in ExtensionValue() method in Google.Protobuf.ExtensionValue
67 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()
DExtensionSet.cs66 return ((ExtensionValue<TValue>)value).GetValue();
137 ((ExtensionValue<TValue>)extensionValue).SetValue(value);
DExtension.cs88 return new ExtensionValue<TValue>(codec); in CreateValue()
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DCustomOptions.cs217 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()
/third_party/protobuf/
DMakefile.am189 csharp/src/Google.Protobuf/ExtensionValue.cs \