Szerkesztés

Megosztás a következőn keresztül:


Ascii.IsValid Method

Definition

Overloads

IsValid(Byte)

Determines whether the provided value is ASCII byte.

IsValid(Char)

Determines whether the provided value is ASCII char.

IsValid(ReadOnlySpan<Byte>)

Determines whether the provided value contains only ASCII bytes.

IsValid(ReadOnlySpan<Char>)

Determines whether the provided value contains only ASCII chars.

IsValid(Byte)

Source:
Ascii.cs
Source:
Ascii.cs

Determines whether the provided value is ASCII byte.

public:
 static bool IsValid(System::Byte value);
public static bool IsValid (byte value);
static member IsValid : byte -> bool
Public Shared Function IsValid (value As Byte) As Boolean

Parameters

value
Byte

The value to inspect.

Returns

true if value is ASCII, false otherwise.

Applies to

IsValid(Char)

Source:
Ascii.cs
Source:
Ascii.cs

Determines whether the provided value is ASCII char.

public:
 static bool IsValid(char value);
public static bool IsValid (char value);
static member IsValid : char -> bool
Public Shared Function IsValid (value As Char) As Boolean

Parameters

value
Char

The value to inspect.

Returns

true if value is ASCII, false otherwise.

Applies to

IsValid(ReadOnlySpan<Byte>)

Source:
Ascii.cs
Source:
Ascii.cs

Determines whether the provided value contains only ASCII bytes.

public:
 static bool IsValid(ReadOnlySpan<System::Byte> value);
public static bool IsValid (ReadOnlySpan<byte> value);
static member IsValid : ReadOnlySpan<byte> -> bool
Public Shared Function IsValid (value As ReadOnlySpan(Of Byte)) As Boolean

Parameters

value
ReadOnlySpan<Byte>

The value to inspect.

Returns

true if value contains only ASCII bytes or is empty; false otherwise.

Applies to

IsValid(ReadOnlySpan<Char>)

Source:
Ascii.cs
Source:
Ascii.cs

Determines whether the provided value contains only ASCII chars.

public:
 static bool IsValid(ReadOnlySpan<char> value);
public static bool IsValid (ReadOnlySpan<char> value);
static member IsValid : ReadOnlySpan<char> -> bool
Public Shared Function IsValid (value As ReadOnlySpan(Of Char)) As Boolean

Parameters

value
ReadOnlySpan<Char>

The value to inspect.

Returns

true if value contains only ASCII chars or is empty; false otherwise.

Applies to