Table of Contents

Method Create

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

Create<T>(string, SlotDirection, int)

Creates a slot instance from a compile-time slot type.

public static ISlot Create<T>(string name, SlotDirection direction, int id) where T : ISlot, new()

Parameters

name string

Display name of the slot.

direction SlotDirection

Input or output direction.

id int

Per-node slot identifier.

Returns

ISlot

Type Parameters

T

Concrete slot type to instantiate.

Create(Type, string, SlotDirection, int)

Creates a slot instance by invoking the standard (string, SlotDirection, int) constructor on the supplied slot type.

public static ISlot Create(Type t, string name, SlotDirection direction, int id)

Parameters

t Type

Concrete slot type to instantiate.

name string

Display name of the slot.

direction SlotDirection

Input or output direction.

id int

Per-node slot identifier.

Returns

ISlot