Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Struct ExpressionValueVariable

Last update: 09.03.2026

Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.dll

public struct ExpressionValueVariable : IExpressionValue, IExpressionValue<double>, IExpression

Implements

IExpressionValue, IExpressionValue<double>, IExpression

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

ExpressionValueVariable(double)

public ExpressionValueVariable(double value)

Parameters

value double

ExpressionValueVariable(double, string)

public ExpressionValueVariable(double value, string expression)

Parameters

value double

expression string

Properties

Expression

public string Expression { get; set; }

Property Value

string

IsSimpleValue

public bool IsSimpleValue { get; }

Property Value

bool

Parser

public static IExpressionParser<double> Parser { get; }

Property Value

IExpressionParser<double>

Value

public double Value { get; set; }

Property Value

double

Methods

Equals(ExpressionValueVariable)

public bool Equals(ExpressionValueVariable other)

Parameters

other ExpressionValueVariable

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetSchema()

public XmlSchema GetSchema()

Returns

XmlSchema

GetValue(string)

public static object GetValue(string expression)

Parameters

expression string

Returns

object

ReadXml(XmlReader)

public void ReadXml(XmlReader reader)

Parameters

reader XmlReader

SetParser(IExpressionParser<double>)

public static void SetParser(IExpressionParser<double> parser)

Parameters

parser IExpressionParser<double>

WriteXml(XmlWriter)

public void WriteXml(XmlWriter writer)

Parameters

writer XmlWriter

Operators

operator ==(ExpressionValueVariable, ExpressionValueVariable)

public static bool operator ==(ExpressionValueVariable expressionValue1, ExpressionValueVariable expressionValue2)

Parameters

expressionValue1 ExpressionValueVariable

expressionValue2 ExpressionValueVariable

Returns

bool

implicit operator ExpressionValueVariable(double)

public static implicit operator ExpressionValueVariable(double value)

Parameters

value double

Returns

ExpressionValueVariable

implicit operator double(ExpressionValueVariable)

public static implicit operator double(ExpressionValueVariable expressionValue)

Parameters

expressionValue ExpressionValueVariable

Returns

double

implicit operator ExpressionValueVariable(string)

public static implicit operator ExpressionValueVariable(string expression)

Parameters

expression string

Returns

ExpressionValueVariable

implicit operator string(ExpressionValueVariable)

public static implicit operator string(ExpressionValueVariable expressionValue)

Parameters

expressionValue ExpressionValueVariable

Returns

string

operator !=(ExpressionValueVariable, ExpressionValueVariable)

public static bool operator !=(ExpressionValueVariable expressionValue1, ExpressionValueVariable expressionValue2)

Parameters

expressionValue1 ExpressionValueVariable

expressionValue2 ExpressionValueVariable

Returns

bool

Connect with Ansys