Class PinAttribute
Specifies the pins for a circuit component that extends IComponent.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class PinAttribute : Attribute
Constructors
PinAttribute(int, string)
Initializes a new instance of the PinAttribute class.
Declaration
public PinAttribute(int index, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the pin. |
| string | name | The name of the pin. |
Properties
Index
The index of the pin.
Declaration
public int Index { get; }
Property Value
| Type | Description |
|---|---|
| int |
Name
The name of the pin.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |