1 type derived from CallSite
System.Linq.Expressions (1)
System\Runtime\CompilerServices\CallSite.cs (1)
122public class CallSite<T> : CallSite where T : class
208 references to CallSite
Microsoft.AspNetCore.JsonPatch (2)
Internal\DynamicObjectAdapter.cs (2)
185var callsite = CallSite<Func<CallSite, object, object>>.Create(binder); 222var callsite = CallSite<Func<CallSite, object, object, object>>.Create(binder);
Microsoft.CSharp (10)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (10)
131var site = CallSite<Func<CallSite, T1, T2, object>>.Create(binder); 140var trueFalseSite = CallSite<Func<CallSite, T, bool>> 148var site = CallSite<Func<CallSite, T, object>> 159var site = CallSite<Func<CallSite, T, K>>.Create(Binder.Convert(kind, type, accessibilityContext)); 178delegateSignatureTypes[0] = typeof(CallSite); 211var site = CallSite.Create(delegateType, binder); 298var site = CallSite<Func<CallSite, T, object>>.Create(binder); 364var site = CallSite<Func<CallSite, TObject, TValue, object>>.Create(binder); 407var site = CallSite<Func<CallSite, object, object>>.Create(new GetMemberValueBinder(name, ignoreCase));
Microsoft.VisualBasic.Core (23)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (23)
1371CallSiteSignature(0) = GetType(CallSite) ' CallSite must go first 1418Dim c As CallSite(Of Func(Of CallSite, Object, Object)) = 1419CallSite(Of Func(Of CallSite, Object, Object)).Create(action) 1422Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object)) = 1423CallSite(Of Func(Of CallSite, Object, Object, Object)).Create(action) 1426Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object)) = 1427CallSite(Of Func(Of CallSite, Object, Object, Object, Object)).Create(action) 1430Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object)) = 1431CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object)).Create(action) 1434Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object)) = 1435CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object)).Create(action) 1438Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object)) = 1439CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object)).Create(action) 1442Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object)) = 1443CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object)).Create(action) 1446Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object, Object)) = 1447CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object, Object)).Create(action) 1451delegateArgTypes(0) = GetType(CallSite) 1455Dim c As CallSite = CallSite.Create(Expression.GetDelegateType(delegateArgTypes), action) 1478delegateArgTypes(0) = GetType(CallSite) 1481Dim c As CallSite = CallSite.Create(Expression.GetFuncType(delegateArgTypes), GetCachedBinder(action))
netstandard (1)
netstandard.cs (1)
1503[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSite))]
PresentationFramework-SystemCore (9)
DynamicAccessorImpl.cs (9)
30_getter = CallSite<Func<CallSite, object, object>>.Create(binder); 41_setter = CallSite<Action<CallSite, object, object>>.Create(binder); 47CallSite<Func<CallSite, object, object>> _getter; 48CallSite<Action<CallSite, object, object>> _setter; 71typeArgs[0] = typeof(CallSite); 81_getterCallSite = (CallSite)createMethod.Invoke(null, new object[]{ getBinder }); 90typeArgs[0] = typeof(CallSite); 101_setterCallSite = (CallSite)createMethod.Invoke(null, new object[]{ setBinder }); 155CallSite _getterCallSite, _setterCallSite;
System.Core (1)
System.Core.cs (1)
183[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSite))]
System.Dynamic.Runtime (1)
System.Dynamic.Runtime.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSite))]
System.Linq.Expressions (161)
System\Dynamic\UpdateDelegates.Generated.cs (100)
14internal static TRet UpdateAndExecute1<T0, TRet>(CallSite site, T0 arg0) 19var @this = (CallSite<Func<CallSite, T0, TRet>>)site; 20Func<CallSite, T0, TRet>[] applicable; 21Func<CallSite, T0, TRet> rule, originalRule = @this.Target; 150internal static TRet NoMatch1<T0, TRet>(CallSite site, T0 arg0) 160internal static TRet UpdateAndExecute2<T0, T1, TRet>(CallSite site, T0 arg0, T1 arg1) 165var @this = (CallSite<Func<CallSite, T0, T1, TRet>>)site; 166Func<CallSite, T0, T1, TRet>[] applicable; 167Func<CallSite, T0, T1, TRet> rule, originalRule = @this.Target; 296internal static TRet NoMatch2<T0, T1, TRet>(CallSite site, T0 arg0, T1 arg1) 306internal static TRet UpdateAndExecute3<T0, T1, T2, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2) 311var @this = (CallSite<Func<CallSite, T0, T1, T2, TRet>>)site; 312Func<CallSite, T0, T1, T2, TRet>[] applicable; 313Func<CallSite, T0, T1, T2, TRet> rule, originalRule = @this.Target; 442internal static TRet NoMatch3<T0, T1, T2, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2) 452internal static TRet UpdateAndExecute4<T0, T1, T2, T3, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) 457var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, TRet>>)site; 458Func<CallSite, T0, T1, T2, T3, TRet>[] applicable; 459Func<CallSite, T0, T1, T2, T3, TRet> rule, originalRule = @this.Target; 588internal static TRet NoMatch4<T0, T1, T2, T3, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) 598internal static TRet UpdateAndExecute5<T0, T1, T2, T3, T4, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) 603var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, TRet>>)site; 604Func<CallSite, T0, T1, T2, T3, T4, TRet>[] applicable; 605Func<CallSite, T0, T1, T2, T3, T4, TRet> rule, originalRule = @this.Target; 734internal static TRet NoMatch5<T0, T1, T2, T3, T4, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) 744internal static TRet UpdateAndExecute6<T0, T1, T2, T3, T4, T5, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) 749var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, TRet>>)site; 750Func<CallSite, T0, T1, T2, T3, T4, T5, TRet>[] applicable; 751Func<CallSite, T0, T1, T2, T3, T4, T5, TRet> rule, originalRule = @this.Target; 880internal static TRet NoMatch6<T0, T1, T2, T3, T4, T5, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) 890internal static TRet UpdateAndExecute7<T0, T1, T2, T3, T4, T5, T6, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) 895var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet>>)site; 896Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet>[] applicable; 897Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet> rule, originalRule = @this.Target; 1026internal static TRet NoMatch7<T0, T1, T2, T3, T4, T5, T6, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) 1036internal static TRet UpdateAndExecute8<T0, T1, T2, T3, T4, T5, T6, T7, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) 1041var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet>>)site; 1042Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet>[] applicable; 1043Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet> rule, originalRule = @this.Target; 1172internal static TRet NoMatch8<T0, T1, T2, T3, T4, T5, T6, T7, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) 1182internal static TRet UpdateAndExecute9<T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) 1187var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>>)site; 1188Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>[] applicable; 1189Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet> rule, originalRule = @this.Target; 1318internal static TRet NoMatch9<T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) 1328internal static TRet UpdateAndExecute10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) 1333var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>>)site; 1334Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>[] applicable; 1335Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet> rule, originalRule = @this.Target; 1464internal static TRet NoMatch10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) 1474internal static void UpdateAndExecuteVoid1<T0>(CallSite site, T0 arg0) 1479var @this = (CallSite<Action<CallSite, T0>>)site; 1480Action<CallSite, T0>[] applicable; 1481Action<CallSite, T0> rule, originalRule = @this.Target; 1609internal static void NoMatchVoid1<T0>(CallSite site, T0 arg0) 1619internal static void UpdateAndExecuteVoid2<T0, T1>(CallSite site, T0 arg0, T1 arg1) 1624var @this = (CallSite<Action<CallSite, T0, T1>>)site; 1625Action<CallSite, T0, T1>[] applicable; 1626Action<CallSite, T0, T1> rule, originalRule = @this.Target; 1754internal static void NoMatchVoid2<T0, T1>(CallSite site, T0 arg0, T1 arg1) 1764internal static void UpdateAndExecuteVoid3<T0, T1, T2>(CallSite site, T0 arg0, T1 arg1, T2 arg2) 1769var @this = (CallSite<Action<CallSite, T0, T1, T2>>)site; 1770Action<CallSite, T0, T1, T2>[] applicable; 1771Action<CallSite, T0, T1, T2> rule, originalRule = @this.Target; 1899internal static void NoMatchVoid3<T0, T1, T2>(CallSite site, T0 arg0, T1 arg1, T2 arg2) 1909internal static void UpdateAndExecuteVoid4<T0, T1, T2, T3>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) 1914var @this = (CallSite<Action<CallSite, T0, T1, T2, T3>>)site; 1915Action<CallSite, T0, T1, T2, T3>[] applicable; 1916Action<CallSite, T0, T1, T2, T3> rule, originalRule = @this.Target; 2044internal static void NoMatchVoid4<T0, T1, T2, T3>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) 2054internal static void UpdateAndExecuteVoid5<T0, T1, T2, T3, T4>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) 2059var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4>>)site; 2060Action<CallSite, T0, T1, T2, T3, T4>[] applicable; 2061Action<CallSite, T0, T1, T2, T3, T4> rule, originalRule = @this.Target; 2189internal static void NoMatchVoid5<T0, T1, T2, T3, T4>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) 2199internal static void UpdateAndExecuteVoid6<T0, T1, T2, T3, T4, T5>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) 2204var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5>>)site; 2205Action<CallSite, T0, T1, T2, T3, T4, T5>[] applicable; 2206Action<CallSite, T0, T1, T2, T3, T4, T5> rule, originalRule = @this.Target; 2334internal static void NoMatchVoid6<T0, T1, T2, T3, T4, T5>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) 2344internal static void UpdateAndExecuteVoid7<T0, T1, T2, T3, T4, T5, T6>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) 2349var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6>>)site; 2350Action<CallSite, T0, T1, T2, T3, T4, T5, T6>[] applicable; 2351Action<CallSite, T0, T1, T2, T3, T4, T5, T6> rule, originalRule = @this.Target; 2479internal static void NoMatchVoid7<T0, T1, T2, T3, T4, T5, T6>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) 2489internal static void UpdateAndExecuteVoid8<T0, T1, T2, T3, T4, T5, T6, T7>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) 2494var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7>>)site; 2495Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7>[] applicable; 2496Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7> rule, originalRule = @this.Target; 2624internal static void NoMatchVoid8<T0, T1, T2, T3, T4, T5, T6, T7>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) 2634internal static void UpdateAndExecuteVoid9<T0, T1, T2, T3, T4, T5, T6, T7, T8>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) 2639var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8>>)site; 2640Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8>[] applicable; 2641Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8> rule, originalRule = @this.Target; 2769internal static void NoMatchVoid9<T0, T1, T2, T3, T4, T5, T6, T7, T8>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) 2779internal static void UpdateAndExecuteVoid10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) 2784var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>>)site; 2785Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>[] applicable; 2786Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> rule, originalRule = @this.Target; 2914internal static void NoMatchVoid10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
System\Linq\Expressions\Compiler\DelegateHelpers.cs (3)
30curTypeInfo = NextTypeInfo(typeof(CallSite), curTypeInfo); 65curTypeInfo = NextTypeInfo(typeof(CallSite), curTypeInfo); 88paramTypes[0] = typeof(CallSite);
System\Linq\Expressions\Compiler\TypeInfoExtensions.cs (1)
24paramTypes[0] = typeof(CallSite);
System\Linq\Expressions\DynamicExpression.cs (20)
43var site = Expression.Constant(CallSite.Create(DelegateType, Binder)); 131/// Gets the type of the delegate used by the <see cref="CallSite" />. 368/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 387/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 405/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 423/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 442/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 462/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 486return CallSite.Create(this.DelegateType, this.Binder); 823/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 841/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 881/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 910/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 942/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 977/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 1016if (pi.Length == 0 || pi[0].ParameterType != typeof(CallSite)) throw Error.FirstArgumentMustBeCallSite(); 1068DelegateHelpers.NextTypeInfo(typeof(CallSite)) 1107DelegateHelpers.NextTypeInfo(typeof(CallSite)) 1151DelegateHelpers.NextTypeInfo(typeof(CallSite)) 1200DelegateHelpers.NextTypeInfo(typeof(CallSite))
System\Linq\Expressions\Expression.cs (6)
416/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 433/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 450/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 468/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 487/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 507/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param>
System\Runtime\CompilerServices\CallSite.cs (16)
54private static volatile CacheDict<Type, Func<CallSiteBinder, CallSite>>? s_siteCtors; 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)) 107return (CallSite)method.Invoke(null, new object[] { binder })!; 110ctor = (Func<CallSiteBinder, CallSite>)method.CreateDelegate(typeof(Func<CallSiteBinder, CallSite>)); 159internal CallSite? _cachedMatchmaker; 184internal CallSite GetMatchmaker() 187var matchmaker = _cachedMatchmaker; 197internal void ReleaseMatchmaker(CallSite matchMaker) 309if (target == System.Linq.Expressions.Compiler.DelegateHelpers.GetActionType(args.AddFirst(typeof(CallSite)))) 317if (target == System.Linq.Expressions.Compiler.DelegateHelpers.GetFuncType(args.AddFirst(typeof(CallSite)))) 337ContractUtils.Requires(pis.Length > 0 && pis[0].ParameterType == typeof(CallSite), nameof(T)); 619Expression.Property(@this, typeof(CallSite).GetProperty(nameof(Binder))!),
System\Runtime\CompilerServices\CallSiteBinder.cs (3)
60if (pis[0].ParameterType != typeof(CallSite)) 160var site = Expression.Parameter(typeof(CallSite), "$site"); 196CallSite.CallSiteTargetMethodName,
System\Runtime\CompilerServices\CallSiteHelpers.cs (1)
32if (mb.Name == CallSite.CallSiteTargetMethodName && mb.GetType() != s_knownNonDynamicMethodType)
System\Runtime\CompilerServices\CallSiteOps.cs (11)
23/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 40public static bool SetNotMatched(CallSite site) 53public static bool GetMatch(CallSite site) 63public static void ClearMatch(CallSite site) 71/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 83/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 98/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 110/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 122/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 138/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 150/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam>