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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.