> ## 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 ExpressionValue<T>

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

```csharp theme={null}
public struct ExpressionValue<T> : IExpressionValue, IExpressionValue<T>, IExpression
```

#### Type Parameters

`T`

#### Implements

[IExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IExpressionValue.md),
[IExpressionValue\<T>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ExpressionValue(T, string)

```csharp theme={null}
public ExpressionValue(T value, string expression)
```

#### Parameters

`value` T

`expression` string

## Properties

### Expression

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

#### Property Value

string

### IsSimpleValue

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

#### Property Value

bool

### Parser

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

#### Property Value

[IExpressionParser](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IExpressionParser-1.md)\<T>

### Value

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

#### Property Value

T

## Methods

### Equals(ExpressionValue\<T>)

```csharp theme={null}
public bool Equals(ExpressionValue<T> other)
```

#### Parameters

`other` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

#### Returns

bool

### Equals(object)

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

#### Parameters

`obj` object

#### Returns

bool

### GetSchema()

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

#### Returns

XmlSchema

### GetValue(string)

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

#### Parameters

`expression` string

#### Returns

object

### ReadXml(XmlReader)

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

#### Parameters

`reader` XmlReader

### SetParser(IExpressionParser\<T>)

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

#### Parameters

`parser` [IExpressionParser](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IExpressionParser-1.md)\<T>

### WriteXml(XmlWriter)

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

#### Parameters

`writer` XmlWriter

## Operators

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

```csharp theme={null}
public static bool operator ==(ExpressionValue<T> expressionValue1, ExpressionValue<T> expressionValue2)
```

#### Parameters

`expressionValue1` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

`expressionValue2` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

#### Returns

bool

### implicit operator ExpressionValue\<T>(T)

```csharp theme={null}
public static implicit operator ExpressionValue<T>(T value)
```

#### Parameters

`value` T

#### Returns

[ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

### implicit operator T(ExpressionValue\<T>)

```csharp theme={null}
public static implicit operator T(ExpressionValue<T> expressionValue)
```

#### Parameters

`expressionValue` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

#### Returns

T

### implicit operator ExpressionValue\<T>(string)

```csharp theme={null}
public static implicit operator ExpressionValue<T>(string expression)
```

#### Parameters

`expression` string

#### Returns

[ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

### implicit operator string(ExpressionValue\<T>)

```csharp theme={null}
public static implicit operator string(ExpressionValue<T> expressionValue)
```

#### Parameters

`expressionValue` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

#### Returns

string

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

```csharp theme={null}
public static bool operator !=(ExpressionValue<T> expressionValue1, ExpressionValue<T> expressionValue2)
```

#### Parameters

`expressionValue1` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

`expressionValue2` [ExpressionValue](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ExpressionValue-1.md)\<T>

#### Returns

bool
