Show / Hide Table of Contents

    Struct TimeRange

    Represents a period of time between two System.DateTime values.

    Implements
    System.IEquatable<TimeRange>
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public struct TimeRange : IEquatable<TimeRange>

    Constructors

    | Improve this Doc

    TimeRange(DateTime, DateTime)

    Initializes a new instance of the TimeRange struct.

    Declaration
    public TimeRange(DateTime start, DateTime end)
    Parameters
    Type Name Description
    System.DateTime start

    The start date of a time range.

    System.DateTime end

    The end date of a time range.

    Properties

    | Improve this Doc

    Duration

    Gets the duration between Start and End.

    Declaration
    public TimeSpan Duration { get; }
    Property Value
    Type Description
    System.TimeSpan

    A System.TimeSpan representing the duration between Start and End.

    | Improve this Doc

    End

    Gets the point of time where this time range end.

    Declaration
    public DateTime End { get; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime representing the point of time where this time range end.

    | Improve this Doc

    Start

    Gets the point of time where this time range begin.

    Declaration
    public DateTime Start { get; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime representing the point of time where this time range begin.

    Methods

    | Improve this Doc

    Equals(TimeRange)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(TimeRange other)
    Parameters
    Type Name Description
    TimeRange other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc

    Equals(Object)

    Determines whether the specified System.Object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to this instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc

    ToString()

    Returns a System.String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Overrides
    System.ValueType.ToString()
    | Improve this Doc

    ToString(String, IFormatProvider)

    Returns a System.String that represents this instance.

    Declaration
    public string ToString(string format, IFormatProvider provider)
    Parameters
    Type Name Description
    System.String format

    A composite format string for the System.DateTime properties.

    System.IFormatProvider provider

    An object that supplies culture-specific formatting information.

    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Operators

    | Improve this Doc

    Equality(TimeRange, TimeRange)

    Indicates whether two TimeRange instances are equal.

    Declaration
    public static bool operator ==(TimeRange range1, TimeRange range2)
    Parameters
    Type Name Description
    TimeRange range1

    The first time period to compare.

    TimeRange range2

    The second time period to compare.

    Returns
    Type Description
    System.Boolean

    true if the values of range1 and range2 are equal; otherwise, false.

    | Improve this Doc

    Inequality(TimeRange, TimeRange)

    Indicates whether two TimeRange instances are not equal.

    Declaration
    public static bool operator !=(TimeRange range1, TimeRange range2)
    Parameters
    Type Name Description
    TimeRange range1

    The first time period to compare.

    TimeRange range2

    The second time period to compare.

    Returns
    Type Description
    System.Boolean

    true if the values of range1 and range2 are not equal; otherwise, false.

    Implements

    System.IEquatable<T>

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX