71 references to BinderHelper
Microsoft.CSharp (71)
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (6)
81_argumentInfo = BinderHelper.ToArray(argumentInfo); 95hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 116return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 128BinderHelper.ValidateBindArgument(target, nameof(target)); 129BinderHelper.ValidateBindArgument(arg, nameof(arg)); 130return BinderHelper.Bind(this, _binder, new[] { target, arg }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (3)
126BinderHelper.ThrowIfUsingDynamicCom(target); 129BinderHelper.ValidateBindArgument(target, nameof(target)); 130return BinderHelper.Bind(this, _binder, new[] { target }, null, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpGetIndexBinder.cs (8)
51base(BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object 61hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 80return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 99BinderHelper.ThrowIfUsingDynamicCom(target); 102BinderHelper.ValidateBindArgument(target, nameof(target)); 103BinderHelper.ValidateBindArgument(indexes, nameof(indexes)); 104return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, indexes), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpGetMemberBinder.cs (6)
62_argumentInfo = BinderHelper.ToArray(argumentInfo); 75hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 96return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 114BinderHelper.ThrowIfUsingDynamicCom(target); 117BinderHelper.ValidateBindArgument(target, nameof(target)); 118return BinderHelper.Bind(this, _binder, new[] { target }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeBinder.cs (8)
61base(BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object (even if static, arg is type) 73hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 93return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 112BinderHelper.ThrowIfUsingDynamicCom(target); 115BinderHelper.ValidateBindArgument(target, nameof(target)); 116BinderHelper.ValidateBindArgument(args, nameof(args)); 117return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeConstructorBinder.cs (7)
51_argumentInfo = BinderHelper.ToArray(argumentInfo); 61hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); 83return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); 88BinderHelper.ValidateBindArgument(target, nameof(target)); 89BinderHelper.ValidateBindArgument(args, nameof(args)); 90return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, null);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeMemberBinder.cs (10)
69base(name, false, BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object (even if static, arg is type) 73TypeArguments = BinderHelper.ToArray(typeArguments); 74_argumentInfo = BinderHelper.ToArray(argumentInfo); 84hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); 106return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); 125BinderHelper.ThrowIfUsingDynamicCom(target); 128BinderHelper.ValidateBindArgument(target, nameof(target)); 129BinderHelper.ValidateBindArgument(args, nameof(args)); 130return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpIsEventBinder.cs (2)
87BinderHelper.ValidateBindArgument(target, nameof(target)); 88return BinderHelper.Bind(this, _binder, new[] { target }, null, null);
Microsoft\CSharp\RuntimeBinder\CSharpSetIndexBinder.cs (9)
59base(BinderHelper.CreateCallInfo(ref argumentInfo, 2)) // discard 2 arguments: the target object and the value 78hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 99return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 119BinderHelper.ThrowIfUsingDynamicCom(target); 122BinderHelper.ValidateBindArgument(target, nameof(target)); 123BinderHelper.ValidateBindArgument(indexes, nameof(indexes)); 124BinderHelper.ValidateBindArgument(value, nameof(value)); 125return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, indexes, value), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpSetMemberBinder.cs (7)
61_argumentInfo = BinderHelper.ToArray(argumentInfo); 78hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 100return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 119BinderHelper.ThrowIfUsingDynamicCom(target); 122BinderHelper.ValidateBindArgument(target, nameof(target)); 123BinderHelper.ValidateBindArgument(value, nameof(value)); 124return BinderHelper.Bind(this, _binder, new[] { target, value }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (5)
67_argumentInfo = BinderHelper.ToArray(argumentInfo); 81hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 101return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 112BinderHelper.ValidateBindArgument(target, nameof(target)); 113return BinderHelper.Bind(this, _binder, new[] { target }, _argumentInfo, errorSuggestion);