Skip to content

GetFields in declaration order #19732

@tmds

Description

@tmds

If you search the internet how to do this, you will find the advice to sort by MetadataToken (e.g.: http://stackoverflow.com/questions/8067493/if-getfields-doesnt-guarantee-order-how-does-layoutkind-sequential-work)

Is this the proper way to do this? If so, perhaps it can be included in the documentation.
Does this need LayoutKind.Sequential to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.ReflectiondocumentationDocumentation bug or enhancement, does not impact product or test code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions