Sorts an members that all belong to the same type such that the members declared by supertypes appear before those declared by subtypes.

Namespace:  Gallio.Common.Reflection
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public sealed class DeclaringTypeComparer<T> : IComparer<T>
where T : IMemberInfo
Visual Basic (Declaration)
Public NotInheritable Class DeclaringTypeComparer(Of T As IMemberInfo) _
	Implements IComparer(Of T)

Type Parameters

T

Examples

If type A derives from types B and if type C derives from B then given methods A.Foo, A.Bar, B.Foo, C.Quux one possible sorted order will be: B.Foo, C.Quux, A.Bar, A.Foo. The members are not sorted by name or by any other criterion except by relative specificity of the declaring types.

Inheritance Hierarchy

System..::.Object
  Gallio.Common.Reflection..::.DeclaringTypeComparer<(Of <(T>)>)

See Also