Skip to content

Compono.CompositionMemberRuleBuilder TParent,TMember .WithCollectionSize(int)

Compono

Compono.CompositionMemberRuleBuilder<TParent,TMember>

CompositionMemberRuleBuilder\<TParent,TMember>.WithCollectionSize(int) Method

Overrides the default collection size for this member only, following the same WithCollectionSize(int) precedence: this override wins over the global default and the built-in size of 3.

public Compono.CompositionBuilder WithCollectionSize(int size);

Parameters

size System.Int32

The collection size to build for this member.

Returns

CompositionBuilder

Exceptions

System.ArgumentOutOfRangeException
size is negative.