WindowsTimeChangeRuleParser.Parse(String[]) Method

Parses an array of text to return the TimeChangeRules that the array contains.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public override SortedDictionary<DateTime, TimeChangeRule> Parse(
	string[]? ruleArray
)

Parameters

ruleArray  String[]
The array of text from the source of timezone information.

Return Value

SortedDictionary<DateTime, TimeChangeRule>
The TimeChangeRules described by ruleArray.

Remarks

Because each Windows rule text actually can contain two rules, use this method for parsing Windows rules.

Exceptions

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

See Also