C# Класс FullInspector.BaseSerializer

The core API that is used for serializing and deserializing objects.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Deserialize ( MemberInfo storageType, string serializedState, ISerializationOperator serializationOperator ) : object

Deserialize the given serialized content.

Serialize ( MemberInfo storageType, object value, ISerializationOperator serializationOperator ) : string

Serialize the given object into a string.

Защищенные методы

Метод Описание
GetStorageType ( MemberInfo member ) : Type

Helper function that returns the type of object stored within the given member.

Описание методов

Deserialize() публичный абстрактный Метод

Deserialize the given serialized content.
public abstract Deserialize ( MemberInfo storageType, string serializedState, ISerializationOperator serializationOperator ) : object
storageType System.Reflection.MemberInfo /// The type of field/property that is storing this value. For example, /// an object field may be storing an int instance. In that case, /// storageType will be typeof(object), while value.GetType() will result /// in typeof(int). ///
serializedState string /// The serialized state of the object, created by calling /// Serialize(target). ///
serializationOperator ISerializationOperator /// Contains implementations for common serialization operations, such as /// storing a UnityObject reference. ///
Результат object

GetStorageType() защищенный статический Метод

Helper function that returns the type of object stored within the given member.
protected static GetStorageType ( MemberInfo member ) : Type
member System.Reflection.MemberInfo
Результат System.Type

Serialize() публичный абстрактный Метод

Serialize the given object into a string.
public abstract Serialize ( MemberInfo storageType, object value, ISerializationOperator serializationOperator ) : string
storageType System.Reflection.MemberInfo /// The type of field/property that is storing this value. For example, /// an object field may be storing an int instance. In that case, /// storageType will be typeof(object), while value.GetType() will result /// in typeof(int). ///
value object The object to serialize.
serializationOperator ISerializationOperator /// Contains implementations for common serialization operations, such as /// storing a UnityObject reference. ///
Результат string