Collation Class |
public class Collation : IComparer<BsonValue>, IComparer<string>, IEqualityComparer<BsonValue>
The Collation type exposes the following members.
| Name | Description | |
|---|---|---|
| Collation(String) | Initializes a new instance of the Collation class | |
| Collation(Int32, CompareOptions) | Initializes a new instance of the Collation class |
| Name | Description | |
|---|---|---|
| Culture | Get database language culture | |
| LCID | Get LCID code from culture | |
| SortOptions | Get options to how string should be compared in sort |
| Name | Description | |
|---|---|---|
| Compare(BsonValue, BsonValue) | ||
| Compare(String, String) | Compare 2 string values using current culture/compare options | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Equals(BsonValue, BsonValue) | ||
| 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 the default hash function. (Inherited from Object) | |
| GetHashCode(BsonValue) | ||
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString | (Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |