Show / Hide Table of Contents

    Class TypeUtilityExtensions

    This is an extension implementation of the most common methods on the TypeUtility class.

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

    Methods

    | Improve this Doc

    Is<T>(Object)

    Determines whether the specified source is of T.

    Declaration
    public static bool Is<T>(this object source)
    Parameters
    Type Name Description
    System.Object source

    The object to compare with T.

    Returns
    Type Description
    System.Boolean

    true if the specified source is of T; otherwise, false.

    Type Parameters
    Name Description
    T

    The type to compare with source.

    | Improve this Doc

    IsNot<T>(Object)

    Determines whether the specified source is not of T.

    Declaration
    public static bool IsNot<T>(this object source)
    Parameters
    Type Name Description
    System.Object source

    The object to compare with T.

    Returns
    Type Description
    System.Boolean

    true if the specified source is not of T; otherwise, false.

    Type Parameters
    Name Description
    T

    The type to compare with source.

    | Improve this Doc

    IsNullable<T>(T)

    Determines whether the specified source is a nullable System.ValueType.

    Declaration
    public static bool IsNullable<T>(this T source)
    Parameters
    Type Name Description
    T source

    The source type to check for nullable System.ValueType.

    Returns
    Type Description
    System.Boolean

    true if the specified source is nullable; otherwise, false.

    Type Parameters
    Name Description
    T

    The type of the source of T.

    | Improve this Doc

    IsNullable<T>(Nullable<T>)

    Determines whether the specified source is a nullable System.ValueType.

    Declaration
    public static bool IsNullable<T>(this T? source)
        where T : struct
    Parameters
    Type Name Description
    System.Nullable<T> source

    The source type to check for nullable System.ValueType.

    Returns
    Type Description
    System.Boolean

    true if the specified source is nullable; otherwise, false.

    Type Parameters
    Name Description
    T

    The type of the source of T.

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