Photon Fusion
2.0.9
A System.Type wrapper that can be serialized. More...
Inherits IEquatable< SerializableType >, and IEquatable< SerializableType< BaseType >>.
Public Member Functions | |
| readonly SerializableType | AsShort () |
| Converts AssemblyQualifiedName and returns a short form, without version, culture etc. More... | |
| readonly SerializableType< BaseType > | AsShort () |
| readonly override bool | Equals (object obj) |
Returns true if obj is SerializableType and the AssemblyQualifiedName is the same. More... | |
| readonly override bool | Equals (object obj) |
| readonly bool | Equals (SerializableType other) |
Returns true if the AssemblyQualifiedName is the same. More... | |
| readonly bool | Equals (SerializableType< BaseType > other) |
| readonly override int | GetHashCode () |
| Returns the hash code of the AssemblyQualifiedName. More... | |
| readonly override int | GetHashCode () |
| SerializableType (string type) | |
| Create a new instance and stores type as AssemblyQualifiedName. More... | |
| SerializableType (Type type) | |
| Create a new instance and stores full Type.AssemblyQualifiedName. To use shorter form, use AsShort. More... | |
| SerializableType (Type type) | |
Static Public Member Functions | |
| static string | GetShortAssemblyQualifiedName (Type type) |
| Converts the Type.AssemblyQualifiedName to a shorter form, without version, culture etc. More... | |
| static implicit | operator SerializableType (Type type) |
| Implicitly convert a Type to a SerializableType. More... | |
| static implicit | operator SerializableType< BaseType > (Type type) |
| static implicit | operator Type (SerializableType serializableType) |
| Implicitly convert a SerializableType to a Type. More... | |
| static implicit | operator Type (SerializableType< BaseType > serializableType) |
Public Attributes | |
| string | AssemblyQualifiedName |
| Type's assembly qualified name. More... | |
Properties | |
| readonly bool | IsValid [get] |
| Is the type valid. More... | |
| readonly Type | Value [get] |
| Retrieve the type. The value is obtained using Type.GetType(string) and cached in a static More... | |
A System.Type wrapper that can be serialized.
A generic version of SerializableType that can be used to store types that inherit from a specific base type.
| BaseType | The base type of the type stored |
| SerializableType | ( | Type | type | ) |
Create a new instance and stores full Type.AssemblyQualifiedName. To use shorter form, use AsShort.
| type | Type to store. Can be null. |
| SerializableType | ( | string | type | ) |
Create a new instance and stores type as AssemblyQualifiedName.
| type | Type name. |
| readonly SerializableType AsShort | ( | ) |
Converts AssemblyQualifiedName and returns a short form, without version, culture etc.
| readonly override bool Equals | ( | object | obj | ) |
Returns true if obj is SerializableType and the AssemblyQualifiedName is the same.
| readonly bool Equals | ( | SerializableType< BaseType > | other | ) |
Returns true if the AssemblyQualifiedName is the same.
| readonly override int GetHashCode | ( | ) |
Returns the hash code of the AssemblyQualifiedName.
|
static |
Converts the Type.AssemblyQualifiedName to a shorter form, without version, culture etc.
|
static |
Implicitly convert a Type to a SerializableType.
|
static |
Implicitly convert a SerializableType to a Type.
| string AssemblyQualifiedName |
Type's assembly qualified name.
|
get |
Is the type valid.
|
get |
Retrieve the type. The value is obtained using Type.GetType(string) and cached in a static