Click or drag to resize

StartOfYearTryFromString Method

Tries to parse a string representation of a StartOfYear in --MM-DD format, the format used by XML Schema's gMonthDay type (based on ISO 8601). Returns true if it succeeds.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static bool TryFromString(
	string startOfYearString,
	out StartOfYear result
)

Parameters

startOfYearString  String
A string with format --MM-DD, where MM is a number between 01 and 12 (inclusive) representing the month of the year, and DD is a number between 01 and the number of days in the month MM (inclusive), the maximum being 28 for February.
result  StartOfYear
When this method returns, contains the StartOfYear represented by startOfYearString if the parsing succeeded, or the default StartOfYear if it failed.

Return Value

Boolean
true if the parsing succeeded, false if it failed.
Exceptions
ExceptionCondition
ArgumentNullExceptionstartOfYearString is null.
See Also