C# Class SIL.CoreImpl.Subtag

This class represents a subtag from the IANA language subtag registry.
Exibir arquivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CompareByName ( Subtag x, Subtag y ) : int

Compares the language subtags by name.

Equals ( Subtag other ) : bool

Determines whether the specified T:Subtag is equal to this instance.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

ToString ( ) : string

Returns a T:System.String that represents this instance.

operator ( ) : bool

Implements the operator ==.

Protected Methods

Method Description
Subtag ( string code, string name, bool isPrivateUse ) : System

Initializes a new instance of the T:Subtag class.

Method Details

CompareByName() public static method

Compares the language subtags by name.
public static CompareByName ( Subtag x, Subtag y ) : int
x Subtag The x.
y Subtag The y.
return int

Equals() public method

Determines whether the specified T:Subtag is equal to this instance.
public Equals ( Subtag other ) : bool
other Subtag The other.
return bool

Equals() public method

Determines whether the specified T:System.Object is equal to this instance.
/// The parameter is null. ///
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Subtag() protected method

Initializes a new instance of the T:Subtag class.
protected Subtag ( string code, string name, bool isPrivateUse ) : System
code string The code.
name string The name.
isPrivateUse bool if set to true this is a private use subtag.
return System

ToString() public method

Returns a T:System.String that represents this instance.
public ToString ( ) : string
return string

operator() public static method

Implements the operator ==.
public static operator ( ) : bool
return bool