3 instantiations of CallSite
System.Linq.Expressions (3)
System\Runtime\CompilerServices\CallSite.cs (3)
181
return new
CallSite
<T>();
194
return matchmaker ?? new
CallSite
<T>() { _match = true };
219
return new
CallSite
<T>(binder);
106 references to CallSite
Microsoft.AspNetCore.JsonPatch (4)
Internal\DynamicObjectAdapter.cs (4)
185
var
callsite =
CallSite
<Func<CallSite, object, object>>.Create(binder);
222
var
callsite =
CallSite
<Func<CallSite, object, object, object>>.Create(binder);
Microsoft.CSharp (14)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (14)
131
var
site =
CallSite
<Func<CallSite, T1, T2, object>>.Create(binder);
140
var
trueFalseSite =
CallSite
<Func<CallSite, T, bool>>
148
var
site =
CallSite
<Func<CallSite, T, object>>
159
var
site =
CallSite
<Func<CallSite, T, K>>.Create(Binder.Convert(kind, type, accessibilityContext));
298
var
site =
CallSite
<Func<CallSite, T, object>>.Create(binder);
364
var
site =
CallSite
<Func<CallSite, TObject, TValue, object>>.Create(binder);
407
var
site =
CallSite
<Func<CallSite, object, object>>.Create(new GetMemberValueBinder(name, ignoreCase));
Microsoft.VisualBasic.Core (17)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (17)
1380
Dim CallSiteType As Type = GetType(
CallSite
(Of )).MakeGenericType(CallSiteDelegate)
1418
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object)) =
1419
CallSite
(Of Func(Of CallSite, Object, Object)).Create(action)
1422
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object)) =
1423
CallSite
(Of Func(Of CallSite, Object, Object, Object)).Create(action)
1426
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object)) =
1427
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object)).Create(action)
1430
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object)) =
1431
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object)).Create(action)
1434
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object)) =
1435
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object)).Create(action)
1438
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object)) =
1439
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object)).Create(action)
1442
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object)) =
1443
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object)).Create(action)
1446
Dim c As
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object, Object)) =
1447
CallSite
(Of Func(Of CallSite, Object, Object, Object, Object, Object, Object, Object, Object, Object)).Create(action)
netstandard (1)
netstandard.cs (1)
1504
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.
CallSite
<>))]
PresentationFramework-SystemCore (6)
DynamicAccessorImpl.cs (6)
30
_getter =
CallSite
<Func<CallSite, object, object>>.Create(binder);
41
_setter =
CallSite
<Action<CallSite, object, object>>.Create(binder);
47
CallSite
<Func<CallSite, object, object>> _getter;
48
CallSite
<Action<CallSite, object, object>> _setter;
79
callsiteType = typeof(
CallSite
<>).MakeGenericType(new Type[]{ delegateType });
99
callsiteType = typeof(
CallSite
<>).MakeGenericType(new Type[]{ delegateType });
System.Core (1)
System.Core.cs (1)
184
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.
CallSite
<>))]
System.Dynamic.Runtime (1)
System.Dynamic.Runtime.cs (1)
6
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.
CallSite
<>))]
System.Linq.Expressions (62)
System\Dynamic\UpdateDelegates.Generated.cs (40)
19
var
@this = (
CallSite
<Func<CallSite, T0, TRet>>)site;
165
var
@this = (
CallSite
<Func<CallSite, T0, T1, TRet>>)site;
311
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, TRet>>)site;
457
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, TRet>>)site;
603
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, T4, TRet>>)site;
749
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, T4, T5, TRet>>)site;
895
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet>>)site;
1041
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet>>)site;
1187
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>>)site;
1333
var
@this = (
CallSite
<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>>)site;
1479
var
@this = (
CallSite
<Action<CallSite, T0>>)site;
1624
var
@this = (
CallSite
<Action<CallSite, T0, T1>>)site;
1769
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2>>)site;
1914
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3>>)site;
2059
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3, T4>>)site;
2204
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3, T4, T5>>)site;
2349
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3, T4, T5, T6>>)site;
2494
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7>>)site;
2639
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8>>)site;
2784
var
@this = (
CallSite
<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>>)site;
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
16
private static readonly FieldInfo s_callSiteTargetField = typeof(
CallSite
<>).GetField("Target")!;
616
Debug.Assert(siteType.IsGenericType && siteType.GetGenericTypeDefinition() == typeof(
CallSite
<>));
System\Linq\Expressions\DynamicExpression.cs (1)
38
[DynamicDependency("Target", typeof(
CallSite
<>))]
System\Runtime\CompilerServices\CallSite.cs (5)
102
MethodInfo method = typeof(
CallSite
<>).MakeGenericType(delegateType).GetMethod(nameof(Create))!;
179
internal static
CallSite
<T> CreateMatchMaker()
215
public static
CallSite
<T> Create(CallSiteBinder binder)
375
ParameterExpression @this = Expression.Variable(typeof(
CallSite
<T>), "this");
388
Expression target = Expression.Field(@this, typeof(
CallSite
<T>).GetField(nameof(Target))!);
System\Runtime\CompilerServices\CallSiteBinder.cs (5)
99
public virtual T? BindDelegate<T>(
CallSite
<T> site, object[] args) where T : class
105
internal T BindCore<T>(
CallSite
<T> site, object[] args) where T : class
155
Type siteType = typeof(
CallSite
<T>);
186
typeof(
CallSite
<T>).GetProperty(nameof(
CallSite
<T>.Update))!
System\Runtime\CompilerServices\CallSiteOps.cs (9)
26
public static
CallSite
<T> CreateMatchmaker<T>(
CallSite
<T> site) where T : class
28
var
mm =
CallSite
<T>.CreateMatchMaker();
75
public static void AddRule<T>(
CallSite
<T> site, T rule) where T : class
87
public static void UpdateRules<T>(
CallSite
<T> @this, int matched) where T : class
102
public static T[]? GetRules<T>(
CallSite
<T> site) where T : class
114
public static RuleCache<T> GetRuleCache<T>(
CallSite
<T> site) where T : class
157
public static T Bind<T>(CallSiteBinder binder,
CallSite
<T> site, object[] args) where T : class