ResolutionTryParse(String, IFormatProvider, Resolution) Method

Parses a string into a Resolution structure.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.1.0+446b05628b4ec6933ca1b84b1f778ac43fb60ce9
C#
public static bool TryParse(
	string? s,
	IFormatProvider? provider,
	out Resolution? result
)

Parameters

s  String
The string to parse.
provider  IFormatProvider
An object that provides culture-specific formatting information about s.
result  Resolution
Receives the result of parsing s.

Return Value

Boolean
if s was successfully parsed; otherwise, .

Implements

IParsableTSelfTryParse(String, 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.

See Also