79 references to MulticastDelegate
Microsoft.AspNetCore.Components (13)
EventCallback.cs (2)
23
internal readonly
MulticastDelegate
? Delegate;
31
public EventCallback(IHandleEvent? receiver,
MulticastDelegate
? @delegate)
EventCallbackFactory.cs (2)
196
private static EventCallback CreateCore(object receiver,
MulticastDelegate
callback)
201
private static EventCallback<TValue> CreateCore<TValue>(object receiver,
MulticastDelegate
callback)
EventCallbackOfT.cs (2)
18
internal readonly
MulticastDelegate
? Delegate;
26
public EventCallback(IHandleEvent? receiver,
MulticastDelegate
? @delegate)
EventCallbackWorkItem.cs (3)
18
private readonly
MulticastDelegate
? _delegate;
24
public EventCallbackWorkItem(
MulticastDelegate
? @delegate)
39
internal static Task InvokeAsync<T>(
MulticastDelegate
? @delegate, T arg)
Rendering\RenderTreeBuilder.cs (2)
244
public void AddAttribute(int sequence, string name,
MulticastDelegate
? value)
388
else if (value is
MulticastDelegate
)
RenderTree\Renderer.cs (1)
627
else if (frame.AttributeValueField is
MulticastDelegate
@delegate)
RenderTree\RenderTreeDiffBuilder.cs (1)
977
if ((newFrame.AttributeValueField is
MulticastDelegate
|| newFrame.AttributeValueField is EventCallback) &&
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
146
new PredefinedTypeInfo(PredefinedType.PT_MULTIDEL, typeof(
MulticastDelegate
), "System.MulticastDelegate"),
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
369
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
MulticastDelegate
))]
netstandard (1)
netstandard.cs (1)
1061
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
MulticastDelegate
))]
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
34
public static T AsDelegate<T>(this
MulticastDelegate
del)
PresentationFramework-SystemCore (3)
DynamicAccessorImpl.cs (3)
85
_getterDelegate = (
MulticastDelegate
)targetField.GetValue(_getterCallSite);
105
_setterDelegate = (
MulticastDelegate
)targetField.GetValue(_setterCallSite);
156
MulticastDelegate
_getterDelegate, _setterDelegate;
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Primitives\ExportedDelegate.cs (1)
30
if (delegateType == typeof(Delegate) || delegateType == typeof(
MulticastDelegate
))
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectEventDescriptor.cs (1)
150
public override bool IsMulticast => (typeof(
MulticastDelegate
)).IsAssignableFrom(EventType);
System.Data.Odbc (1)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
575
internal static Delegate? FindBuilder(
MulticastDelegate
mcd)
System.Linq.Expressions (17)
System\Dynamic\Utils\TypeUtils.cs (1)
514
return t.IsSubclassOf(typeof(
MulticastDelegate
));
System\Linq\Expressions\BinaryExpression.cs (4)
1393
Debug.Assert(typeof(System.
MulticastDelegate
).IsAssignableFrom(delegateType) && delegateType != typeof(System.
MulticastDelegate
));
1549
Debug.Assert(typeof(System.
MulticastDelegate
).IsAssignableFrom(delegateType) && delegateType != typeof(System.
MulticastDelegate
));
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
71
typeof(
MulticastDelegate
),
System\Linq\Expressions\DynamicExpression.cs (5)
868
if (!delegateType.IsSubclassOf(typeof(
MulticastDelegate
))) throw Error.TypeMustBeDerivedFromSystemDelegate();
895
if (!delegateType.IsSubclassOf(typeof(
MulticastDelegate
))) throw Error.TypeMustBeDerivedFromSystemDelegate();
925
if (!delegateType.IsSubclassOf(typeof(
MulticastDelegate
))) throw Error.TypeMustBeDerivedFromSystemDelegate();
958
if (!delegateType.IsSubclassOf(typeof(
MulticastDelegate
))) throw Error.TypeMustBeDerivedFromSystemDelegate();
994
if (!delegateType.IsSubclassOf(typeof(
MulticastDelegate
))) throw Error.TypeMustBeDerivedFromSystemDelegate();
System\Linq\Expressions\InvocationExpression.cs (1)
746
if (!expression.Type.IsSubclassOf(typeof(
MulticastDelegate
)))
System\Linq\Expressions\LambdaExpression.cs (2)
919
if (!typeof(
MulticastDelegate
).IsAssignableFrom(delegateType) || delegateType == typeof(
MulticastDelegate
))
System\Runtime\CompilerServices\CallSite.cs (2)
91
if (!delegateType.IsSubclassOf(typeof(
MulticastDelegate
))) throw System.Linq.Expressions.Error.TypeMustBeDerivedFromSystemDelegate();
217
if (!typeof(T).IsSubclassOf(typeof(
MulticastDelegate
))) throw System.Linq.Expressions.Error.TypeMustBeDerivedFromSystemDelegate();
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
53
if (!target.IsSubclassOf(typeof(
MulticastDelegate
)))
System.Private.CoreLib (38)
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (4)
81
public bool HasSingleTarget => Unsafe.As<
MulticastDelegate
>(this).HasSingleTarget;
94
=> new InvocationListEnumerator<TDelegate>(Unsafe.As<
MulticastDelegate
>(d));
102
private readonly
MulticastDelegate
? _delegate;
106
internal InvocationListEnumerator(
MulticastDelegate
? d)
src\libraries\System.Private.CoreLib\src\System\MulticastDelegate.cs (4)
29
public static bool operator ==(
MulticastDelegate
? d1,
MulticastDelegate
? d2)
42
public static bool operator !=(
MulticastDelegate
? d1,
MulticastDelegate
? d2)
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
38
Type mc = typeof(
MulticastDelegate
);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (4)
1110
if (rt.BaseType != typeof(
MulticastDelegate
) && rt != typeof(
MulticastDelegate
))
1131
if (rt.BaseType != typeof(
MulticastDelegate
) && rt != typeof(
MulticastDelegate
))
src\System\Delegate.CoreCLR.cs (4)
428
private static
MulticastDelegate
InternalAlloc(RuntimeType type)
430
MulticastDelegate
? d = null;
438
internal static
MulticastDelegate
InternalAllocLike(
MulticastDelegate
d)
src\System\MulticastDelegate.CoreCLR.cs (18)
56
Debug.Assert(obj is
MulticastDelegate
, "Shouldn't have failed here since we already checked the types are the same!");
57
MulticastDelegate
d = Unsafe.As<
MulticastDelegate
>(obj);
123
private bool InvocationListEquals(
MulticastDelegate
d)
154
MulticastDelegate
d = (
MulticastDelegate
)o;
155
MulticastDelegate
dd = (
MulticastDelegate
)ai;
167
private
MulticastDelegate
NewMulticastDelegate(object[] invocationList, int invocationCount, bool thisIsMultiCastAlready)
170
MulticastDelegate
result = InternalAllocLike(this);
191
internal
MulticastDelegate
NewMulticastDelegate(object[] invocationList, int invocationCount)
202
MulticastDelegate
d = ((
MulticastDelegate
?)_invocationList)!;
220
MulticastDelegate
dFollow = (
MulticastDelegate
)follow;
334
MulticastDelegate
? v = value as
MulticastDelegate
;
508
if (_invocationList is
MulticastDelegate
innerDelegate)
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (2)
58
MulticastDelegate
d = (
MulticastDelegate
)Delegate.CreateDelegateNoSecurityCheck(delegateType, target, GetMethodDescriptor());
src\System\RuntimeType.CoreCLR.cs (1)
3465
bool isDelegate = !th.IsTypeDesc && th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<
MulticastDelegate
>().AsMethodTable();
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net9.0\System.Runtime.Forwards.cs (1)
353
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
MulticastDelegate
))]