11[DebuggerDisplay(
"{DebugView}")]
109 return customRestriction._expression ==
_expression;
173 return instanceRestriction._instance ==
_instance;
218 if (stack.
Count == 0)
224 return list.ToArray();
273 if (
obj.Value ==
null &&
obj.HasValue)
void Add(TKey key, TValue value)
BindingRestrictionsProxy(BindingRestrictions node)
override string ToString()
BindingRestrictions[] Restrictions
readonly BindingRestrictions _node
CustomRestriction(Expression expression)
readonly Expression _expression
override int GetHashCode()
override Expression GetExpression()
override bool Equals([NotNullWhen(true)] object obj)
readonly Expression _expression
override bool Equals([NotNullWhen(true)] object obj)
override int GetHashCode()
readonly object _instance
override Expression GetExpression()
InstanceRestriction(Expression parameter, object instance)
MergedRestriction(BindingRestrictions left, BindingRestrictions right)
readonly BindingRestrictions Left
override Expression GetExpression()
readonly BindingRestrictions Right
readonly Stack< AndNode > _tests
readonly HashSet< BindingRestrictions > _unique
void Append(BindingRestrictions restrictions)
Expression ToExpression()
void Push(Expression node, int depth)
override bool Equals([NotNullWhen(true)] object obj)
TypeRestriction(Expression parameter, Type type)
override Expression GetExpression()
readonly Expression _expression
override int GetHashCode()
static BindingRestrictions GetTypeRestriction(DynamicMetaObject obj)
static BindingRestrictions Combine(IList< DynamicMetaObject >? contributingObjects)
Expression GetExpression()
BindingRestrictions Merge(BindingRestrictions restrictions)
static readonly BindingRestrictions Empty
static BindingRestrictions GetTypeRestriction(Expression expression, Type type)
static BindingRestrictions GetExpressionRestriction(Expression expression)
static BindingRestrictions GetInstanceRestriction(Expression expression, object? instance)
Expression ToExpression()
static void Requires([DoesNotReturnIf(false)] bool precondition, string paramName)
static void RequiresNotNull(object value, string paramName)
static bool AreEquivalent(Type t1, Type t2)
static ConstantExpression Constant(object? value)
static BlockExpression Block(Expression arg0, Expression arg1)
static BinaryExpression NotEqual(Expression left, Expression right)
override string ToString()
static BinaryExpression Assign(Expression left, Expression right)
static TypeBinaryExpression TypeEqual(Expression expression, Type type)
static ParameterExpression Parameter(Type type)
static UnaryExpression Convert(Expression expression, Type type)
static BinaryExpression AndAlso(Expression left, Expression right)
static BinaryExpression Equal(Expression left, Expression right)
static readonly ConstantExpression Null
static ConstantExpression Constant(bool value)
static int GetHashCode(object? o)
override int GetHashCode()