Show / Hide Table of Contents

    Class ConvertibleConverter

    This utility class is designed to make System.IConvertible related conversions easier to work with.

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

    Methods

    | Improve this Doc

    FromBytes<T>(Byte[])

    Returns an System.IConvertible primitive converted from the specified array value of bytes.

    Declaration
    public static T FromBytes<T>(byte[] value)
        where T : struct, IConvertible
    Parameters
    Type Name Description
    System.Byte[] value

    The value to convert into an System.IConvertible.

    Returns
    Type Description
    T

    An System.IConvertible primitive formed by n-bytes beginning at 0.

    Type Parameters
    Name Description
    T

    The type of the expected return value after conversion.

    Exceptions
    Type Condition
    System.ArgumentNullException

    value is null.

    TypeArgumentException

    T is outside the range of allowed types.
    Allowed types are: System.Boolean, System.Char, System.Double, System.Int16, System.Int32, System.UInt16, System.UInt32 and System.UInt64.

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