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
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.