Table of Contents

Class RequirePortAttribute

Namespace
Ceres.Annotations
Assembly
Ceres.Graph.dll

Notify editor that this node require input port and validate its value type

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class RequirePortAttribute : Attribute
Inheritance
RequirePortAttribute
Inherited Members

Constructors

RequirePortAttribute(Type, bool)

public RequirePortAttribute(Type portType = null, bool allowSubclass = true)

Parameters

portType Type
allowSubclass bool

Properties

AllowSubclass

Whether allow input port type is subclass of PortType

public bool AllowSubclass { get; }

Property Value

bool

PortType

Require port type constraint

public Type PortType { get; }

Property Value

Type