Class CompositeTypeComparer
A composite type comparer that uses a collection of comparers to return a result. If any of the comparers return true then the result is true.
Inheritance
System.Object
CompositeTypeComparer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer.ReflectionModel
Assembly: ExtendedXmlSerializer.dll
Syntax
public sealed class CompositeTypeComparer : ITypeComparer, IEqualityComparer<TypeInfo>
Constructors
CompositeTypeComparer(ITypeComparer[])
Creates a new instance.
Declaration
public CompositeTypeComparer(params ITypeComparer[] comparers)
Parameters
ITypeComparer[]
comparers
|
CompositeTypeComparer(ImmutableArray<ITypeComparer>)
Creates a new instance.
Declaration
public CompositeTypeComparer(ImmutableArray<ITypeComparer> comparers)
Parameters
System.Collections.Immutable.ImmutableArray<ITypeComparer>
comparers
|
Methods
Equals(TypeInfo, TypeInfo)
Declaration
public bool Equals(TypeInfo x, TypeInfo y)
Parameters
System.Reflection.TypeInfo
x
|
System.Reflection.TypeInfo
y
|
Returns
System.Boolean
|
Implements
System.Collections.Generic.IEqualityComparer<T>.Equals(T, T)
GetHashCode(TypeInfo)
Declaration
public int GetHashCode(TypeInfo obj)
Parameters
System.Reflection.TypeInfo
obj
|
Returns
System.Int32
|
Implements
System.Collections.Generic.IEqualityComparer<T>.GetHashCode(T)