Tanoda
RuntimeUnityEditor.Core.Utils.TomlTypeConverter.TypeConverter Class Reference

A serializer/deserializer combo for some type(s). Used by the config system. More...

Properties

Func< object, Type, string > ConvertToString [get, set]
 Used to serialize the type into a (hopefully) human-readable string. Object is the instance to serialize, Type is the object's type. More...
 
Func< string, Type, object > ConvertToObject [get, set]
 Used to deserialize the type from a string. String is the data to deserialize, Type is the object's type, should return instance to an object of Type. More...
 

Detailed Description

A serializer/deserializer combo for some type(s). Used by the config system.

Definition at line 16 of file TomlTypeConverter.cs.

Property Documentation

◆ ConvertToObject

Func<string, Type, object> RuntimeUnityEditor.Core.Utils.TomlTypeConverter.TypeConverter.ConvertToObject
getset

Used to deserialize the type from a string. String is the data to deserialize, Type is the object's type, should return instance to an object of Type.

Definition at line 28 of file TomlTypeConverter.cs.

◆ ConvertToString

Func<object, Type, string> RuntimeUnityEditor.Core.Utils.TomlTypeConverter.TypeConverter.ConvertToString
getset

Used to serialize the type into a (hopefully) human-readable string. Object is the instance to serialize, Type is the object's type.

Definition at line 22 of file TomlTypeConverter.cs.


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