Search Results for

    Show / Hide Table of Contents

    Class SoftTypeReference

    The soft reference to the scripting type contained in the scripting assembly.

    Inheritance
    System.Object
    SoftTypeReference
    Implements
    System.IComparable
    System.IComparable<SoftTypeReference>
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class SoftTypeReference : ValueType, IComparable, IComparable<SoftTypeReference>

    Constructors

    SoftTypeReference(String)

    Initializes a new instance of the SoftTypeReference.

    Declaration
    public SoftTypeReference(string typeName)
    Parameters
    System.String typeName

    The type name.

    Properties

    Type

    Gets or sets the type (resolves soft reference).

    Declaration
    public Type Type { get; set; }
    Property Value
    System.Type

    TypeName

    Gets or sets the type full name (eg. FlaxEngine.Actor).

    Declaration
    public string TypeName { get; set; }
    Property Value
    System.String

    Methods

    CompareTo(SoftTypeReference)

    Declaration
    public int CompareTo(SoftTypeReference other)
    Parameters
    SoftTypeReference other

    Returns
    System.Int32

    CompareTo(Object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    System.Object obj

    Returns
    System.Int32

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    System.Int32

    ToString()

    Declaration
    public override string ToString()
    Returns
    System.String

    Operators

    Implicit(SoftTypeReference to String)

    Implicit cast operator from type name to string.

    Declaration
    public static implicit operator string (SoftTypeReference s)
    Parameters
    SoftTypeReference s

    The soft type reference.

    Returns
    System.String

    The type name.

    Implicit(String to SoftTypeReference)

    Gets the soft type reference from full name.

    Declaration
    public static implicit operator SoftTypeReference(string s)
    Parameters
    System.String s

    The type name.

    Returns
    SoftTypeReference

    The soft type reference.

    Implicit(Type to SoftTypeReference)

    Gets the soft type reference from runtime type.

    Declaration
    public static implicit operator SoftTypeReference(Type s)
    Parameters
    System.Type s

    The type.

    Returns
    SoftTypeReference

    The soft type reference.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat