Table of Contents

Struct ParameterValue

Namespace
xFunc.Maths.Expressions.Parameters
Assembly
xFunc.Maths.dll

Represents a parameter value.

public readonly struct ParameterValue : IEquatable<ParameterValue>
Implements
Inherited Members

Constructors

ParameterValue(bool)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(bool value)

Parameters

value bool

The value.

ParameterValue(double)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(double value)

Parameters

value double

The value.

ParameterValue(Complex)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(Complex value)

Parameters

value Complex

The value.

ParameterValue(string)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(string value)

Parameters

value string

The value.

ParameterValue(Lambda)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(Lambda lambda)

Parameters

lambda Lambda

ParameterValue(MatrixValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(MatrixValue value)

Parameters

value MatrixValue

The value.

ParameterValue(VectorValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(VectorValue value)

Parameters

value VectorValue

The value.

ParameterValue(NumberValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(NumberValue value)

Parameters

value NumberValue

The value.

ParameterValue(RationalValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(RationalValue rationalValue)

Parameters

rationalValue RationalValue

ParameterValue(AngleValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(AngleValue value)

Parameters

value AngleValue

The value.

ParameterValue(AreaValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(AreaValue value)

Parameters

value AreaValue

The value.

ParameterValue(LengthValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(LengthValue value)

Parameters

value LengthValue

The value.

ParameterValue(MassValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(MassValue value)

Parameters

value MassValue

The value.

ParameterValue(PowerValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(PowerValue value)

Parameters

value PowerValue

The value.

ParameterValue(TemperatureValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(TemperatureValue value)

Parameters

value TemperatureValue

The value.

ParameterValue(TimeValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(TimeValue value)

Parameters

value TimeValue

The value.

ParameterValue(VolumeValue)

Initializes a new instance of the ParameterValue struct.

public ParameterValue(VolumeValue value)

Parameters

value VolumeValue

The value.

Properties

Value

Gets a value.

public object Value { get; }

Property Value

object

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Equals(ParameterValue)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ParameterValue other)

Parameters

other ParameterValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(ParameterValue, ParameterValue)

Determines whether two specified instances of ParameterValue are equal.

public static bool operator ==(ParameterValue left, ParameterValue right)

Parameters

left ParameterValue

The first object to compare.

right ParameterValue

The second object to compare.

Returns

bool

true if left is equal to right; otherwise, false.

implicit operator ParameterValue(bool)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(bool value)

Parameters

value bool

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(double)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(double value)

Parameters

value double

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(Complex)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(Complex value)

Parameters

value Complex

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(string)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(string value)

Parameters

value string

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(Lambda)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(Lambda value)

Parameters

value Lambda

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(MatrixValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(MatrixValue value)

Parameters

value MatrixValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(VectorValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(VectorValue value)

Parameters

value VectorValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(NumberValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(NumberValue value)

Parameters

value NumberValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(RationalValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(RationalValue value)

Parameters

value RationalValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(AngleValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(AngleValue value)

Parameters

value AngleValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(AreaValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(AreaValue value)

Parameters

value AreaValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(LengthValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(LengthValue value)

Parameters

value LengthValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(MassValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(MassValue value)

Parameters

value MassValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(PowerValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(PowerValue value)

Parameters

value PowerValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(TemperatureValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(TemperatureValue value)

Parameters

value TemperatureValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(TimeValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(TimeValue value)

Parameters

value TimeValue

The value.

Returns

ParameterValue

The parameter value.

implicit operator ParameterValue(VolumeValue)

Converts the value to ParameterValue.

public static implicit operator ParameterValue(VolumeValue value)

Parameters

value VolumeValue

The value.

Returns

ParameterValue

The parameter value.

operator !=(ParameterValue, ParameterValue)

Determines whether two specified instances of ParameterValue are not equal.

public static bool operator !=(ParameterValue left, ParameterValue right)

Parameters

left ParameterValue

The first object to compare.

right ParameterValue

The second object to compare.

Returns

bool

true if left is not equal to right; otherwise, false.