Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Struct ExpressionValue<T\>

Last update: 09.03.2026

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

public struct ExpressionValue<T> : IExpressionValue, IExpressionValue<T>, IExpression

Type Parameters

T

Implements

IExpressionValue, IExpressionValue<T>, IExpression

Extension Methods

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

Constructors

ExpressionValue(T, string)

public ExpressionValue(T value, string expression)

Parameters

value T

expression string

Properties

Expression

public string Expression { get; set; }

Property Value

string

IsSimpleValue

public bool IsSimpleValue { get; }

Property Value

bool

Parser

public static IExpressionParser<T> Parser { get; }

Property Value

IExpressionParser<T>

Value

public T Value { get; set; }

Property Value

T

Methods

Equals(ExpressionValue<T>)

public bool Equals(ExpressionValue<T> other)

Parameters

other ExpressionValue<T>

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<T>)

public static void SetParser(IExpressionParser<T> parser)

Parameters

parser IExpressionParser<T>

WriteXml(XmlWriter)

public void WriteXml(XmlWriter writer)

Parameters

writer XmlWriter

Operators

operator ==(ExpressionValue<T>, ExpressionValue<T>)

public static bool operator ==(ExpressionValue<T> expressionValue1, ExpressionValue<T> expressionValue2)

Parameters

expressionValue1 ExpressionValue<T>

expressionValue2 ExpressionValue<T>

Returns

bool

implicit operator ExpressionValue<T>(T)

public static implicit operator ExpressionValue<T>(T value)

Parameters

value T

Returns

ExpressionValue<T>

implicit operator T(ExpressionValue<T>)

public static implicit operator T(ExpressionValue<T> expressionValue)

Parameters

expressionValue ExpressionValue<T>

Returns

T

implicit operator ExpressionValue<T>(string)

public static implicit operator ExpressionValue<T>(string expression)

Parameters

expression string

Returns

ExpressionValue<T>

implicit operator string(ExpressionValue<T>)

public static implicit operator string(ExpressionValue<T> expressionValue)

Parameters

expressionValue ExpressionValue<T>

Returns

string

operator !=(ExpressionValue<T>, ExpressionValue<T>)

public static bool operator !=(ExpressionValue<T> expressionValue1, ExpressionValue<T> expressionValue2)

Parameters

expressionValue1 ExpressionValue<T>

expressionValue2 ExpressionValue<T>

Returns

bool

Connect with Ansys