TimeChangeRuleParserParse(String) Method

Parses a line of text to return the TimeChangeRules that the line represents.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public virtual TimeChangeRule? Parse(
	string ruleText
)

Parameters

ruleText  String
The raw text from the source of timezone information.

Return Value

TimeChangeRule
The TimeChangeRules described by ruleText.

Remarks

This method no longer throws an InvalidTimeZoneException if ruleText is invalid. To force an exception, use Parse(String, Boolean) instead.

Exceptions

ArgumentExceptionruleText does not contain a string that can be parsed into a TimeChangeRule.

See Also