Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public sealed class DeserializationContext : ICacheNotificationReceiver
public DeserializationContext()
public DeserializationContext(FormatterConverter formatterConverter)
System.Runtime.Serialization.FormatterConverter | formatterConverter | The formatter converter to use. |
public DeserializationContext(StreamingContext context)
System.Runtime.Serialization.StreamingContext | context | The streaming context to use. |
public DeserializationContext(StreamingContext context, FormatterConverter formatterConverter)
System.Runtime.Serialization.StreamingContext | context | The streaming context to use. |
System.Runtime.Serialization.FormatterConverter | formatterConverter | The formatter converter to use. |
System.ArgumentNullException | The formatterConverter parameter is null. |
public TwoWaySerializationBinder Binder { get; set; }
public SerializationConfig Config { get; set; }
public IFormatterConverter FormatterConverter { get; }
public IExternalGuidReferenceResolver GuidReferenceResolver { get; set; }
public IExternalIndexReferenceResolver IndexReferenceResolver { get; set; }
public StreamingContext StreamingContext { get; }
public IExternalStringReferenceResolver StringReferenceResolver { get; set; }
public object GetExternalObject(Guid guid)
System.Guid | guid | The guid to resolve. |
System.Object | An external object reference by the given guid, or null if the guid could not be resolved. |
public object GetExternalObject(int index)
System.Int32 | index | The index to resolve. |
System.Object | An external object reference by the given index, or null if the index could not be resolved. |
public object GetExternalObject(string id)
System.String | id | The id string to resolve. |
System.Object | An external object reference by an id string, or null if the id string could not be resolved. |
public object GetInternalReference(int id)
System.Int32 | id | The id of the reference to get. |
System.Object | An internal reference from a given id, or null if the id has not been registered. |
public void RegisterInternalReference(int id, object reference)
System.Int32 | id | The id to register the reference with. |
System.Object | reference | The reference to register. |
public void Reset()