Day Instance Class
A day instance item. The properties of this class define a day of the week instance on which a
recurrence date may fall.
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
[SerializableAttribute]
public class DayInstance : ISerializableVB
<SerializableAttribute>
Public Class DayInstance
Implements ISerializableC++
[SerializableAttribute]
public ref class DayInstance : ISerializableF#
[<SerializableAttribute>]
type DayInstance =
class
interface ISerializable
end- Inheritance
- Object DayInstance
- Implements
- ISerializable
Remarks
The day instance can be generic specifying that all instances are included (i.e. all Mondays) or
it can refer to a specific instance (i.e. the second Monday, the third from last Tuesday, etc).
Constructors
| DayInstance(DayInstance) | Copy constructor |
| DayInstance(DayOfWeek) | Constructor. This version constructs a day instance that specifies only the day of the week. This indicates that all instances of the day of the week are to be included. |
| DayInstance(Int32, DayOfWeek) | Constructor. This version constructs a day instance that specifies a specific occurrence of the day of the week. |
| DayInstance(SerializationInfo, StreamingContext) | Deserialization constructor for use with ISerializable |
Properties
| DayOfWeek | This property is used to get or set the week day used for the instance |
| Instance | This property is used to get or set the instance value for the day |
Methods
| Equals |
This is overridden to allow proper comparison of DayInstance objects
(Overrides ObjectEquals(Object)) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode |
Get a hash code for the day instance object
(Overrides ObjectGetHashCode) |
| GetObjectData | This implements the ISerializable interface and adds data to the serialization info. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| NumericSuffix | This is used to get the descriptive suffix for a number (i.e. "st" for 1st, "nd" for 2nd, etc). |
| ToDescription | Get a description of the day instance |
| ToString |
Convert the day instance to its string description
(Overrides ObjectToString) |