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
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.