TypeName.TryParse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.