TypeName.TryParse Method

Definition

Tries to parse a span of characters into a type name.

public static bool TryParse (ReadOnlySpan<char> typeName, out System.Reflection.Metadata.TypeName? result, System.Reflection.Metadata.TypeNameParseOptions? options = default);
static member TryParse : ReadOnlySpan<char> * TypeName * System.Reflection.Metadata.TypeNameParseOptions -> bool
Public Shared Function TryParse (typeName As ReadOnlySpan(Of Char), ByRef result As TypeName, Optional options As TypeNameParseOptions = Nothing) As Boolean

Parameters

typeName
ReadOnlySpan<Char>

A span containing the characters representing the type name to parse.

result
TypeName

Contains the result when parsing succeeds.

options
TypeNameParseOptions

An object that describes optional TypeNameParseOptions parameters to use.

Returns

true if type name was converted successfully, otherwise, false.

Applies to