ModelCollationComparer Class

Compares two String objects, or two ModelIdentifier objects, or two IList<T> objects for equality or for the relationship between them.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelCollationComparer

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Class ModelCollationComparer _
    Implements IEqualityComparer(Of String), IComparer(Of String),  _
    IEqualityComparer(Of ModelIdentifier), IComparer(Of ModelIdentifier), IEqualityComparer(Of IList(Of String)),  _
    IComparer(Of IList(Of String))
public class ModelCollationComparer : IEqualityComparer<string>, 
    IComparer<string>, IEqualityComparer<ModelIdentifier>, IComparer<ModelIdentifier>, 
    IEqualityComparer<IList<string>>, IComparer<IList<string>>
public ref class ModelCollationComparer : IEqualityComparer<String^>, 
    IComparer<String^>, IEqualityComparer<ModelIdentifier^>, IComparer<ModelIdentifier^>, 
    IEqualityComparer<IList<String^>^>, IComparer<IList<String^>^>
type ModelCollationComparer =  
    class
        interface IEqualityComparer<string>
        interface IComparer<string>
        interface IEqualityComparer<ModelIdentifier>
        interface IComparer<ModelIdentifier>
        interface IEqualityComparer<IList<string>>
        interface IComparer<IList<string>>
    end
public class ModelCollationComparer implements IEqualityComparer<String>, IComparer<String>, IEqualityComparer<ModelIdentifier>, IComparer<ModelIdentifier>, IEqualityComparer<IList<String>>, IComparer<IList<String>>

The ModelCollationComparer type exposes the following members.

Constructors

  Name Description
Public method ModelCollationComparer Initializes a new instance of the ModelCollationComparer class by using the provided collation.

Top

Properties

  Name Description
Public property Collation

Top

Methods

  Name Description
Public method Compare(IList<String>, IList<String>) Compares two specified lists of String objects and returns an integer that indicates their relationship to each other in the sort order.
Public method Compare(String, String) Compares two specified String objects and returns an integer that indicates their relationship to each other in the sort order.
Public method Compare(ModelIdentifier, ModelIdentifier) Compares two specified ModelIdentifier objects and returns an integer that indicates their relationship to each other in the sort order.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Equals(IList<String>, IList<String>) Indicates whether two provided lists of type string are equal.
Public method Equals(String, String) Indicates whether two strings are equal.
Public method Equals(ModelIdentifier, ModelIdentifier) Indicates whether two provided identifiers are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode() Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetHashCode(IList<String>) Serves as a hash function for the provided list of type String.
Public method GetHashCode(String) Serves as a hash function for the provided String.
Public method GetHashCode(ModelIdentifier) Serves as a hash function for the provided ModelIdentifier.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace

IEqualityComparer<T>

IComparer<T>

ModelIdentifier