71 references to BinderHelper
Microsoft.CSharp (71)
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (6)
83_argumentInfo = BinderHelper.ToArray(argumentInfo); 97hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 118return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 132BinderHelper.ValidateBindArgument(target, nameof(target)); 133BinderHelper.ValidateBindArgument(arg, nameof(arg)); 134return BinderHelper.Bind(this, _binder, new[] { target, arg }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (3)
130BinderHelper.ThrowIfUsingDynamicCom(target); 133BinderHelper.ValidateBindArgument(target, nameof(target)); 134return BinderHelper.Bind(this, _binder, new[] { target }, null, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpGetIndexBinder.cs (8)
53base(BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object 63hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 82return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 103BinderHelper.ThrowIfUsingDynamicCom(target); 106BinderHelper.ValidateBindArgument(target, nameof(target)); 107BinderHelper.ValidateBindArgument(indexes, nameof(indexes)); 108return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, indexes), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpGetMemberBinder.cs (6)
64_argumentInfo = BinderHelper.ToArray(argumentInfo); 77hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 98return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 118BinderHelper.ThrowIfUsingDynamicCom(target); 121BinderHelper.ValidateBindArgument(target, nameof(target)); 122return BinderHelper.Bind(this, _binder, new[] { target }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeBinder.cs (8)
63base(BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object (even if static, arg is type) 75hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 95return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 116BinderHelper.ThrowIfUsingDynamicCom(target); 119BinderHelper.ValidateBindArgument(target, nameof(target)); 120BinderHelper.ValidateBindArgument(args, nameof(args)); 121return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeConstructorBinder.cs (7)
53_argumentInfo = BinderHelper.ToArray(argumentInfo); 63hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); 85return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); 92BinderHelper.ValidateBindArgument(target, nameof(target)); 93BinderHelper.ValidateBindArgument(args, nameof(args)); 94return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, null);
Microsoft\CSharp\RuntimeBinder\CSharpInvokeMemberBinder.cs (10)
71base(name, false, BinderHelper.CreateCallInfo(ref argumentInfo, 1)) // discard 1 argument: the target object (even if static, arg is type) 75TypeArguments = BinderHelper.ToArray(typeArguments); 76_argumentInfo = BinderHelper.ToArray(argumentInfo); 86hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); 108return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); 129BinderHelper.ThrowIfUsingDynamicCom(target); 132BinderHelper.ValidateBindArgument(target, nameof(target)); 133BinderHelper.ValidateBindArgument(args, nameof(args)); 134return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpIsEventBinder.cs (2)
91BinderHelper.ValidateBindArgument(target, nameof(target)); 92return BinderHelper.Bind(this, _binder, new[] { target }, null, null);
Microsoft\CSharp\RuntimeBinder\CSharpSetIndexBinder.cs (9)
61base(BinderHelper.CreateCallInfo(ref argumentInfo, 2)) // discard 2 arguments: the target object and the value 80hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 101return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 123BinderHelper.ThrowIfUsingDynamicCom(target); 126BinderHelper.ValidateBindArgument(target, nameof(target)); 127BinderHelper.ValidateBindArgument(indexes, nameof(indexes)); 128BinderHelper.ValidateBindArgument(value, nameof(value)); 129return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, indexes, value), _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpSetMemberBinder.cs (7)
63_argumentInfo = BinderHelper.ToArray(argumentInfo); 80hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 102return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 123BinderHelper.ThrowIfUsingDynamicCom(target); 126BinderHelper.ValidateBindArgument(target, nameof(target)); 127BinderHelper.ValidateBindArgument(value, nameof(value)); 128return BinderHelper.Bind(this, _binder, new[] { target, value }, _argumentInfo, errorSuggestion);
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (5)
69_argumentInfo = BinderHelper.ToArray(argumentInfo); 83hash = BinderHelper.AddArgHashes(hash, _argumentInfo); 103return BinderHelper.CompareArgInfos(_argumentInfo, otherBinder._argumentInfo); 116BinderHelper.ValidateBindArgument(target, nameof(target)); 117return BinderHelper.Bind(this, _binder, new[] { target }, _argumentInfo, errorSuggestion);