2using System.Runtime.Serialization;
11 #region Public Properties
15 [DataMember(Order = 2)]
17 public DateTime?
begin {
get;
set; }
22 [DataMember(Order = 3)]
24 public DateTime?
end {
get;
set; }
25 #endregion Public Properties
42 throw new ArgumentException(
"When both a begin and end date are specified, " +
43 "the begin date must be less than end date.");
45 #endregion Constructor
47 #region Equality Overrides
53 return other !=
null &&
54 (
begin?.Equals(other.
begin) ?? other.begin ==
null) &&
61 public override bool Equals(
object obj)
64 return Equals(objReportingPeriod);
71 return new {
begin,
end }.GetHashCode();
73 #endregion Equality Overrides
Base class used by all types and resources.
Specifies one or more aliases to be used as synonyms for the property's name.
A reporting period which dictates optional begin and end dates to constrain what event losses are inc...
DateTime? end
(Optional) The exclusive end date of the reporting period. If specified, event losses occurring on or...
DateTime? begin
(Optional) The inclusive start date of the reporting period. If specified, event losses occurring bef...
override int GetHashCode()
Get the HashCode for this ReportingPeriod.
bool Equals(ReportingPeriod other)
Determine if this ReportingPeriod is equivalent to another.
ReportingPeriod(DateTime? begin=null, DateTime? end=null)
Construct a new reporting period.
override bool Equals(object obj)
Determine if this ReportingPeriod is equivalent to another.