Skip to content

Instantly share code, notes, and snippets.

@vancura
Last active June 23, 2023 07:47
Show Gist options
  • Save vancura/7ad4607df3e262416ed511cd9dc924de to your computer and use it in GitHub Desktop.
Save vancura/7ad4607df3e262416ed511cd9dc924de to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="COM interfaces">
<TypePattern.Match>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
</Or>
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="P/Invoke structs">
<TypePattern.Match>
<And>
<Or>
<Kind Is="Struct" />
<Kind Is="Class" />
</Or>
<HasAttribute Name="System.Runtime.InteropServices.StructLayoutAttribute" />
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="P/Invoke classes (xxxNativeMethods)">
<TypePattern.Match>
<And>
<Kind Is="Class" />
<Name Is=".*NativeMethods" />
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="DataMembers">
<TypePattern.Match>
<And>
<Or>
<Kind Is="Field" />
<Kind Is="Property" />
</Or>
<HasAttribute Name="System.Runtime.Serialization.DataMemberAttribute " />
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="NUnit Test Fixtures">
<TypePattern.Match>
<And>
<Kind Is="Class" />
<HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.TestCaseFixtureAttribute" Inherited="True" />
</And>
</TypePattern.Match>
<Entry DisplayName="Setup/Teardown Methods">
<Entry.Match>
<And>
<Kind Is="Method" />
<Or>
<HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.FixtureSetUpAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.FixtureTearDownAttribute" Inherited="True" />
</Or>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="All other members" />
<Entry Priority="100" DisplayName="Test Methods">
<Entry.Match>
<And>
<Kind Is="Method" />
<HasAttribute Name="NUnit.Framework.TestAttribute" />
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</TypePattern>
<TypePattern DisplayName="Style Cop Layout" RemoveRegions="All">
<TypePattern.Match>
<Or>
<Kind Is="Class" />
<Kind Is="Struct" />
<Kind Is="Interface" />
</Or>
</TypePattern.Match>
<Region Name="Public fields">
<Entry DisplayName="Public fields">
<Entry.Match>
<And>
<Or>
<Kind Is="Constant" />
<Kind Is="Field" />
</Or>
<Or>
<Access Is="Public" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal fields">
<Entry DisplayName="Internal fields">
<Entry.Match>
<And>
<Or>
<Kind Is="Constant" />
<Kind Is="Field" />
</Or>
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private fields">
<Entry DisplayName="Private fields">
<Entry.Match>
<And>
<Or>
<Kind Is="Constant" />
<Kind Is="Field" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Constructors">
<Entry DisplayName="Constructors">
<Entry.Match>
<Kind Is="Constructor" />
</Entry.Match>
<Entry.SortBy>
<Access />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Finalizers (destructors)">
<Entry DisplayName="Finalizers (destructors)">
<Entry.Match>
<Kind Is="Destructor" />
</Entry.Match>
<Entry.SortBy>
<Access />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public delegates">
<Entry DisplayName="Public delegates">
<Entry.Match>
<And>
<Kind Is="Delegate" />
<Or>
<Access Is="Public" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal delegates">
<Entry DisplayName="Internal delegates">
<Entry.Match>
<And>
<Kind Is="Delegate" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private delegates">
<Entry DisplayName="Private delegates">
<Entry.Match>
<And>
<Kind Is="Delegate" />
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public events">
<Entry DisplayName="Public events">
<Entry.Match>
<And>
<Kind Is="Event" />
<Or>
<Access Is="Public" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal events">
<Entry DisplayName="Internal events">
<Entry.Match>
<And>
<Kind Is="Event" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private events">
<Entry DisplayName="Private events">
<Entry.Match>
<And>
<Kind Is="Event" />
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public enums">
<Entry DisplayName="Public enums">
<Entry.Match>
<And>
<Kind Is="Enum" />
<Or>
<Access Is="Public" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal enums">
<Entry DisplayName="Internal enums">
<Entry.Match>
<And>
<Kind Is="Enum" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private enums">
<Entry DisplayName="Private enums">
<Entry.Match>
<Kind Is="Enum" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public interfaces">
<Entry DisplayName="Public interfaces">
<Entry.Match>
<And>
<Kind Is="Interface" />
<Or>
<Access Is="Public" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal interfaces">
<Entry DisplayName="Internal interfaces">
<Entry.Match>
<And>
<Kind Is="Interface" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private interfaces">
<Entry DisplayName="Private interfaces">
<Entry.Match>
<Kind Is="Interface" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public properties">
<Entry DisplayName="Public properties">
<Entry.Match>
<And>
<Kind Is="Property" />
<Or>
<Access Is="Public" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal properties">
<Entry DisplayName="Internal properties">
<Entry.Match>
<And>
<Kind Is="Property" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private properties">
<Entry DisplayName="Private properties">
<Entry.Match>
<Kind Is="Property" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public indexers">
<Entry DisplayName="Public indexers">
<Entry.Match>
<And>
<Kind Is="Indexer" />
<Or>
<Access Is="Public" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal indexers">
<Entry DisplayName="Internal indexers">
<Entry.Match>
<And>
<Kind Is="Indexer" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private indexers">
<Entry DisplayName="Private indexers">
<Entry.Match>
<Kind Is="Indexer" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public methods">
<Entry DisplayName="Public methods" Priority="0">
<Entry.Match>
<And>
<Kind Is="Method" />
<Or>
<Access Is="Public" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal methods">
<Entry DisplayName="Internal methods" Priority="0">
<Entry.Match>
<And>
<Kind Is="Method" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private methods">
<Entry DisplayName="Private methods" Priority="0">
<Entry.Match>
<Kind Is="Method" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public structs">
<Entry DisplayName="Public structs">
<Entry.Match>
<And>
<Kind Is="Struct" />
<Or>
<Access Is="Public" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal structs">
<Entry DisplayName="Internal structs">
<Entry.Match>
<And>
<Kind Is="Struct" />
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private structs">
<Entry DisplayName="Private structs">
<Entry.Match>
<Kind Is="Struct" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Public classes">
<Entry DisplayName="Public classes">
<Entry.Match>
<Or>
<Access Is="Public" />
</Or>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Internal classes">
<Entry DisplayName="Internal classes">
<Entry.Match>
<Or>
<Access Is="Internal" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
<Region Name="Private classes (all other items)">
<Entry DisplayName="Private classes (all other items)">
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</Region>
</TypePattern>
</Patterns>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment