Skip to content
Auto
Products

ExpressionArgument

Namespace: TagBites.Expressions
Assembly: TagBites.Expressions.dll
Product: TagBites.Expressions v. 1.5.0

A named argument passed to an expression, with an optional declared type.

public struct ExpressionArgument : System.IEquatable<TagBites.Expressions.ExpressionArgument>

Initializes a new instance of the ExpressionArgument struct.

public ExpressionArgument(string name, object value, Type type)
  • name string
    The argument name.
  • value object
    The argument value.
  • type Type
    The declared type. Pass null to infer it from .

Gets the argument name, used to reference the value in an expression.

public string Name { get; }

string

Gets the declared type of the argument. Falls back to the runtime type of Value, or Object when the value is null.

public Type Type { get; }

Type

Gets the argument value.

public object Value { get; }

object

Deconstruct(out string, out object, out Type)

Section titled “Deconstruct(out string, out object, out Type)”

Deconstructs the argument into its name, value and type.

public void Deconstruct(out string name, out object value, out Type type)
  • name out string
    The argument name.
  • value out object
    The argument value.
  • type out Type
    The argument type.
public virtual bool Equals(object obj)

bool

public virtual bool Equals(ExpressionArgument other)

bool

public virtual int GetHashCode()

int

public virtual string ToString()

string

operator ==(ExpressionArgument, ExpressionArgument)

Section titled “operator ==(ExpressionArgument, ExpressionArgument)”
public static bool operator ==(ExpressionArgument left, ExpressionArgument right)

bool

implicit operator ExpressionArgument((string, object))

Section titled “implicit operator ExpressionArgument((string, object))”

Creates an argument from a name and value tuple, inferring the type from the value.

public static implicit operator ExpressionArgument((string, object) item)

ExpressionArgument

implicit operator ExpressionArgument((string, object, Type))

Section titled “implicit operator ExpressionArgument((string, object, Type))”

Creates an argument from a name, value and type tuple.

public static implicit operator ExpressionArgument((string, object, Type) item)

ExpressionArgument

operator !=(ExpressionArgument, ExpressionArgument)

Section titled “operator !=(ExpressionArgument, ExpressionArgument)”
public static bool operator !=(ExpressionArgument left, ExpressionArgument right)

bool