Show / Hide Table of Contents

    Class TypeExtension

    Inheritance
    System.Object
    TypeExtension
    Namespace: Appearition.Common.TypeExtensions
    Assembly: Appearition.SDK.dll
    Syntax
    public static class TypeExtension

    Methods

    DeserializeCSV(String, Boolean)

    Deserializes a comma separated value (CSV) as a string array.

    Declaration
    public static string[] DeserializeCSV(this string tmp, bool removeNullOrEmpty = true)
    Parameters
    Type Name Description
    System.String tmp

    Tmp.

    System.Boolean removeNullOrEmpty

    If set to true remove null or empty.

    Returns
    Type Description
    System.String[]

    The CS.

    DestroySelf(GameObject)

    Declaration
    public static void DestroySelf(this GameObject tmp)
    Parameters
    Type Name Description
    UnityEngine.GameObject tmp

    FirstCharToUpper(String)

    Declaration
    public static string FirstCharToUpper(this string input)
    Parameters
    Type Name Description
    System.String input
    Returns
    Type Description
    System.String

    RemoveDuplicates<T>(List<T>)

    Removes the duplicates from a given list.

    Declaration
    public static void RemoveDuplicates<T>(this List<T> items)
    Parameters
    Type Name Description
    System.Collections.Generic.List<T> items

    Items.

    Type Parameters
    Name Description
    T

    The 1st type parameter.

    ToFloat(Int32)

    Returns the given int as a float

    Declaration
    public static float ToFloat(this int tmp)
    Parameters
    Type Name Description
    System.Int32 tmp

    tmp.

    Returns
    Type Description
    System.Single

    The float.

    ToInt(Single)

    Returns the given float as an int

    Declaration
    public static int ToInt(this float tmp)
    Parameters
    Type Name Description
    System.Single tmp

    tmp.

    Returns
    Type Description
    System.Int32

    The int.

    Back to top Appearition SDK for Unity API