Char.INumberBase<Char>.Parse Method

Definition

Overloads

INumberBase<Char>.Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Source:
Char.cs
Source:
Char.cs
Source:
Char.cs

Parses a span of characters into a value.

C#
static char INumberBase<char>.Parse(ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider provider);

Parameters

s
ReadOnlySpan<Char>

The span of characters to parse.

style
NumberStyles

A bitwise combination of number styles that can be present in s.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

Returns

The result of parsing s.

Implements

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

INumberBase<Char>.Parse(String, NumberStyles, IFormatProvider)

Source:
Char.cs
Source:
Char.cs
Source:
Char.cs

Parses a string into a value.

C#
static char INumberBase<char>.Parse(string s, System.Globalization.NumberStyles style, IFormatProvider provider);

Parameters

s
String

The string to parse.

style
NumberStyles

A bitwise combination of number styles that can be present in s.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

Returns

The result of parsing s.

Implements

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9