IVariantOperations

Implements an abstractd variant operations manager object.

Description

The IVariantOperations class allows you to implement an abstract variant operations manager object.

Instance methods

Add

Performs the ‘+’ operation for two variants.

Variant Add(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

And

Performs the AND operation for two variants.

Variant And(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Convert

Converts a variant to a specified type.

public abstract Variant Convert(Variant value, VariantType newType);

  • value: Variant - variant value to be converted.
  • newType: VariantType - type of object to be returned.
  • returns: Variant - converted Variant value.

Div

Performs the ‘/’ operation for two variants.

Variant Div(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Equal

Performs the ‘=’ operation for two variants.

Variant Equal(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

GetElement

Performs the [] operation for two variants.

Variant GetElement(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

In

Performs the IN operation for two variants.

Variant In(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Less

Performs the ‘<’ operation for two variants.

Variant Less(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

LessEqual

Performs the ‘<=’ operation for two variants.

Variant LessEqual(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Like

Performs the LIKE operation for two variants.

Variant Like(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Lsh

Performs the ‘«’ operation for two variants.

Variant Lsh(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Mod

Performs the ‘%’ operation for two variants.

Variant Mod(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

More

Performs the ‘>’ operation for two variants.

Variant More(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

MoreEqual

Performs the ‘>=’ operation for two variants.

Variant MoreEqual(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Mul

Performs the ‘*’ operation for two variants.

Variant Mul(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Negative

Performs the unary ‘-’ operation for a variant.

Variant Negative(Variant value)

  • value: Variant - first operand for this operation.
  • returns: Variant - result variant object.

Not

Performs the NOT operation for a variant.

Variant Not(Variant value)

  • value: Variant - first operand for this operation.
  • returns: Variant - result variant object.

NotEqual

Performs the ‘<>’ operation for two variants.

Variant NotEqual(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Or

Performs the OR operation for two variants.

Variant Or(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Pow

Performs the ‘^’ operation for two variants.

Variant Pow(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Rsh

Performs the ‘»’ operation for two variants.

Variant Rsh(Variant value1, VarianVariant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

Sub

Performs the ‘-’ operation for two variants.

Variant Sub(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

TypeToString

Converts variant type to string representation.

protected string TypeToString(VariantType value)

  • value: VariantType - variant type to be converted.
  • returns: string - string representation of the type.

Xor

Performs the XOR operation for two variants.

Variant Xor(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.