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