Version 2.1.0.0

IExternalStringReferenceResolver interface

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

Properties

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

Methods

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

The value to check.

System.String id

The string which references the value.

Returns
System.Boolean

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

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

The System.String to resolve.

System.Object value

The resolved value.

Returns
System.Boolean

true if the value was resolved; otherwise, false.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.