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>Constructors
Section titled “Constructors”ExpressionArgument(string, object, Type)
Section titled “ExpressionArgument(string, object, Type)”Initializes a new instance of the ExpressionArgument struct.
public ExpressionArgument(string name, object value, Type type)Parameters
Section titled “Parameters”namestring
The argument name.valueobject
The argument value.typeType
The declared type. Passnullto infer it from .
Properties
Section titled “Properties”Gets the argument name, used to reference the value in an expression.
public string Name { get; }Property Value
Section titled “Property Value”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; }Property Value
Section titled “Property Value”Gets the argument value.
public object Value { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”nameout string
The argument name.valueout object
The argument value.typeout Type
The argument type.
Equals(object)
Section titled “Equals(object)”public virtual bool Equals(object obj)Parameters
Section titled “Parameters”objobject
Returns
Section titled “Returns”Equals(ExpressionArgument)
Section titled “Equals(ExpressionArgument)”public virtual bool Equals(ExpressionArgument other)Parameters
Section titled “Parameters”otherExpressionArgument
Returns
Section titled “Returns”GetHashCode()
Section titled “GetHashCode()”public virtual int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ToString()”public virtual string ToString()Returns
Section titled “Returns”operator ==(ExpressionArgument, ExpressionArgument)
Section titled “operator ==(ExpressionArgument, ExpressionArgument)”public static bool operator ==(ExpressionArgument left, ExpressionArgument right)Parameters
Section titled “Parameters”leftExpressionArgumentrightExpressionArgument
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”Returns
Section titled “Returns”operator !=(ExpressionArgument, ExpressionArgument)
Section titled “operator !=(ExpressionArgument, ExpressionArgument)”public static bool operator !=(ExpressionArgument left, ExpressionArgument right)Parameters
Section titled “Parameters”leftExpressionArgumentrightExpressionArgument