1 type derived from CallSiteBinder
System.Linq.Expressions (1)
System\Dynamic\DynamicMetaObjectBinder.cs (1)
24public abstract class DynamicMetaObjectBinder : CallSiteBinder
141 references to CallSiteBinder
Microsoft.AspNetCore.JsonPatch (2)
Internal\DynamicObjectAdapter.cs (2)
176var binder = CSharpBinder.Binder.GetMember( 212var binder = CSharpBinder.Binder.SetMember(
Microsoft.CSharp (15)
Microsoft\CSharp\RuntimeBinder\Binder.cs (11)
31public static CallSiteBinder BinaryOperation( 59public static CallSiteBinder Convert( 86public static CallSiteBinder GetIndex( 105public static CallSiteBinder GetMember( 125public static CallSiteBinder Invoke( 153public static CallSiteBinder InvokeMember( 191public static CallSiteBinder InvokeConstructor( 209public static CallSiteBinder IsEvent( 227public static CallSiteBinder SetIndex( 248public static CallSiteBinder SetMember( 270public static CallSiteBinder UnaryOperation(
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (4)
208private static object CreateDelegateAndInvoke(Type[] delegateSignatureTypes, CallSiteBinder binder, object[] args) 252CallSiteBinder binder; 329CallSiteBinder binder = new CSharpGetIndexBinder(accessibilityContext, argInfos); 395CallSiteBinder binder = new CSharpSetIndexBinder(/*isCompoundAssignment */ false, /* isChecked */ false, accessibilityContext, argInfos);
Microsoft.VisualBasic.Core (12)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (12)
274Dim opBinder As CallSiteBinder 1116Private Shared s_binderCache As New CacheSet(Of CallSiteBinder)(64) 1139Private Shared Function GetCachedBinder(ByVal action As CallSiteBinder) As CallSiteBinder 1330Private Shared Invokers As New CacheDict(Of Integer, Func(Of CallSiteBinder, Object, Object(), Object))(16) 1334ByVal action As CallSiteBinder, 1340Dim Invoker As Func(Of CallSiteBinder, Object, Object(), Object) = Nothing 1363Private Shared Function CreateInvoker(ByVal ArgLength As Integer) As Func(Of CallSiteBinder, Object, Object(), Object) 1367Dim CallSiteBinderType As Type = GetType(CallSiteBinder) 1405Return DirectCast(InvokerMethod.CreateDelegate(GetType(Func(Of CallSiteBinder, Object, Object(), Object))), Func(Of CallSiteBinder, Object, Object(), Object)) 1410ByVal action As CallSiteBinder,
netstandard (1)
netstandard.cs (1)
1505[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSiteBinder))]
PresentationFramework-SystemCore (2)
DynamicAccessorImpl.cs (2)
80createMethod = callsiteType.GetMethod("Create", new Type[]{ typeof(CallSiteBinder) }); 100createMethod = callsiteType.GetMethod("Create", new Type[]{ typeof(CallSiteBinder) });
System.Core (1)
System.Core.cs (1)
185[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSiteBinder))]
System.Dynamic.Runtime (1)
System.Dynamic.Runtime.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSiteBinder))]
System.Linq.Expressions (107)
System\Dynamic\DynamicMetaObjectBinder.cs (2)
19/// The <see cref="CallSiteBinder"/> performs the binding of the dynamic operation using the runtime values 173return Expression.Goto(CallSiteBinder.UpdateLabel, type);
System\Linq\Expressions\DynamicExpression.cs (67)
22internal DynamicExpression(Type delegateType, CallSiteBinder binder) 51internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, ReadOnlyCollection<Expression> arguments) 63internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0) 75internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 87internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 99internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 125/// Gets the <see cref="CallSiteBinder" />, which determines the runtime behavior of the 128public CallSiteBinder Binder { get; } 228/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 244public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments) 250/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 266public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) 272/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 288public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0) 294/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 311public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1) 317/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 335public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2) 341/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 360public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 366/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 379public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression>? arguments) 385/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 397public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[]? arguments) 403/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and one argument. 415public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0) 421/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and two arguments. 434public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 440/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and three arguments. 454public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 460/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and four arguments. 475public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 496internal DynamicExpressionN(Type delegateType, CallSiteBinder binder, IReadOnlyList<Expression> arguments) 524internal TypedDynamicExpressionN(Type returnType, Type delegateType, CallSiteBinder binder, IReadOnlyList<Expression> arguments) 538internal DynamicExpression1(Type delegateType, CallSiteBinder binder, Expression arg0) 582internal TypedDynamicExpression1(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0) 596internal DynamicExpression2(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 651internal TypedDynamicExpression2(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 665internal DynamicExpression3(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 726internal TypedDynamicExpression3(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 740internal DynamicExpression4(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 807internal TypedDynamicExpression4(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 821/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 833public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[]? arguments) 839/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 851public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression>? arguments) 879/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and one argument. 891public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0) 908/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and two arguments. 921public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 940/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and three arguments. 954public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 975/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and four arguments. 990public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 1021/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 1037public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments) 1043/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 1059public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0) 1078/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 1095public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1) 1118/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 1136public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2) 1163/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 1182public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 1213/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 1229public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) 1240private static DynamicExpression MakeDynamic(CallSiteBinder binder, Type returnType, ReadOnlyCollection<Expression> arguments)
System\Linq\Expressions\Expression.cs (24)
288/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 304public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) => 308/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 324public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0) => 328/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 345public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1) => 349/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 367public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2) => 371/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 390public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3) => 394/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 410public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments) => 414/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 427public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression>? arguments) => 431/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and one argument. 444public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0) => 448/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and two arguments. 462public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) => 466/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and three arguments. 481public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) => 485/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" /> and four arguments. 501public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) => 505/// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />. 518public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[]? arguments) =>
System\Runtime\CompilerServices\CallSite.cs (12)
54private static volatile CacheDict<Type, Func<CallSiteBinder, CallSite>>? s_siteCtors; 61internal readonly CallSiteBinder? _binder; 64internal CallSite(CallSiteBinder? binder) 77public CallSiteBinder? Binder => _binder; 87public static CallSite Create(Type delegateType, CallSiteBinder binder) 93CacheDict<Type, Func<CallSiteBinder, CallSite>>? ctors = s_siteCtors; 97s_siteCtors = ctors = new CacheDict<Type, Func<CallSiteBinder, CallSite>>(100); 100if (!ctors.TryGetValue(delegateType, out Func<CallSiteBinder, CallSite>? ctor)) 110ctor = (Func<CallSiteBinder, CallSite>)method.CreateDelegate(typeof(Func<CallSiteBinder, CallSite>)); 168private CallSite(CallSiteBinder binder) 215public static CallSite<T> Create(CallSiteBinder binder)
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
27/// Initializes a new instance of the <see cref="CallSiteBinder"/> class.
System\Runtime\CompilerServices\CallSiteOps.cs (1)
157public static T Bind<T>(CallSiteBinder binder, CallSite<T> site, object[] args) where T : class