Partager via


DomainClassInheritanceComparer<T> Class

Definition

Class to order domain classes by their inheritance tree, so leaf classes come first.

generic <typename T>
 where T : DomainClasspublic ref class DomainClassInheritanceComparer : System::Collections::Generic::IComparer<T>, System::Collections::IComparer
public class DomainClassInheritanceComparer<T> : System.Collections.Generic.IComparer<T>, System.Collections.IComparer where T : DomainClass
type DomainClassInheritanceComparer<'T (requires 'T :> DomainClass)> = class
    interface IComparer
    interface IComparer<'T (requires 'T :> DomainClass)>
Public Class DomainClassInheritanceComparer(Of T)
Implements IComparer, IComparer(Of T)

Type Parameters

T
Inheritance
DomainClassInheritanceComparer<T>
Derived
Implements

Remarks

Do not use this class with a SortedList or SortedDictionary class as the fact that it returns 0 for unrelated classes means that keys will no longer be based on object identity.

Constructors

DomainClassInheritanceComparer<T>()

Methods

Compare(Object, Object)

Compare two Domain Classes

Compare(T, T)

Compare two domain classes

Applies to