ExpansionLogic

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

Constructors

ExpansionLogic

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

Properties

Logic

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

Type

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

Methods

IsImplicated

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

Convertors

OperationResultDescription
implicitTypeExpansionLogic