Interface IObjectReferenceService
Service used by serializers for different reference types (like IHasID or IHasReferenceableSerializableID).
Namespace: Eco.Core.Serialization.Internal
Assembly: Eco.Core.dll
Syntax
public interface IObjectReferenceService
Methods
GetId(Object)
Returns identifier for instance
.
Declaration
int GetId(object instance)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance |
Returns
Type | Description |
---|---|
System.Int32 |
MakeReference(Type, Int32)
Makes IObjectReference for type
and id
.
Declaration
DecodedObject MakeReference(Type type, int id)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Int32 | id |
Returns
Type | Description |
---|---|
DecodedObject |