Home
last modified time | relevance | path

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

/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DCustomOptions.cs214 IExtensionValue extensionValue; field in Google.Protobuf.Reflection.CustomOptions
215 if (values.TryGetValue(field, out extensionValue))
217 if (extensionValue is ExtensionValue<T>)
219 ExtensionValue<T> single = extensionValue as ExtensionValue<T>;
225 else if (extensionValue is RepeatedExtensionValue<T>)
227 … RepeatedExtensionValue<T> repeated = extensionValue as RepeatedExtensionValue<T>;
251 IExtensionValue extensionValue; in TryGetPrimitiveValue()
252 if (values.TryGetValue(field, out extensionValue)) in TryGetPrimitiveValue()
254 if (extensionValue is ExtensionValue<T>) in TryGetPrimitiveValue()
256 ExtensionValue<T> single = extensionValue as ExtensionValue<T>; in TryGetPrimitiveValue()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DExtensionSet.cs121 IExtensionValue extensionValue;
124 extensionValue = extension.CreateValue();
126 set.ValuesByNumber.Add(extension.FieldNumber, extensionValue);
130 if (!set.ValuesByNumber.TryGetValue(extension.FieldNumber, out extensionValue))
132 extensionValue = extension.CreateValue();
133 set.ValuesByNumber.Add(extension.FieldNumber, extensionValue);
137 ((ExtensionValue<TValue>)extensionValue).SetValue(value);
207 IExtensionValue extensionValue;
208 if (set != null && set.ValuesByNumber.TryGetValue(lastFieldNumber, out extensionValue))
210 extensionValue.MergeFrom(ref ctx);
DExtensionValue.cs104 var extensionValue = value as ExtensionValue<T>; in MergeFrom()
105 codec.FieldMerger(ref field, extensionValue.field); in MergeFrom()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DCustomOptionsTest.cs259 T extensionValue = extensionFetcher(extension);
260 Assert.AreEqual(expected, extensionValue);
/third_party/protobuf/objectivec/Tests/
DGPBMessageTests.m1616 TestAllTypes_OptionalGroup *extensionValue =
1618 extensionValue.a = 1;