ドキュメント

Unity Engine

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.