Click or drag to resize

Collation Class

Implement how database will compare to order by/find strings according defined culture/compare options If not set, default is CurrentCulture with IgnoreCase
Inheritance Hierarchy
SystemObject
  Internal.LiteDBCollation

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class Collation : IComparer<BsonValue>, 
	IComparer<string>, IEqualityComparer<BsonValue>

The Collation type exposes the following members.

Constructors
 NameDescription
Public methodCollation(String)Initializes a new instance of the Collation class
Public methodCollation(Int32, CompareOptions)Initializes a new instance of the Collation class
Top
Properties
 NameDescription
Public propertyCulture Get database language culture
Public propertyLCID Get LCID code from culture
Public propertySortOptions Get options to how string should be compared in sort
Top
Methods
 NameDescription
Public methodCompare(BsonValue, BsonValue) 
Public methodCompare(String, String) Compare 2 string values using current culture/compare options
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEquals(BsonValue, BsonValue) 
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetHashCode(BsonValue) 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString
(Overrides ObjectToString)
Top
Fields
 NameDescription
Public fieldStatic memberBinary 
Public fieldStatic memberDefault 
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also