Searched refs:ExtensionValue (Results 1 – 11 of 11) 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()
50 internal sealed class ExtensionValue<T> : IExtensionValue class55 internal ExtensionValue(FieldCodec<T> codec) in ExtensionValue() method in Google.Protobuf.ExtensionValue68 return new ExtensionValue<T>(codec) in Clone()79 return other is ExtensionValue<T> in Equals()80 && codec.Equals((other as ExtensionValue<T>).codec) in Equals()81 && Equals(field, (other as ExtensionValue<T>).field); in Equals()103 if (value is ExtensionValue<T>) in MergeFrom()105 var extensionValue = value as ExtensionValue<T>; in MergeFrom()
77 if (value is ExtensionValue<TValue> extensionValue)88 … if (valueType.IsGenericType && valueType.GetGenericTypeDefinition() == typeof(ExtensionValue<>))188 ((ExtensionValue<TValue>)extensionValue).SetValue(value);
236 if (extensionValue is ExtensionValue<T>)238 ExtensionValue<T> single = extensionValue as ExtensionValue<T>;274 if (extensionValue is ExtensionValue<T>) in TryGetPrimitiveValue()276 ExtensionValue<T> single = extensionValue as ExtensionValue<T>; in TryGetPrimitiveValue()293 if (type.GetGenericTypeDefinition() == typeof(ExtensionValue<>)) in TryGetPrimitiveValue()299 …value = (T)typeInfo.GetDeclaredMethod(nameof(ExtensionValue<T>.GetValue)).Invoke(extensionValue, E… in TryGetPrimitiveValue()
381 struct ExtensionValue { struct396 std::map<std::string, ExtensionValue> extensions_; argument
201 csharp/src/Google.Protobuf/ExtensionValue.cs \
196 csharp/src/Google.Protobuf/ExtensionValue.cs \