22.271. Class ExpressionBuilders
Namespace: ArmoniK.Core.Common.gRPC
Assembly: ArmoniK.Core.Common.dll
Generate
public class ExpressionBuilders
22.271.1. Inheritance
22.271.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
22.271.3. Methods
22.271.3.1. GetMemberExpression<TIn>(Expression<Func<TIn, object?>>)
Extracts the member expression from a field selector expression.
public static Expression GetMemberExpression<TIn>(Expression<Func<TIn, object?>> selector)
22.271.3.1.1. Parameters
selector Expression<Func<TIn, object?>>
The field selector expression.
22.271.3.1.2. Returns
The
22.271.3.1.3. Type Parameters
TIn
The type of the input parameter for the selector expression.
22.271.3.1.4. Exceptions
Thrown if the selector’s body is not a supported expression type.
22.271.3.2. MakeBinary<TIn, T>(Expression<Func<TIn, object?>>, T, ExpressionType)
Generate
public static Expression<Func<TIn, bool>> MakeBinary<TIn, T>(Expression<Func<TIn, object?>> selector, T value, ExpressionType binaryExpression)
22.271.3.2.1. Parameters
selector Expression<Func<TIn, object?>>
value T
Value for the operation
binaryExpression ExpressionType
Operation to perform
22.271.3.2.2. Returns
Expression<Func<TIn, bool>>
The
22.271.3.2.3. Type Parameters
TIn
Class from which to access the field
T
Type of the value and field on which the operation is applied
22.271.3.3. MakeCall<TIn, T>(Expression<Func<TIn, object?>>, T, Type, string, bool)
Generate
public static Expression<Func<TIn, bool>> MakeCall<TIn, T>(Expression<Func<TIn, object?>> selector, T value, Type type, string method, bool invert = false)
22.271.3.3.1. Parameters
selector Expression<Func<TIn, object?>>
value T
Value for the operation
type Type
Type of the collection containing the method we want to apply
method string
The name of the method from the type
invert bool
Whether we should invert the result (not operation)
22.271.3.3.2. Returns
Expression<Func<TIn, bool>>
The
22.271.3.3.3. Type Parameters
TIn
Class from which to access the field
T
Type of the value and field on which the operation is applied
22.271.3.4. MakeCallString<TIn>(Expression<Func<TIn, object?>>, string, string, bool)
Generate
public static Expression<Func<TIn, bool>> MakeCallString<TIn>(Expression<Func<TIn, object?>> selector, string value, string method, bool invert = false)
22.271.3.4.1. Parameters
selector Expression<Func<TIn, object?>>
value string
Value for the operation
method string
The name of the method from the string type
invert bool
Whether we should invert the result (not operation)
22.271.3.4.2. Returns
Expression<Func<TIn, bool>>
The
22.271.3.4.3. Type Parameters
TIn
Class from which to access the field