Class ExtensionCollection
A collection to simplify retrieving the descriptors of extensions in a descriptor for a message
Inheritance
System.Object
ExtensionCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Reflection
Assembly: Google.Protobuf.dll
Syntax
public sealed class ExtensionCollection
Properties
UnorderedExtensions
Returns a readonly list of all the extensions defined in this type in the order they were defined in the source .proto file
Declaration
public IList<FieldDescriptor> UnorderedExtensions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<FieldDescriptor> |
Methods
GetExtensionsInDeclarationOrder(MessageDescriptor)
Returns a readonly list of all the extensions define in this type that extend the provided descriptor type in the order they were defined in the source .proto file
Declaration
public IList<FieldDescriptor> GetExtensionsInDeclarationOrder(MessageDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
MessageDescriptor | descriptor |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<FieldDescriptor> |
GetExtensionsInNumberOrder(MessageDescriptor)
Returns a readonly list of all the extensions define in this type that extend the provided descriptor type in accending field order
Declaration
public IList<FieldDescriptor> GetExtensionsInNumberOrder(MessageDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
MessageDescriptor | descriptor |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<FieldDescriptor> |