Struct UniversalExpression
Represents any expression with full support of overloaded operators and conversion from primitive data types.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
[Obsolete("Use ExpressionBuilder.AsDynamic method for building expressions dynamically")]
public struct UniversalExpression : IExpressionBuilder<Expression>, IDynamicMetaObjectProvider, IEquatable<UniversalExpression>
Remarks
This class is intended for expression building purposes only.
Properties
| Improve this Doc View SourceNodeType
Gets the node type of this expression.
Declaration
public ExpressionType NodeType { get; }
Property Value
Type | Description |
---|---|
ExpressionType |
Type
Gets the static type of this expression.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceAndAlso(UniversalExpression)
Constructs binary expression that represents a conditional AND operation that evaluates the second operand only if the this expression evaluates to true.
Declaration
public UniversalExpression AndAlso(UniversalExpression other)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | other | The second operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
AndAlso(Expression)
Constructs binary expression that represents a conditional AND operation that evaluates the second operand only if the this expression evaluates to true.
Declaration
public UniversalExpression AndAlso(Expression other)
Parameters
Type | Name | Description |
---|---|---|
Expression | other | The second operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
ArrayLength()
Returns expression representing array length.
Declaration
public UniversalExpression ArrayLength()
Returns
Type | Description |
---|---|
UniversalExpression | Array length expression. |
Await()
Constructs suspension point in the execution of the lambda function until the awaited task completes.
Declaration
public UniversalExpression Await()
Returns
Type | Description |
---|---|
UniversalExpression | await expression. |
See Also
| Improve this Doc View SourceCall(MethodInfo, Expression[])
Constructs instance method call expression.
Declaration
public UniversalExpression Call(MethodInfo method, params Expression[] arguments)
Parameters
Type | Name | Description |
---|---|---|
MethodInfo | method | The method to be called. |
Expression[] | arguments | The method arguments. |
Returns
Type | Description |
---|---|
UniversalExpression | The method call expression. |
Call(String, Expression[])
Constructs instance method call expression.
Declaration
public UniversalExpression Call(string methodName, params Expression[] arguments)
Parameters
Type | Name | Description |
---|---|---|
String | methodName | The name of the method to be called. |
Expression[] | arguments | The method arguments. |
Returns
Type | Description |
---|---|
UniversalExpression | The method call expression. |
Call(Type, String, Expression[])
Constructs interface or base class method call expression.
Declaration
public UniversalExpression Call(Type interfaceType, string methodName, params Expression[] arguments)
Parameters
Type | Name | Description |
---|---|---|
Type | interfaceType | The interface or base class. |
String | methodName | The name of the method in the interface or base class to be called. |
Expression[] | arguments | The method arguments. |
Returns
Type | Description |
---|---|
UniversalExpression | The method call expression. |
Concat(Expression[])
Constructs string concatenation expression.
Declaration
public UniversalExpression Concat(params Expression[] other)
Parameters
Type | Name | Description |
---|---|---|
Expression[] | other | Other strings to concatenate. |
Returns
Type | Description |
---|---|
UniversalExpression | An expression presenting concatenation. |
Condition(Expression, Expression, Type)
Constructs conditional expression.
Declaration
public UniversalExpression Condition(Expression ifTrue = null, Expression ifFalse = null, Type type = null)
Parameters
Type | Name | Description |
---|---|---|
Expression | ifTrue | Positive branch. |
Expression | ifFalse | Negative branch. |
Type | type | The type of conditional expression. Default is Void. |
Returns
Type | Description |
---|---|
UniversalExpression | Conditional expression. |
Condition<TResult>(Expression, Expression)
Constructs conditional expression.
Declaration
public UniversalExpression Condition<TResult>(Expression ifTrue, Expression ifFalse)
Parameters
Type | Name | Description |
---|---|---|
Expression | ifTrue | Positive branch. |
Expression | ifFalse | Negative branch. |
Returns
Type | Description |
---|---|
UniversalExpression | Conditional expression. |
Type Parameters
Name | Description |
---|---|
TResult | The type of conditional expression. |
Convert(Type)
Constructs type conversion expression.
Declaration
public UniversalExpression Convert(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The target type. |
Returns
Type | Description |
---|---|
UniversalExpression | The type conversion expression. |
Convert<T>()
Constructs type conversion expression.
Declaration
public UniversalExpression Convert<T>()
Returns
Type | Description |
---|---|
UniversalExpression | The type conversion expression. |
Type Parameters
Name | Description |
---|---|
T | The target type. |
ElementAt(Expression[])
Constructs array element access expression.
Declaration
public UniversalExpression ElementAt(params Expression[] indexes)
Parameters
Type | Name | Description |
---|---|---|
Expression[] | indexes | Array element indicies. |
Returns
Type | Description |
---|---|
UniversalExpression | Array element access expression. |
Equals(UniversalExpression)
Determines whether this universal expression represents the same underlying expression as other.
Declaration
public bool Equals(UniversalExpression other)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | other | Other expression to compare. |
Returns
Type | Description |
---|---|
Boolean | true, if both expressions are equal; otherwise, false. |
Equals(Object)
Determines whether this universal expression represents the same underlying expression as other.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
Object | other | Other expression to compare. |
Returns
Type | Description |
---|---|
Boolean | true, if both expressions are equal; otherwise, false. |
Overrides
| Improve this Doc View SourceField(FieldInfo)
Constructs instance field access expression.
Declaration
public UniversalExpression Field(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | Field metadata. |
Returns
Type | Description |
---|---|
UniversalExpression | Field access expression. |
Field(String)
Constructs instance field access expression.
Declaration
public UniversalExpression Field(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
String | fieldName | The name of the instance field. |
Returns
Type | Description |
---|---|
UniversalExpression | Field access expression. |
GetHashCode()
Computes the hash code for the underlying expression.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of the underlying expression. |
Overrides
| Improve this Doc View SourceIndex(Boolean)
Constructs Index(Boolean) expression.
Declaration
public UniversalExpression Index(bool fromEnd)
Parameters
Type | Name | Description |
---|---|---|
Boolean | fromEnd | A boolean indicating if the index is from the start (false) or from the end (true) of a collection. |
Returns
Type | Description |
---|---|
UniversalExpression | The index expression. |
InstanceOf(Type)
Constructs type check expression.
Declaration
public UniversalExpression InstanceOf(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The target type. |
Returns
Type | Description |
---|---|
UniversalExpression | The type test expression. |
InstanceOf<T>()
Constructs type check expression.
Declaration
public UniversalExpression InstanceOf<T>()
Returns
Type | Description |
---|---|
UniversalExpression | The type test expression. |
Type Parameters
Name | Description |
---|---|
T | The target type. |
Invoke(Expression[])
Constructs delegate invocation expression.
Declaration
public UniversalExpression Invoke(params Expression[] arguments)
Parameters
Type | Name | Description |
---|---|---|
Expression[] | arguments | Invocation arguments. |
Returns
Type | Description |
---|---|
UniversalExpression | Invocation expression. |
Loop()
Constructs loop statement which has a body equal to this expression.
Declaration
public UniversalExpression Loop()
Returns
Type | Description |
---|---|
UniversalExpression | Loop statement. |
Loop(LabelTarget)
Constructs loop statement which has a body equal to this expression.
Declaration
public UniversalExpression Loop(LabelTarget break)
Parameters
Type | Name | Description |
---|---|---|
LabelTarget | break | Optional loop break label which will installed automatically. |
Returns
Type | Description |
---|---|
UniversalExpression | Loop statement. |
Loop(LabelTarget, LabelTarget)
Constructs loop statement which has a body equal to this expression.
Declaration
public UniversalExpression Loop(LabelTarget break, LabelTarget continue)
Parameters
Type | Name | Description |
---|---|---|
LabelTarget | break | Optional loop break label which will installed automatically. |
LabelTarget | continue | Optional loop continuation which will be installed automatically. |
Returns
Type | Description |
---|---|
UniversalExpression | Loop statement. |
op_Exponent(UniversalExpression, UniversalExpression)
Constructs raising a number to a power expression.
Declaration
public static UniversalExpression op_Exponent(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
op_Exponent(UniversalExpression, Expression)
Constructs raising a number to a power expression.
Declaration
public static UniversalExpression op_Exponent(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
op_LeftShift(UniversalExpression, UniversalExpression)
Bitwise left-shift expression.
Declaration
public static UniversalExpression op_LeftShift(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
op_LeftShift(UniversalExpression, Expression)
Bitwise left-shift expression.
Declaration
public static UniversalExpression op_LeftShift(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
op_RightShift(UniversalExpression, UniversalExpression)
Bitwise right-shift expression.
Declaration
public static UniversalExpression op_RightShift(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
op_RightShift(UniversalExpression, Expression)
Bitwise right-shift expression.
Declaration
public static UniversalExpression op_RightShift(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
OrElse(UniversalExpression)
Binary expression that represents a conditional OR operation that evaluates the second operand only if the this expression evaluates to false.
Declaration
public UniversalExpression OrElse(UniversalExpression other)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | other | The second operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
OrElse(Expression)
Binary expression that represents a conditional OR operation that evaluates the second operand only if the this expression evaluates to false.
Declaration
public UniversalExpression OrElse(Expression other)
Parameters
Type | Name | Description |
---|---|---|
Expression | other | The second operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Property(PropertyInfo, Expression[])
Constructs instance property or indexer access expression.
Declaration
public UniversalExpression Property(PropertyInfo property, params Expression[] indicies)
Parameters
Type | Name | Description |
---|---|---|
PropertyInfo | property | Property metadata. |
Expression[] | indicies | Indexer indicies. |
Returns
Type | Description |
---|---|
UniversalExpression | Property access expression. |
Property(String, Expression[])
Constructs instance property or indexer access expression.
Declaration
public UniversalExpression Property(string propertyName, params Expression[] indicies)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | The name of the instance property or indexer. |
Expression[] | indicies | Indexer indicies. |
Returns
Type | Description |
---|---|
UniversalExpression | Property access expression. |
Property(Type, String, Expression[])
Constructs instance property or indexer access expression declared in the given interface or base type.
Declaration
public UniversalExpression Property(Type interfaceType, string propertyName, params Expression[] indicies)
Parameters
Type | Name | Description |
---|---|---|
Type | interfaceType | The interface or base class declaring property. |
String | propertyName | The name of the instance property or indexer. |
Expression[] | indicies | Indexer indicies. |
Returns
Type | Description |
---|---|
UniversalExpression | Property access expression. |
Slice(Expression)
Constructs slice of collection or array.
Declaration
public UniversalExpression Slice(Expression range)
Parameters
Type | Name | Description |
---|---|---|
Expression | range | The range of collection or array. |
Returns
Type | Description |
---|---|
UniversalExpression | The slice of collection or array. |
Throw()
Constructs throw
statement.
Declaration
public UnaryExpression Throw()
Returns
Type | Description |
---|---|
UnaryExpression |
|
ToString()
Returns textual representation of this expression.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The textual representation of this expression. |
Overrides
| Improve this Doc View SourceTryConvert(Type)
Constructs an expression that represents an explicit reference or boxing conversion where null is supplied if the conversion fails.
Declaration
public UniversalExpression TryConvert(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The target type. |
Returns
Type | Description |
---|---|
UniversalExpression | Type conversion expression. |
TryConvert<T>()
Constructs an expression that represents an explicit reference or boxing conversion where null is supplied if the conversion fails.
Declaration
public UniversalExpression TryConvert<T>()
Returns
Type | Description |
---|---|
UniversalExpression | Type conversion expression. |
Type Parameters
Name | Description |
---|---|
T | The target type. |
Unbox(Type)
Explicit unboxing.
Declaration
public UniversalExpression Unbox(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The target value type. |
Returns
Type | Description |
---|---|
UniversalExpression | Unboxing expression. |
Unbox<T>()
Explicit unboxing.
Declaration
public UniversalExpression Unbox<T>()
where T : struct
Returns
Type | Description |
---|---|
UniversalExpression | Unboxing expression. |
Type Parameters
Name | Description |
---|---|
T | The target value type. |
Operators
| Improve this Doc View SourceAddition(UniversalExpression, UniversalExpression)
Binary arithmetic addition expression.
Declaration
public static UniversalExpression operator +(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Addition(UniversalExpression, Expression)
Binary arithmetic addition expression.
Declaration
public static UniversalExpression operator +(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
BitwiseAnd(UniversalExpression, UniversalExpression)
Binary logical AND expression.
Declaration
public static UniversalExpression operator &(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
BitwiseAnd(UniversalExpression, Expression)
Binary logical AND expression.
Declaration
public static UniversalExpression operator &(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
BitwiseOr(UniversalExpression, UniversalExpression)
Binary logical OR expression.
Declaration
public static UniversalExpression operator |(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
BitwiseOr(UniversalExpression, Expression)
Binary logical OR expression.
Declaration
public static UniversalExpression operator |(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Division(UniversalExpression, UniversalExpression)
Binary arithmetic division expression.
Declaration
public static UniversalExpression operator /(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Division(UniversalExpression, Expression)
Binary arithmetic division expression.
Declaration
public static UniversalExpression operator /(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Equality(UniversalExpression, UniversalExpression)
Equality comparison.
Declaration
public static UniversalExpression operator ==(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Equality(UniversalExpression, Expression)
Equality comparison.
Declaration
public static UniversalExpression operator ==(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
ExclusiveOr(UniversalExpression, UniversalExpression)
Binary logical exclusive OR expression.
Declaration
public static UniversalExpression operator ^(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
ExclusiveOr(UniversalExpression, Expression)
Binary logical exclusive OR expression.
Declaration
public static UniversalExpression operator ^(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Explicit(Expression to UniversalExpression)
Wraps regular Expression Tree node into universal expression.
Declaration
public static explicit operator UniversalExpression(Expression expr)
Parameters
Type | Name | Description |
---|---|---|
Expression | expr | An expression to be wrapped. |
Returns
Type | Description |
---|---|
UniversalExpression | Universal expression representing original expression. |
GreaterThan(UniversalExpression, UniversalExpression)
"greater than" numeric comparison.
Declaration
public static UniversalExpression operator>(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
GreaterThan(UniversalExpression, Expression)
"greater than" numeric comparison.
Declaration
public static UniversalExpression operator>(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
GreaterThanOrEqual(UniversalExpression, UniversalExpression)
"greater than or equal" numeric comparison.
Declaration
public static UniversalExpression operator >=(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
GreaterThanOrEqual(UniversalExpression, Expression)
"greater than or equal" numeric comparison.
Declaration
public static UniversalExpression operator >=(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Implicit(UniversalExpression to Expression)
Converts universal expression into regular LINQ expression.
Declaration
public static implicit operator Expression(UniversalExpression view)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | view | Universal expression to be converted. |
Returns
Type | Description |
---|---|
Expression |
Implicit(Boolean to UniversalExpression)
Constructs constant value of Boolean type.
Declaration
public static implicit operator UniversalExpression(bool value)
Parameters
Type | Name | Description |
---|---|---|
Boolean | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Byte to UniversalExpression)
Constructs constant value of Byte type.
Declaration
public static implicit operator UniversalExpression(byte value)
Parameters
Type | Name | Description |
---|---|---|
Byte | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Char to UniversalExpression)
Constructs constant value of Char type.
Declaration
public static implicit operator UniversalExpression(char value)
Parameters
Type | Name | Description |
---|---|---|
Char | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Decimal to UniversalExpression)
Constructs constant value of Decimal type.
Declaration
public static implicit operator UniversalExpression(decimal value)
Parameters
Type | Name | Description |
---|---|---|
Decimal | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Double to UniversalExpression)
Constructs constant value of Double type.
Declaration
public static implicit operator UniversalExpression(double value)
Parameters
Type | Name | Description |
---|---|---|
Double | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(FormattableString to UniversalExpression)
Constructs formatted string expression.
Declaration
public static implicit operator UniversalExpression(FormattableString value)
Parameters
Type | Name | Description |
---|---|---|
FormattableString | value | Formatter string representation. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Int16 to UniversalExpression)
Constructs constant value of Int16 type.
Declaration
public static implicit operator UniversalExpression(short value)
Parameters
Type | Name | Description |
---|---|---|
Int16 | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Int32 to UniversalExpression)
Constructs constant value of Int32 type.
Declaration
public static implicit operator UniversalExpression(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Int64 to UniversalExpression)
Constructs constant value of Int64 type.
Declaration
public static implicit operator UniversalExpression(long value)
Parameters
Type | Name | Description |
---|---|---|
Int64 | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(SByte to UniversalExpression)
Constructs constant value of SByte type.
Declaration
[CLSCompliant(false)]
public static implicit operator UniversalExpression(sbyte value)
Parameters
Type | Name | Description |
---|---|---|
SByte | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(Single to UniversalExpression)
Constructs constant value of Single type.
Declaration
public static implicit operator UniversalExpression(float value)
Parameters
Type | Name | Description |
---|---|---|
Single | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(String to UniversalExpression)
Constructs constant value of String type.
Declaration
public static implicit operator UniversalExpression(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(UInt16 to UniversalExpression)
Constructs constant value of UInt16 type.
Declaration
[CLSCompliant(false)]
public static implicit operator UniversalExpression(ushort value)
Parameters
Type | Name | Description |
---|---|---|
UInt16 | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(UInt32 to UniversalExpression)
Constructs constant value of UInt32 type.
Declaration
[CLSCompliant(false)]
public static implicit operator UniversalExpression(uint value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Implicit(UInt64 to UniversalExpression)
Constructs constant value of UInt64 type.
Declaration
[CLSCompliant(false)]
public static implicit operator UniversalExpression(ulong value)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | value | The constant value. |
Returns
Type | Description |
---|---|
UniversalExpression |
Inequality(UniversalExpression, UniversalExpression)
Inequality comparison.
Declaration
public static UniversalExpression operator !=(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Inequality(UniversalExpression, Expression)
Inequality comparison.
Declaration
public static UniversalExpression operator !=(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
LeftShift(UniversalExpression, Int32)
Bitwise left-shift expression.
Declaration
public static UniversalExpression operator <<(UniversalExpression left, int right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Int32 | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
LessThan(UniversalExpression, UniversalExpression)
"less than" numeric comparison.
Declaration
public static UniversalExpression operator <(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
LessThan(UniversalExpression, Expression)
"less than" numeric comparison.
Declaration
public static UniversalExpression operator <(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
LessThanOrEqual(UniversalExpression, UniversalExpression)
"less than or equal" numeric comparison.
Declaration
public static UniversalExpression operator <=(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
LessThanOrEqual(UniversalExpression, Expression)
"less than or equal" numeric comparison.
Declaration
public static UniversalExpression operator <=(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
LogicalNot(UniversalExpression)
Logical NOT expression.
Declaration
public static UniversalExpression operator !(UniversalExpression expr)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | expr | The operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Constructed logical NOT expression. |
Modulus(UniversalExpression, UniversalExpression)
Arithmetic remainder expression.
Declaration
public static UniversalExpression operator %(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Modulus(UniversalExpression, Expression)
Arithmetic remainder expression.
Declaration
public static UniversalExpression operator %(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Multiply(UniversalExpression, UniversalExpression)
Binary arithmetic multiplication expression.
Declaration
public static UniversalExpression operator *(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Multiply(UniversalExpression, Expression)
Binary arithmetic multiplication expression.
Declaration
public static UniversalExpression operator *(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
OnesComplement(UniversalExpression)
Ones complement.
Declaration
public static UniversalExpression operator ~(UniversalExpression expr)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | expr | The operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Ones complement expression. |
RightShift(UniversalExpression, Int32)
Bitwise right-shift expression.
Declaration
public static UniversalExpression operator >>(UniversalExpression left, int right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Int32 | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Subtraction(UniversalExpression, UniversalExpression)
Binary arithmetic subtraction expression.
Declaration
public static UniversalExpression operator -(UniversalExpression left, UniversalExpression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
UniversalExpression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
Subtraction(UniversalExpression, Expression)
Binary arithmetic subtraction expression.
Declaration
public static UniversalExpression operator -(UniversalExpression left, Expression right)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | left | The left operand. |
Expression | right | The right operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Binary expression. |
UnaryNegation(UniversalExpression)
Unary minus.
Declaration
public static UniversalExpression operator -(UniversalExpression expr)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | expr | The operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Unary expression. |
UnaryPlus(UniversalExpression)
Unary plus.
Declaration
public static UniversalExpression operator +(UniversalExpression expr)
Parameters
Type | Name | Description |
---|---|---|
UniversalExpression | expr | The operand. |
Returns
Type | Description |
---|---|
UniversalExpression | Unary expression. |
Explicit Interface Implementations
| Improve this Doc View SourceIDynamicMetaObjectProvider.GetMetaObject(Expression)
Declaration
DynamicMetaObject IDynamicMetaObjectProvider.GetMetaObject(Expression parameter)
Parameters
Type | Name | Description |
---|---|---|
Expression | parameter |
Returns
Type | Description |
---|---|
DynamicMetaObject |