Class Duration
Class to handle durations with only some defined possible Duration.DurationTypes
Inheritance
System.Object
Duration
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.PlugIn.Logistics
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class Duration
Constructors
| Improve this Doc View SourceDuration(Int32, Duration.DurationType)
Creates a new instance
Declaration
public Duration(int value, Duration.DurationType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | See Value |
Duration.DurationType | type | See Type |
Properties
| Improve this Doc View SourceType
Gets or sets the Duration.DurationType
Declaration
public Duration.DurationType Type { get; set; }
Property Value
Type | Description |
---|---|
Duration.DurationType |
Value
Gets or sets the value
Declaration
public int Value { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAddToDateTime(Duration, DateTime)
Adds a Duration to a System.DateTime
Declaration
public static DateTime AddToDateTime(Duration duration, DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
Duration | duration | The Duration to add |
System.DateTime | dateTime | The System.DateTime to add to |
Returns
Type | Description |
---|---|
System.DateTime | The given dateTime with the added duration |
AddToDateTime(DateTime)
Adds the duration to a System.DateTime
Declaration
public DateTime AddToDateTime(DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | dateTime | The System.DateTime to add the instances duration to |
Returns
Type | Description |
---|---|
System.DateTime | The given dateTime with the added duration of this instance |