[]
Converts the value of a Unicode character to it's ANSI equivalent.
public static char ToAnsi(char c)
| Type | Name | Description |
|---|---|---|
| char | c | A Unicode character. |
| Type | Description |
|---|---|
| char | An Ansi character equivalent of c in the current culture. |
Encodes the specified Unicode character to an ANSI character using the current culture.
Converts the value of a Unicode character to it's ANSI equivalent using the specified culture information.
public static char ToAnsi(char c, CultureInfo culture)
| Type | Name | Description |
|---|---|---|
| char | c | A Unicode character. |
| CultureInfo | culture | A CultureInfo object. If a null reference is passed, the current culture is assumed. |
| Type | Description |
|---|---|
| char | An Ansi character equivalent of c using the specified culture. |