ResolutionTry Parse(Read Only SpanChar, IFormat Provider, Resolution) Method
Parses a span of characters into a Resolution structure.
Definition
Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
if s was successfully parsed; otherwise, .
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public static bool TryParse(
ReadOnlySpan<char> s,
IFormatProvider? provider,
out Resolution result
)VB
Public Shared Function TryParse (
s As ReadOnlySpan(Of Char),
provider As IFormatProvider,
<OutAttribute> ByRef result As Resolution
) As BooleanC++
public:
static bool TryParse(
ReadOnlySpan<wchar_t> s,
IFormatProvider^ provider,
[OutAttribute] Resolution% result
)F#
static member TryParse :
s : ReadOnlySpan<char> *
provider : IFormatProvider *
result : Resolution byref -> bool Parameters
- s ReadOnlySpanChar
- The span of characters to parse.
- provider IFormatProvider
- An object that provides culture-specific formatting information about s.
- result Resolution
- Receives the result of parsing s.
Return Value
Booleanif s was successfully parsed; otherwise, .
Implements
ISpanParsableTSelfTryParse(ReadOnlySpanChar, IFormatProvider, TSelf)Remarks
Resolutions are represented as a string using the format "width,height". For example, "1920,1080" represents a resolution of 1920 by 1080 pixels.