Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: TElement FormatReferable(TElement, int)

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

Declaration

public TElement FormatReferable(
    TElement element,
    int refId
)

Summary

Converts an existing element (which may represent, for example, an object, list or dictionary) into one that can be referred to by a reference (see IClassifyFormat<TElement>.FormatReference(int)).

Parameters

TElementelement The original element to be converted.
intrefId The reference ID.

Returns

A representation of the original element, which additionally encodes the referable refId.

Remarks

The returned element should be recognized by IClassifyFormat<TElement>.IsReferable(TElement) as well as all the other methods that would have also recognized the original element.