> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Struct ExpressionValueVariable

Namespace: [VM.Models.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre)\
Assembly: VM.Models.Pre.dll

```csharp theme={null}
public struct ExpressionValueVariable : IExpressionValue, IExpressionValue<double>, IExpression
```

#### Implements

[IExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.IExpressionValue.md),
[IExpressionValue\<double>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.IExpressionValue-1.md),
IExpression

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ExpressionValueVariable(double)

```csharp theme={null}
public ExpressionValueVariable(double value)
```

#### Parameters

`value` [double](https://learn.microsoft.com/dotnet/api/system.double)

### ExpressionValueVariable(double, string)

```csharp theme={null}
public ExpressionValueVariable(double value, string expression)
```

#### Parameters

`value` [double](https://learn.microsoft.com/dotnet/api/system.double)

`expression` [string](https://learn.microsoft.com/dotnet/api/system.string)

## Properties

### Expression

```csharp theme={null}
public string Expression { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### IsSimpleValue

```csharp theme={null}
public bool IsSimpleValue { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Parser

```csharp theme={null}
public static IExpressionParser<double> Parser { get; }
```

#### Property Value

[IExpressionParser](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.IExpressionParser-1.md)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>

### Value

```csharp theme={null}
public double Value { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

## Methods

### Equals(ExpressionValueVariable)

```csharp theme={null}
public bool Equals(ExpressionValueVariable other)
```

#### Parameters

`other` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Equals(object)

```csharp theme={null}
public override bool Equals(object obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### GetSchema()

```csharp theme={null}
public XmlSchema GetSchema()
```

#### Returns

[XmlSchema](https://learn.microsoft.com/dotnet/api/system.xml.schema.xmlschema)

### GetValue(string)

```csharp theme={null}
public static object GetValue(string expression)
```

#### Parameters

`expression` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[object](https://learn.microsoft.com/dotnet/api/system.object)

### ReadXml(XmlReader)

```csharp theme={null}
public void ReadXml(XmlReader reader)
```

#### Parameters

`reader` [XmlReader](https://learn.microsoft.com/dotnet/api/system.xml.xmlreader)

### SetParser(IExpressionParser\<double>)

```csharp theme={null}
public static void SetParser(IExpressionParser<double> parser)
```

#### Parameters

`parser` [IExpressionParser](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.IExpressionParser-1.md)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>

### WriteXml(XmlWriter)

```csharp theme={null}
public void WriteXml(XmlWriter writer)
```

#### Parameters

`writer` [XmlWriter](https://learn.microsoft.com/dotnet/api/system.xml.xmlwriter)

## Operators

### operator ==(ExpressionValueVariable, ExpressionValueVariable)

```csharp theme={null}
public static bool operator ==(ExpressionValueVariable expressionValue1, ExpressionValueVariable expressionValue2)
```

#### Parameters

`expressionValue1` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

`expressionValue2` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### implicit operator ExpressionValueVariable(double)

```csharp theme={null}
public static implicit operator ExpressionValueVariable(double value)
```

#### Parameters

`value` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

[ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

### implicit operator double(ExpressionValueVariable)

```csharp theme={null}
public static implicit operator double(ExpressionValueVariable expressionValue)
```

#### Parameters

`expressionValue` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)

### implicit operator ExpressionValueVariable(string)

```csharp theme={null}
public static implicit operator ExpressionValueVariable(string expression)
```

#### Parameters

`expression` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

### implicit operator string(ExpressionValueVariable)

```csharp theme={null}
public static implicit operator string(ExpressionValueVariable expressionValue)
```

#### Parameters

`expressionValue` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### operator !=(ExpressionValueVariable, ExpressionValueVariable)

```csharp theme={null}
public static bool operator !=(ExpressionValueVariable expressionValue1, ExpressionValueVariable expressionValue2)
```

#### Parameters

`expressionValue1` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

`expressionValue2` [ExpressionValueVariable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.ExpressionValueVariable.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)
