Click or drag to resize

StartOfMonth Structure

Specifies a definition of "months" that begin on a specified day of the month (e.g. 1 for calendar months).

Namespace:  DegreeDays.Time
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public struct StartOfMonth : IEquatable<StartOfMonth>, 
	IComparable<StartOfMonth>

The StartOfMonth type exposes the following members.

Constructors
  NameDescription
Public methodStartOfMonth(Int32)
Constructs a StartOfMonth specifying a definition of "months" that begin on the specified day of the month.
Top
Properties
  NameDescription
Public propertyDayOfMonth
Gets the number between 1 and 28 (inclusive) indicating which day should be taken as the first of the month.
Top
Methods
  NameDescription
Public methodCompareTo(StartOfMonth)
Compares this StartOfMonth with the specified comparison StartOfMonth for chronological order.
Public methodEquals(Object)
Returns true if obj is a StartOfMonth instance representing the same day in the month as this; false otherwise.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(StartOfMonth)
Returns true if other represents the same day in the month as this; false otherwise.
Public methodStatic memberFromString(String)
Parses a string representation of a StartOfMonth in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601).
Public methodGetHashCode
Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode.)
Public methodToString
Returns a non-null, non-empty string representation of this StartOfMonth in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601).
(Overrides ValueTypeToString.)
Public methodStatic memberTryFromString(String, StartOfMonth)
Tries to parse a string representation of a StartOfMonth in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601). Returns true if it succeeds.
Top
Operators
  NameDescription
Public operatorStatic memberEquality(StartOfMonth, StartOfMonth)
Determines whether two specified StartOfMonth instances are equal.
Public operatorStatic memberGreaterThan(StartOfMonth, StartOfMonth)
Determines whether one specified StartOfMonth is later than another specified StartOfMonth.
Public operatorStatic memberGreaterThanOrEqual(StartOfMonth, StartOfMonth)
Determines whether one specified StartOfMonth is the same as or later than another specified StartOfMonth.
Public operatorStatic memberInequality(StartOfMonth, StartOfMonth)
Determines whether two specified StartOfMonth instances are not equal.
Public operatorStatic memberLessThan(StartOfMonth, StartOfMonth)
Determines whether one specified StartOfMonth is earlier than another specified StartOfMonth.
Public operatorStatic memberLessThanOrEqual(StartOfMonth, StartOfMonth)
Determines whether one specified StartOfMonth is the same as or earlier than another specified StartOfMonth.
Top
Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once.
See Also