13 references to Requires
System.Linq.Expressions (13)
System\Dynamic\BinaryOperationBinder.cs (2)
22
ContractUtils.
Requires
(OperationIsValid(operation), nameof(operation));
66
ContractUtils.
Requires
(args.Length == 1, nameof(args));
System\Dynamic\BindingRestrictions.cs (1)
113
ContractUtils.
Requires
(expression.Type == typeof(bool), nameof(expression));
System\Dynamic\ConvertBinder.cs (1)
66
ContractUtils.
Requires
(args == null || args.Length == 0, nameof(args));
System\Dynamic\DeleteMemberBinder.cs (1)
71
ContractUtils.
Requires
(args == null || args.Length == 0, nameof(args));
System\Dynamic\DynamicObject.cs (1)
464
ContractUtils.
Requires
(variable != null, nameof(args));
System\Dynamic\GetMemberBinder.cs (1)
71
ContractUtils.
Requires
(args == null || args.Length == 0, nameof(args));
System\Dynamic\SetIndexBinder.cs (1)
46
ContractUtils.
Requires
(args.Length >= 2, nameof(args));
System\Dynamic\SetMemberBinder.cs (1)
54
ContractUtils.
Requires
(args.Length == 1, nameof(args));
System\Dynamic\UnaryOperationBinder.cs (2)
22
ContractUtils.
Requires
(OperationIsValid(operation), nameof(operation));
76
ContractUtils.
Requires
(args == null || args.Length == 0, nameof(args));
System\Linq\Expressions\CatchBlock.cs (1)
138
ContractUtils.
Requires
(variable == null || TypeUtils.AreEquivalent(variable.Type, type), nameof(variable));
System\Runtime\CompilerServices\CallSite.cs (1)
337
ContractUtils.
Requires
(pis.Length > 0 && pis[0].ParameterType == typeof(CallSite), nameof(T));