Searched refs:extensionValue (Results 1 – 5 of 5) sorted by relevance
214 IExtensionValue extensionValue; field in Google.Protobuf.Reflection.CustomOptions215 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 …]
121 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);
104 var extensionValue = value as ExtensionValue<T>; in MergeFrom()105 codec.FieldMerger(ref field, extensionValue.field); in MergeFrom()
259 T extensionValue = extensionFetcher(extension);260 Assert.AreEqual(expected, extensionValue);
1616 TestAllTypes_OptionalGroup *extensionValue =1618 extensionValue.a = 1;