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\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\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);