Version 2.1.0.0

IExternalIndexReferenceResolver interface

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

Methods

CanReference(Object, out Int32)
Determines whether the specified value can be referenced externally via this resolver.
bool CanReference(object value, out int index)
Parameters
System.Object value

The value to reference.

System.Int32 index

The index of the resolved value, if it can be referenced.

Returns
System.Boolean

true if the reference can be resolved, otherwise false.

TryResolveReference(Int32, out Object)
Tries to resolve the given reference index to a reference value.
bool TryResolveReference(int index, out object value)
Parameters
System.Int32 index

The index to resolve.

System.Object value

The resolved value.

Returns
System.Boolean

true if the index could be resolved to a value, 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.