Class Serialization
Inheritance
Serialization
Syntax
public static class Serialization
Fields
ConstructorWarning
Declaration
public const string ConstructorWarning = "This parameterless constructor is only made public for serialization. Use another constructor instead."
Field Value
Properties
isCustomSerializing
Declaration
public static bool isCustomSerializing { get; }
Property Value
isSerializing
Declaration
public static bool isSerializing { get; }
Property Value
isUnitySerializing
Declaration
public static bool isUnitySerializing { get; set; }
Property Value
Methods
AwaitDependencies(ISerializationDepender)
Declaration
public static void AwaitDependencies(ISerializationDepender depender)
Parameters
CloneViaSerialization<T>(T, Boolean)
Declaration
public static T CloneViaSerialization<T>(this T value, bool forceReflected = false)
Parameters
Type |
Name |
Description |
T |
value |
|
Boolean |
forceReflected |
|
Returns
Type Parameters
CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
Declaration
public static void CloneViaSerializationInto<TSource, TDestination>(this TSource value, ref TDestination instance, bool forceReflected = false)
where TDestination : TSource
Parameters
Type |
Name |
Description |
TSource |
value |
|
TDestination |
instance |
|
Boolean |
forceReflected |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
Deserialize(SerializationData, Boolean)
Declaration
public static object Deserialize(this SerializationData data, bool forceReflected = false)
Parameters
Returns
DeserializeInto(SerializationData, ref Object, Boolean)
Declaration
public static void DeserializeInto(this SerializationData data, ref object instance, bool forceReflected = false)
Parameters
LogStuckDependers()
Declaration
public static void LogStuckDependers()
NotifyDependencyAvailable(ISerializationDependency)
Declaration
public static void NotifyDependencyAvailable(ISerializationDependency dependency)
Parameters
NotifyDependencyDeserialized(ISerializationDependency)
Declaration
public static void NotifyDependencyDeserialized(ISerializationDependency dependency)
Parameters
NotifyDependencyDeserializing(ISerializationDependency)
Declaration
public static void NotifyDependencyDeserializing(ISerializationDependency dependency)
Parameters
NotifyDependencyUnavailable(ISerializationDependency)
Declaration
public static void NotifyDependencyUnavailable(ISerializationDependency dependency)
Parameters
PrettyPrint(String)
Declaration
public static string PrettyPrint(string json)
Parameters
Type |
Name |
Description |
String |
json |
|
Returns
Serialize(Object, Boolean)
Declaration
public static SerializationData Serialize(this object value, bool forceReflected = false)
Parameters
Returns