public sealed class ExtensionCollectionA collection to simplify retrieving the descriptors of extensions in a descriptor for a message
Namespace
Google.Protobuf.ReflectionAssembly
Google.Protobuf.dll
Properties
UnorderedExtensions
public IList<FieldDescriptor> UnorderedExtensions { get; }Returns a readonly list of all the extensions defined in this type in the order they were defined in the source .proto file
| Property Value | |
|---|---|
| Type | Description |
IListFieldDescriptor |
|
Methods
GetExtensionsInDeclarationOrder(MessageDescriptor)
public IList<FieldDescriptor> GetExtensionsInDeclarationOrder(MessageDescriptor descriptor)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
| Parameter | |
|---|---|
| Name | Description |
descriptor |
MessageDescriptor |
| Returns | |
|---|---|
| Type | Description |
IListFieldDescriptor |
|
GetExtensionsInNumberOrder(MessageDescriptor)
public IList<FieldDescriptor> GetExtensionsInNumberOrder(MessageDescriptor descriptor)Returns a readonly list of all the extensions define in this type that extend the provided descriptor type in ascending field order
| Parameter | |
|---|---|
| Name | Description |
descriptor |
MessageDescriptor |
| Returns | |
|---|---|
| Type | Description |
IListFieldDescriptor |
|