Class CharacterSet
Represents a MySQL character set, including its name, supported collations, and default collation.
public sealed class CharacterSet
- Inheritance
-
CharacterSet
- Inherited Members
Constructors
CharacterSet(string, string[], string)
Represents a MySQL character set, including its name, supported collations, and default collation.
public CharacterSet(string name, string[] collations, string defaultCollation)
Parameters
namestringThe name of the character set.
collationsstring[]An array of supported collations for the character set.
defaultCollationstringThe default collation for the character set.
Properties
Collations
An array of supported collations for the character set.
public string[] Collations { get; }
Property Value
- string[]
DefaultCollation
The default collation for the character set.
public string DefaultCollation { get; }
Property Value
Name
The name of the character set.
public string Name { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.