Show / Hide Table of Contents

    Class TimeSpanConverterExtensions

    This is an extension implementation of the TimeSpanConverter class.

    Inheritance
    System.Object
    TimeSpanConverterExtensions
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public static class TimeSpanConverterExtensions

    Methods

    | Improve this Doc

    ToTimeSpan(Double, TimeUnit)

    Converts the specified value to its equivalent System.TimeSpan representation.

    Declaration
    public static TimeSpan ToTimeSpan(this double value, TimeUnit timeUnit)
    Parameters
    Type Name Description
    System.Double value

    The value to be converted.

    TimeUnit timeUnit

    One of the enumeration values that specifies the outcome of the conversion.

    Returns
    Type Description
    System.TimeSpan

    A System.TimeSpan that corresponds to value from timeUnit.

    Exceptions
    Type Condition
    System.OverflowException

    The value paired with timeUnit is outside its valid range.

    System.ArgumentOutOfRangeException

    timeUnit was outside its valid range.

    | Improve this Doc

    ToTimeSpan(String, TimeUnit)

    Converts the specified value to its equivalent System.TimeSpan representation.

    Declaration
    public static TimeSpan ToTimeSpan(this string value, TimeUnit timeUnit)
    Parameters
    Type Name Description
    System.String value

    The string to be converted.

    TimeUnit timeUnit

    One of the enumeration values that specifies the outcome of the conversion.

    Returns
    Type Description
    System.TimeSpan

    A System.TimeSpan that corresponds to value from timeUnit.

    Exceptions
    Type Condition
    System.ArgumentNullException

    value is null.

    System.OverflowException

    The value paired with timeUnit is outside its valid range.

    System.ArgumentOutOfRangeException

    timeUnit was outside its valid range.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX