Entitas  0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Entitas.Serialization.TypeSerializationExtension Class Reference

Static Public Member Functions

static string ToCompilableString (this Type type)
 
static string ToReadableString (this Type type)
 
static Type ToType (this string typeString)
 Tries to find and create a type based on the specified type string.
 

Detailed Description

Definition at line 8 of file TypeSerializationExtension.cs.

Member Function Documentation

§ ToCompilableString()

static string Entitas.Serialization.TypeSerializationExtension.ToCompilableString ( this Type  type)
inlinestatic

Generates a simplified type string for the specified type that can be compiled. This is useful for code generation that will produce compilable source code. e.g. int instead of System.Int32 e.g. System.Collections.Generic.Dictionary<int, string> instead of System.Collections.Generic.Dictionary`2[System.Int32,System.String]

Definition at line 16 of file TypeSerializationExtension.cs.

§ ToReadableString()

static string Entitas.Serialization.TypeSerializationExtension.ToReadableString ( this Type  type)
inlinestatic

Generates a simplified type string for the specified type that is easy to read and can be parsed and converted into System.Type. This is useful for code generation that serializes objects which is also used to create runtime objects based on the type string. e.g. int instead of System.Int32 e.g. System.Collections.Generic.Dictionary<int, string> instead of System.Collections.Generic.Dictionary`2[System.Int32,System.String]

Definition at line 46 of file TypeSerializationExtension.cs.


The documentation for this class was generated from the following file: