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 | |
---|---|---|
ModelCollationComparer | Initializes a new instance of the ModelCollationComparer class by using the provided collation. |
Top
Properties
Name | Description | |
---|---|---|
Collation |
Top
Methods
Name | Description | |
---|---|---|
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. | |
Compare(String, String) | Compares two specified String objects and returns an integer that indicates their relationship to each other in the sort order. | |
Compare(ModelIdentifier, ModelIdentifier) | Compares two specified ModelIdentifier objects and returns an integer that indicates their relationship to each other in the sort order. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Equals(IList<String>, IList<String>) | Indicates whether two provided lists of type string are equal. | |
Equals(String, String) | Indicates whether two strings are equal. | |
Equals(ModelIdentifier, ModelIdentifier) | Indicates whether two provided identifiers are equal. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHashCode(IList<String>) | Serves as a hash function for the provided list of type String. | |
GetHashCode(String) | Serves as a hash function for the provided String. | |
GetHashCode(ModelIdentifier) | Serves as a hash function for the provided ModelIdentifier. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.