Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / Interval<T> Class
Type of values.
Members Example
In This Topic
    Interval<T> Class
    In This Topic
    Class that represents an interval.
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.ApiProperties.Interval<T>

    Syntax
    public class Interval<T> 
    Type Parameters
    T
    Type of values.
    Example
    The following example shows how to use the class Interval{T}.
    Interval<int> intInterval = new Interval<int>(-8, 2);
    Console.WriteLine(intInterval);
    
    intInterval.ChangeInterval(2, 2);
    Console.WriteLine(intInterval.IsInterval);
    Console.WriteLine(intInterval);
    
    Interval<double> doubleInterval = new Interval<double>(-9.7, 100);
    Console.WriteLine(doubleInterval);
    
    // Results:
    // -8 ~ 2
    // False
    // 2
    // -9,7 ~ 100
    Public Constructors
     NameDescription
    Public Constructor Creates a new instance of an interval.  
    Top
    Public Properties
     NameDescription
    Public PropertyThe higher boundary of the interval. Gets the higher boundary of this interval.  
    Public Property Specifies whether the boundaries of the interval have different values.  
    Public Property The lower boundary of the interval.  
    Top
    Public Methods
     NameDescription
    Public Method Change values of the interval.  
    Public MethodReturns a string that represents the current object.  
    Top
    See Also