PeriodicSpecialDay Class

Default implementation of IPeriodicSpecialDay

Definition

Namespace: DHI.Mike1D.BoundaryModule.PeriodicItem
Assembly: DHI.Mike1D.BoundaryModule (in DHI.Mike1D.BoundaryModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class PeriodicSpecialDay : IPeriodicSpecialDay, 
	IExtensibleDataObject
Inheritance
Object    PeriodicSpecialDay
Implements
IPeriodicSpecialDay, IExtensibleDataObject

Constructors

PeriodicSpecialDay Create new special day on the specified DateTime.Date. indicating whether the date is specific or yearly recurring.

Properties

ExtensionData Data from an extended DataContract not recognized here
Id ID for Special day
Usage Set how to use this special day.
  • -1 : – Do not use this.
  • 0-6 : – weekdays, as returned by DateTime: 0=sunday,..., 6=saturday.

Methods

Check(DateTime, Int32) Check whether a date matches this special day. A usage is returned if the date matches the specialday. See also optimized version below, to use when date.Month and date.Day is precalculated.
Check(DateTime, Int32, Int32, Int32) Check whether a date matches this special day. A usage is returned if the date matches the specialday. Optimized version, when the date.Month and date.Day is precalculated.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also