71 references to BinderHelper
Microsoft.CSharp (71)
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (6)
82_argumentInfo = BinderHelper.ToArray(argumentInfo); 96hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 117return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 129BinderHelper.ValidateBindArgument(target, nameof(target)); 130BinderHelper.ValidateBindArgument(arg, nameof(arg)); 131return BinderHelper.Bind(this, _binder, new[] { target, arg }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (3)
127BinderHelper.ThrowIfUsingDynamicCom(target); 130BinderHelper.ValidateBindArgument(target, nameof(target)); 131return BinderHelper.Bind(this, _binder, new[] { target }, null, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpGetIndexBinder.cs (8)
52base(BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object 62hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 81return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 100BinderHelper.ThrowIfUsingDynamicCom(target); 103BinderHelper.ValidateBindArgument(target, nameof(target)); 104BinderHelper.ValidateBindArgument(indexes, nameof(indexes)); 105return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, indexes), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpGetMemberBinder.cs (6)
63_argumentInfo = BinderHelper.ToArray(argumentInfo); 76hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 97return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 115BinderHelper.ThrowIfUsingDynamicCom(target); 118BinderHelper.ValidateBindArgument(target, nameof(target)); 119return BinderHelper.Bind(this, _binder, new[] { target }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeBinder.cs (8)
62base(BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object (even if static, arg is type) 74hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 94return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 113BinderHelper.ThrowIfUsingDynamicCom(target); 116BinderHelper.ValidateBindArgument(target, nameof(target)); 117BinderHelper.ValidateBindArgument(args, nameof(args)); 118return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeConstructorBinder.cs (7)
52_argumentInfo = BinderHelper.ToArray(argumentInfo); 62hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); 84return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); 89BinderHelper.ValidateBindArgument(target, nameof(target)); 90BinderHelper.ValidateBindArgument(args, nameof(args)); 91return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, null);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeMemberBinder.cs (10)
70base(name, false, BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object (even if static, arg is type) 74TypeArguments = BinderHelper.ToArray(typeArguments); 75_argumentInfo = BinderHelper.ToArray(argumentInfo); 85hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); 107return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); 126BinderHelper.ThrowIfUsingDynamicCom(target); 129BinderHelper.ValidateBindArgument(target, nameof(target)); 130BinderHelper.ValidateBindArgument(args, nameof(args)); 131return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpIsEventBinder.cs (2)
88BinderHelper.ValidateBindArgument(target, nameof(target)); 89return BinderHelper.Bind(this, _binder, new[] { target }, null, null);
Microsoft\CSharp\RuntimeBinder\CSharpSetIndexBinder.cs (9)
60base(BinderHelper.CreateCallInfo(ref argumentInfo, 2)) // discard 2 arguments: the target object and the value 79hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 100return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 120BinderHelper.ThrowIfUsingDynamicCom(target); 123BinderHelper.ValidateBindArgument(target, nameof(target)); 124BinderHelper.ValidateBindArgument(indexes, nameof(indexes)); 125BinderHelper.ValidateBindArgument(value, nameof(value)); 126return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, indexes, value), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpSetMemberBinder.cs (7)
62_argumentInfo = BinderHelper.ToArray(argumentInfo); 79hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 101return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 120BinderHelper.ThrowIfUsingDynamicCom(target); 123BinderHelper.ValidateBindArgument(target, nameof(target)); 124BinderHelper.ValidateBindArgument(value, nameof(value)); 125return BinderHelper.Bind(this, _binder, new[] { target, value }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (5)
68_argumentInfo = BinderHelper.ToArray(argumentInfo); 82hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 102return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 113BinderHelper.ValidateBindArgument(target, nameof(target)); 114return BinderHelper.Bind(this, _binder, new[] { target }, _argumentInfo, errorSuggestion);