Search Results for

    Show / Hide Table of Contents

    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 Source

    Duration(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 Source

    Type

    Gets or sets the Duration.DurationType

    Declaration
    public Duration.DurationType Type { get; set; }
    Property Value
    Type Description
    Duration.DurationType
    | Improve this Doc View Source

    Value

    Gets or sets the value

    Declaration
    public int Value { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    AddToDateTime(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

    | Improve this Doc View Source

    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

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx