73 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)
248public void AddAttribute(int sequence, string name, MulticastDelegate? value) 392else if (value is MulticastDelegate)
RenderTree\Renderer.cs (1)
732else if (frame.AttributeValueField is MulticastDelegate @delegate)
RenderTree\RenderTreeDiffBuilder.cs (1)
1017if ((newFrame.AttributeValueField is MulticastDelegate || newFrame.AttributeValueField is EventCallback) &&
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
41/// Indicates that the type is <see cref="MulticastDelegate"/>.
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
148new PredefinedTypeInfo(PredefinedType.PT_MULTIDEL, typeof(MulticastDelegate), "System.MulticastDelegate"),
Microsoft.ML.Core (6)
ComponentModel\ComponentCatalog.cs (3)
762Contracts.CheckParam(sig.BaseType == typeof(MulticastDelegate), nameof(sig), "Must be a delegate type"); 816Contracts.CheckParam(signatureType.BaseType == typeof(MulticastDelegate), nameof(signatureType), "signatureType must be a delegate type"); 1001env.Check(signatureType.BaseType == typeof(MulticastDelegate));
ComponentModel\LoadableClassAttribute.cs (2)
177Contracts.CheckParam(sigType.BaseType == typeof(System.MulticastDelegate), nameof(sigTypes), "LoadableClass signature type must be a delegate type"); 209Contracts.Check(sigType.BaseType == typeof(System.MulticastDelegate), "LoadableClass signature type must be a delegate type");
Environment\HostEnvironmentBase.cs (1)
291/// This field is actually used as a <see cref="MulticastDelegate"/>, which holds the listener actions
Microsoft.ML.Maml (2)
HelpCommand.cs (2)
155_env.Assert(signature.BaseType == typeof(MulticastDelegate)); 205_env.Assert(signature.BaseType == typeof(MulticastDelegate));
Microsoft.VisualStudio.TestPlatform.Common (3)
DataCollection\TestPlatformDataCollectionEvents.cs (1)
101private static bool HasEventListener(MulticastDelegate? eventToCheck, bool valueOnFailure)
Logging\InternalTestLoggerEvents.cs (2)
315private void SafeInvokeAsync(Func<MulticastDelegate?> eventHandlersFactory, EventArgs args, int size, string traceDisplayName) 340var eventHandlers = eventHandlersFactory();
mscorlib (1)
parent\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)
20public static T AsDelegate<T>(this MulticastDelegate del)
PresentationFramework-SystemCore (3)
DynamicAccessorImpl.cs (3)
84_getterDelegate = (MulticastDelegate)targetField.GetValue(_getterCallSite); 104_setterDelegate = (MulticastDelegate)targetField.GetValue(_setterCallSite); 155private MulticastDelegate _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.Data.OleDb (1)
System\Data\Common\AdapterUtil.cs (1)
911internal 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)
51if (!target.IsSubclassOf(typeof(MulticastDelegate)))
System.Management (1)
System\Management\ManagementOperationWatcher.cs (1)
421internal void FireEventToDelegates(MulticastDelegate md, ManagementEventArgs args)
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Delegate.cs (4)
63=> new InvocationListEnumerator<TDelegate>(Unsafe.As<MulticastDelegate>(d)); 71private readonly MulticastDelegate? _delegate; 75internal InvocationListEnumerator(MulticastDelegate? d) 221Debug.Assert(delegateType != typeof(MulticastDelegate));
src\runtime\src\libraries\System.Private.CoreLib\src\System\MulticastDelegate.cs (4)
32public static bool operator ==(MulticastDelegate? d1, MulticastDelegate? d2) 45public static bool operator !=(MulticastDelegate? d1, MulticastDelegate? d2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
38Type mc = typeof(MulticastDelegate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (4)
1211if (rt.BaseType != typeof(MulticastDelegate) && rt != typeof(MulticastDelegate)) 1232if (rt.BaseType != typeof(MulticastDelegate) && rt != typeof(MulticastDelegate))
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (1)
847if (baseType == typeof(MulticastDelegate))
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
234if (delegateType.ToMethodTable()->BaseType != MethodTable.Of<MulticastDelegate>())
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (1)
108if (declaringType.BaseType == typeof(MulticastDelegate))
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
119return (DefType)ResolveRuntimeTypeHandle(typeof(MulticastDelegate).TypeHandle);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
363[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MulticastDelegate))]
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
324else if (typeof(MulticastDelegate).IsAssignableFrom(type.BaseType))