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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eExtensionCollection\u003c/code\u003e is a class designed to simplify retrieving descriptors of extensions for a message.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the \u003ccode\u003eobject\u003c/code\u003e class and includes several inherited members, such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eGetType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUnorderedExtensions\u003c/code\u003e property provides a read-only list of all defined extensions, ordered as they appear in the source \u003ccode\u003e.proto\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetExtensionsInDeclarationOrder\u003c/code\u003e method returns a read-only list of extensions that extend a specific descriptor, ordered by their declaration in the \u003ccode\u003e.proto\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetExtensionsInNumberOrder\u003c/code\u003e method provides a read-only list of extensions that extend a specific descriptor, ordered by ascending field number.\u003c/p\u003e\n"]]],[],null,["# Class ExtensionCollection (3.27.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.27.1 (latest)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.ExtensionCollection)\n- [3.23.0](/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.ExtensionCollection)\n- [3.15.8](/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.ExtensionCollection) \n\n public sealed class ExtensionCollection\n\nA collection to simplify retrieving the descriptors of extensions in a descriptor for a message \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExtensionCollection \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Protobuf.Reflection](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection)\n\nAssembly\n--------\n\nGoogle.Protobuf.dll\n\nProperties\n----------\n\n### UnorderedExtensions\n\n public IList\u003cFieldDescriptor\u003e UnorderedExtensions { get; }\n\nReturns a readonly list of all the extensions defined in this type in\nthe order they were defined in the source .proto file\n\nMethods\n-------\n\n### GetExtensionsInDeclarationOrder(MessageDescriptor)\n\n public IList\u003cFieldDescriptor\u003e GetExtensionsInDeclarationOrder(MessageDescriptor descriptor)\n\nReturns a readonly list of all the extensions define in this type that extend\nthe provided descriptor type in the order they were defined in the source .proto file\n\n### GetExtensionsInNumberOrder(MessageDescriptor)\n\n public IList\u003cFieldDescriptor\u003e GetExtensionsInNumberOrder(MessageDescriptor descriptor)\n\nReturns a readonly list of all the extensions define in this type that extend\nthe provided descriptor type in ascending field order"]]