Share via


ModelReaderWriterTypeBuilder.AddItem(Object, Object) Method

Definition

Adds an item to the passed in collection builder.

protected virtual void AddItem(object collectionBuilder, object? item);
abstract member AddItem : obj * obj -> unit
override this.AddItem : obj * obj -> unit
Protected Overridable Sub AddItem (collectionBuilder As Object, item As Object)

Parameters

collectionBuilder
Object

Represents the collection builder to which the item will be added.

item
Object

Represents the item that will be added to the collection builder.

Remarks

The collection builder instance that is being passed in is the instance returned from CreateInstance(). The state of the collection builder is maintained internally by ModelReaderWriter and is not needed to be maintained by the implementation.

Applies to