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