Search Results for

    Show / Hide Table of Contents

    Class TypeExtensions

    Helper functions supporting use of Type.

    Inheritance
    object
    TypeExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: IAI.DT.DataModel.Utilities
    Assembly: IAI.DT.DataModel.dll
    Syntax
    public static class TypeExtensions

    Methods

    GetFriendlyName(Type)

    Gets the human readable name of a type.

    Declaration
    public static string GetFriendlyName(this Type type)
    Parameters
    Type Name Description
    Type type

    The type for which the name is required

    Returns
    Type Description
    string

    The human readable name of the provided type.

    GetNonNullableType(Type)

    Get the Non nullable version of the type

    Declaration
    public static Type GetNonNullableType(this Type type)
    Parameters
    Type Name Description
    Type type

    The type for which a non nullable equivalent is required.

    Returns
    Type Description
    Type

    The non nullable type

    GetNullableType(Type)

    Get the nullable version of the type.

    Declaration
    public static Type GetNullableType(this Type type)
    Parameters
    Type Name Description
    Type type

    The type for which a nullable equivalent is required.

    Returns
    Type Description
    Type

    The nullable type

    In this article
    Back to top Generated by DocFX