Version 2.1.0.0

IExternalGuidReferenceResolver interface

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public interface IExternalGuidReferenceResolver
Resolves external guid references to reference objects during serialization and deserialization.

Properties

NextResolver
Gets or sets the next resolver in the chain.
IExternalGuidReferenceResolver NextResolver { get; set; }

Methods

CanReference(Object, out Guid)
Determines whether this resolver can reference the specified value with a Guid.
bool CanReference(object value, out Guid guid)
Parameters
System.Object value

The value to check.

System.Guid guid

The Guid which references the value.

Returns
System.Boolean

true if the value can be referenced; otherwise, false.

TryResolveReference(Guid, out Object)
Tries to resolve a reference from a given Guid.
bool TryResolveReference(Guid guid, out object value)
Parameters
System.Guid guid

The Guid to resolve.

System.Object value

The resolved value.

Returns
System.Boolean

true if the value was resolved; otherwise, false.