ResolutionParse(String, IFormatProvider) 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 Resolution Parse(
	string s,
	IFormatProvider? provider
)

Parameters

s  String
The string to parse.
provider  IFormatProvider
An object that provides culture-specific formatting information about s.

Return Value

Resolution
The result of parsing s.

Implements

IParsableTSelfParse(String, IFormatProvider)

Remarks

Resolutions are represented as a string using the format "width,height". For example, "1920,1080" represents a resolution of 1920 by 1080 pixels.

Exceptions

FormatExceptions is not in the correct format.

See Also