Show / Hide Table of Contents

Class Variable

A class that describes an unknown variable in a system of equations.

Inheritance
object
Variable
Implements
IVariable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public class Variable : IVariable

Constructors

Variable(string, IUnit)

Initializes a new instance of the Variable class.

Declaration
public Variable(string name, IUnit unit)
Parameters
Type Name Description
string name

The name.

IUnit unit

The unit.

Properties

Name

Gets the name of the variable.

Declaration
public string Name { get; }
Property Value
Type Description
string

The name of the variable. Can be null.

Unit

Gets the units of the quantity.

Declaration
public IUnit Unit { get; }
Property Value
Type Description
IUnit

The units.

Methods

ToString()

Returns a string that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
object.ToString()

Implements

IVariable

Extension Methods

Utility.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX