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