Declaration
public TElement FormatWithType(
TElement element,
string type,
bool isFullType
)Summary
Converts an existing element (which may represent, for example, an object, list or dictionary) into one that
additionally knows its type.
Parameters
| TElement | element |
The original element to be converted. |
| string | type |
A string that identifies the type of the object. |
| bool | isFullType |
A value indicating whether this is a fully-qualified type name or not. |
Returns
A representation of the original
element, which additionally encodes the
type.
Remarks
The returned element should be recognized by
IClassifyFormat<TElement>.GetType(TElement, out bool) as well as all the other methods that would
have also recognized the original
element.