Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: int GetReferenceID(TElement)

  • Declared in: RT.Serialization.IClassifyFormat<TElement>
  • Interface method
  • Abstract

Declaration

public int GetReferenceID(
    TElement element
)

Summary

Returns the ID encoded in this element. This is called only if IClassifyFormat<TElement>.IsReference(TElement) or IClassifyFormat<TElement>.IsReferable(TElement) returned true.

Parameters

TElementelement The element to decode.

Returns

The ID encoded in this element.

Remarks

This should return the same ID that was passed into IClassifyFormat<TElement>.FormatReference(int) or IClassifyFormat<TElement>.FormatReferable(TElement, int).