Skip to main content

Class Language

Namespace: HarfBuzzSharp
Assembly: VelloSharp.HarfBuzzSharp.dll

public sealed class Language : IEquatable<Language>

Inheritance

objectLanguage

Implements

IEquatable<Language>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Language(string)

public Language(string name)

Parameters

name string

Language(CultureInfo)

public Language(CultureInfo culture)

Parameters

culture CultureInfo

Properties

Name

public string Name { get; }

Property Value

string

Methods

Equals(Language?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Language? other)

Parameters

other Language?

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object?

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromBcp47(string)

public static Language FromBcp47(string name)

Parameters

name string

Returns

Language

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.