91 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)
632else if (frame.AttributeValueField is MulticastDelegate @delegate)
RenderTree\RenderTreeDiffBuilder.cs (1)
977if ((newFrame.AttributeValueField is MulticastDelegate || newFrame.AttributeValueField is EventCallback) &&
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
41/// Indicates that the type is <see cref="MulticastDelegate"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (1)
14102[InlineData(nameof(MulticastDelegate))]
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (1)
14102[InlineData(nameof(MulticastDelegate))]
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
41/// Indicates that the type is <see cref="MulticastDelegate"/>.
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
146new 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));
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)
21public 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; 97=> new InvocationListEnumerator<TDelegate>(Unsafe.As<MulticastDelegate>(d)); 105private readonly MulticastDelegate? _delegate; 109internal 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)
1109if (rt.BaseType != typeof(MulticastDelegate) && rt != typeof(MulticastDelegate)) 1130if (rt.BaseType != typeof(MulticastDelegate) && rt != typeof(MulticastDelegate))
src\System\Delegate.CoreCLR.cs (3)
435private static MulticastDelegate InternalAlloc(RuntimeType type) 437Debug.Assert(type.IsAssignableTo(typeof(MulticastDelegate))); 438return Unsafe.As<MulticastDelegate>(RuntimeTypeHandle.InternalAlloc(type));
src\System\MulticastDelegate.CoreCLR.cs (19)
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 = Unsafe.As<MulticastDelegate>(RuntimeTypeHandle.InternalAllocNoChecks((RuntimeType)GetType())); 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)
3502bool isDelegate = !th.IsTypeDesc && th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<MulticastDelegate>().AsMethodTable();
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
356[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MulticastDelegate))]