ExpansionLogic

References
public sealed class ExpansionLogic
A type + expansion logic pair used in tree expansion.

Constructors

ExpansionLogic

#
Create an expansion logic instance.
public ExpansionLogic(
type,
The type we wish to expand.
logic = null
The optional expansion override. If omitted, a foreach loop over the IEnumerable will be used.
)

Properties

Logic

#
Gets the expansion logic.
public Func<IPear, ITwig> Logic { get; }

Type

#
Gets the type to be expanded. Careful, this type may be a generic type definition.
public Type Type { get; }

Methods

IsImplicated

#
Test to see if a given type is covered by this expansion logic.
public bool IsImplicated(
type
)

Convertors

OperationResultDescription
implicitTypeExpansionLogic