Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InsertExtension

Adds the ISource extensions at the position of the SmartFormatter.GetSourceExtensions list of this formatter, if the Type has not been added before. If the extension implements IInitializer, IInitializer.Initialize will be invoked.
Read time 1 minuteLast updated 13 days ago

Definition

InsertExtension(int, ISource)

Adds the ISource extensions at the
position
of the SmartFormatter.GetSourceExtensions list of this formatter, if the Type has not been added before. If the extension implements IInitializer, IInitializer.Initialize will be invoked.
public SmartFormatter InsertExtension(int position, ISource sourceExtension)

Parameters

position

The position in the SourceExtensions list where new extensions will be added.

sourceExtension

Source extension to insert.

Returns

Type

Description

SmartFormatterThis SmartFormatter instance.

InsertExtension(int, IFormatter)

Adds the IFormatter extension at the
position
of the SmartFormatter.GetFormatterExtensions list of this formatter, if the Type has not been added before. If the extension implements IInitializer, IInitializer.Initialize will be invoked.
public SmartFormatter InsertExtension(int position, IFormatter formatterExtension)

Parameters

position

The position in the formatter extensions list where the new extension is added.

formatterExtension

Formatter extension to insert.

Returns

Type

Description

SmartFormatterThis SmartFormatter instance.