Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / Interval<T> Class / ToString Method
Example
In This Topic
    ToString Method (Interval<T>)
    In This Topic
    Returns a string that represents the current object.
    Syntax
    public override string ToString()

    Return Value

    A string that represents the current object.
    Remarks
    Interval in text form: 'LowerBoundary ~ HigherBoundary'
    Example
    The following example shows the text representation of the interval.
    Interval<int> interval = new Interval<int>(-15, 23);
    Interval<int> notreallyInterval = new Interval<int>(6, 6);
    
    Console.WriteLine($"Interval1: {interval.ToString()}");
    Console.WriteLine($"Interval2: {notreallyInterval.ToString()}");
    
    // Results:
    // "Interval1: -15 ~ 23"
    // "Interval2: 6"
    See Also