Arbor 3: FSM & BT Graph Editor  3.7.8
ClassTypeReference Class Reference

A reference class for serializable types. More...

Inherits ISerializationCallbackReceiver.

Public Member Functions

 ClassTypeReference ()
 Create a ClassTypeReference without specifying anything. More...
 
 ClassTypeReference (Type type)
 To create a ClassTypeReference specify the Type. More...
 
bool IsAssignableFrom (Type type)
 It is judged whether or not it is assignable type. More...
 
bool Equals (ClassTypeReference typeRef)
 Returns whether this is equal to ClassTypeReference. More...
 
bool Equals (Type type)
 Returns whether this is equal to Type. More...
 
override bool Equals (object obj)
 Returns whether this is equal to object. More...
 
override int GetHashCode ()
 Get a hash code. More...
 
override string ToString ()
 Convert to a string. More...
 

Static Public Member Functions

static bool operator== (ClassTypeReference typeRef, Type type)
 Returns whether ClassTypeReference is equal to Type. More...
 
static bool operator!= (ClassTypeReference typeRef, Type type)
 Returns whether ClassTypeReference and Type are not equal. More...
 
static bool operator== (Type type, ClassTypeReference typeRef)
 Returns whether ClassTypeReference is equal to Type. More...
 
static bool operator!= (Type type, ClassTypeReference typeRef)
 Returns whether ClassTypeReference and Type are not equal. More...
 
static implicit operator Type (ClassTypeReference typeRef)
 Cast from ClassTypeReference to Type. More...
 
static implicit operator ClassTypeReference (Type type)
 Cast from Type to ClassTypeReference. More...
 
static string TidyAssemblyTypeName (Type type)
 Convert Type to a serializable string. More...
 
static Type GetAssemblyType (string assemblyTypeName)
 Get System.Type from string. More...
 

Properties

Type type [get, set]
 Reference type More...
 
string assemblyTypeName [get]
 Serializable format type name More...
 

Detailed Description

A reference class for serializable types.

To restrict selectable types from the Editor, specify an attribute that inherits ClassTypeConstraintAttribute.

Constructor & Destructor Documentation

◆ ClassTypeReference() [1/2]

Create a ClassTypeReference without specifying anything.

◆ ClassTypeReference() [2/2]

ClassTypeReference ( Type  type)

To create a ClassTypeReference specify the Type.

Member Function Documentation

◆ Equals() [1/3]

bool Equals ( ClassTypeReference  typeRef)

Returns whether this is equal to ClassTypeReference.

Parameters
typeRefValue of ClassTypeReference
Returns
Returns true if they are equal.

◆ Equals() [2/3]

override bool Equals ( object  obj)

Returns whether this is equal to object.

Parameters
objobject value
Returns
Returns true if they are equal.

◆ Equals() [3/3]

bool Equals ( Type  type)

Returns whether this is equal to Type.

Parameters
typeType value
Returns
Returns true if they are equal.

◆ GetAssemblyType()

static Type GetAssemblyType ( string  assemblyTypeName)
static

Get System.Type from string.

Parameters
assemblyTypeNameType name
Returns
System.Type. If assemblyTypeName is empty or null, it returns null.

◆ GetHashCode()

override int GetHashCode ( )

Get a hash code.

Returns
Hash code

◆ IsAssignableFrom()

bool IsAssignableFrom ( Type  type)

It is judged whether or not it is assignable type.

Parameters
typeDetermining type
Returns
Returns true if it is an assignable type.

◆ operator ClassTypeReference()

static implicit operator ClassTypeReference ( Type  type)
static

Cast from Type to ClassTypeReference.

Parameters
typeValue of Type

◆ operator Type()

static implicit operator Type ( ClassTypeReference  typeRef)
static

Cast from ClassTypeReference to Type.

Parameters
typeRefValue of ClassTypeReference

◆ operator!=() [1/2]

static bool operator!= ( ClassTypeReference  typeRef,
Type  type 
)
static

Returns whether ClassTypeReference and Type are not equal.

Parameters
typeRefValue of ClassTypeReference
typeType value
Returns
Returns true if it is not equal.

◆ operator!=() [2/2]

static bool operator!= ( Type  type,
ClassTypeReference  typeRef 
)
static

Returns whether ClassTypeReference and Type are not equal.

Parameters
typeType value
typeRefValue of ClassTypeReference
Returns
Returns true if it is not equal.

◆ operator==() [1/2]

static bool operator== ( ClassTypeReference  typeRef,
Type  type 
)
static

Returns whether ClassTypeReference is equal to Type.

Parameters
typeRefValue of ClassTypeReference
typeType value
Returns
Returns true if they are equal.

◆ operator==() [2/2]

static bool operator== ( Type  type,
ClassTypeReference  typeRef 
)
static

Returns whether ClassTypeReference is equal to Type.

Parameters
typeType value
typeRefValue of ClassTypeReference
Returns
Returns true if they are equal.

◆ TidyAssemblyTypeName()

static string TidyAssemblyTypeName ( Type  type)
static

Convert Type to a serializable string.

Parameters
typeType value
Returns
Serializable string

◆ ToString()

override string ToString ( )

Convert to a string.

Returns
Converted string

Property Documentation

◆ assemblyTypeName

string assemblyTypeName
get

Serializable format type name

◆ type

Type type
getset

Reference type