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