1 type derived from Delegate
mscorlib (1)
system\multicastdelegate.cs (1)
17public abstract class MulticastDelegate : Delegate
834 references to Delegate
mscorlib (216)
system\appdomain.cs (6)
152Delegate[] list= curr.GetInvocationList(); 192AppDomainInitializer newVal=(AppDomainInitializer)Delegate.CreateDelegate(typeof(AppDomainInitializer), 3126Delegate[] ds = eventHandler.GetInvocationList(); 3146Delegate[] ds = eventHandler.GetInvocationList(); 3169Delegate[] ds = eventHandler.GetInvocationList(); 3188Delegate[] ds = eventHandler.GetInvocationList();
system\cfgparser.cs (2)
119protected Delegate[] eventCallbacks; 128eventCallbacks = new Delegate[6];
system\delegate.cs (53)
133Delegate d = (Delegate) obj; 173return Delegate.InternalEqualMethodHandles(this, d); 194public static Delegate Combine(Delegate a, Delegate b) 203public static Delegate Combine(params Delegate[] delegates) 208Delegate d = delegates[0]; 215public virtual Delegate[] GetInvocationList() 217Delegate[] d = new Delegate[1]; 297public static Delegate Remove(Delegate source, Delegate value) 311public static Delegate RemoveAll(Delegate source, Delegate value) 313Delegate newDelegate = null; 325protected virtual Delegate CombineImpl(Delegate d) 330protected virtual Delegate RemoveImpl(Delegate d) 342public static Delegate CreateDelegate(Type type, Object target, String method) 348public static Delegate CreateDelegate(Type type, Object target, String method, bool ignoreCase) 372public static Delegate CreateDelegate(Type type, Object target, String method, bool ignoreCase, bool throwOnBindFailure) 397Delegate d = InternalAlloc(rtType); 420public static Delegate CreateDelegate(Type type, Type target, String method) 426public static Delegate CreateDelegate(Type type, Type target, String method, bool ignoreCase) 433public static Delegate CreateDelegate(Type type, Type target, String method, bool ignoreCase, bool throwOnBindFailure) 463Delegate d = InternalAlloc(rtType); 484public static Delegate CreateDelegate(Type type, MethodInfo method, bool throwOnBindFailure) 513Delegate d = CreateDelegateInternal( 527public static Delegate CreateDelegate(Type type, Object firstArgument, MethodInfo method) 535public static Delegate CreateDelegate(Type type, Object firstArgument, MethodInfo method, bool throwOnBindFailure) 561Delegate d = CreateDelegateInternal( 574public static bool operator ==(Delegate d1, Delegate d2) 582public static bool operator != (Delegate d1, Delegate d2) 606internal unsafe static Delegate CreateDelegateNoSecurityCheck(Type type, Object target, RuntimeMethodHandle method) 624Delegate d = InternalAlloc(rtType); 641internal static Delegate CreateDelegateNoSecurityCheck(RuntimeType type, Object firstArgument, MethodInfo method) 666Delegate d = UnsafeCreateDelegate(type, rtMethod, firstArgument, 677public static Delegate CreateDelegate(Type type, MethodInfo method) 683internal static Delegate CreateDelegateInternal(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags, ref StackCrawlMark stackMark) 704internal static Delegate UnsafeCreateDelegate(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags) 713Delegate d = InternalAlloc(rtType); 743internal extern static MulticastDelegate InternalAllocLike(Delegate d); 774internal extern static bool InternalEqualMethodHandles(Delegate left, Delegate right); 795internal extern static bool CompareUnmanagedFunctionPtrs (Delegate d1, Delegate d2);
system\delegateserializationholder.cs (6)
36if (c == null || (c != typeof(Delegate) && c != typeof(MulticastDelegate))) 200private Delegate GetDelegate(DelegateEntry de, int index) 202Delegate d; 229d = Delegate.CreateDelegateNoSecurityCheck(type, target, m_methods[index]); 235d = Delegate.CreateDelegate(type, RemotingServices.CheckCast(de.target, targetType), de.methodName); 244d = Delegate.CreateDelegate(type, targetType, de.methodName);
system\diagnostics\eventing\eventsource.cs (5)
4202this._EventSourceCreated = (EventHandler<EventSourceCreatedEventArgs>)Delegate.Combine(_EventSourceCreated, value); 4209this._EventSourceCreated = (EventHandler<EventSourceCreatedEventArgs>)Delegate.Remove(_EventSourceCreated, value); 5584EventSource.s_activityDying = (Action<Guid>)Delegate.Remove(EventSource.s_activityDying, m_myActivityDelegate); 5619EventSource.s_activityDying = (Action<Guid>)Delegate.Combine(EventSource.s_activityDying, m_myActivityDelegate); 5646EventSource.s_activityDying = (Action<Guid>)Delegate.Combine(EventSource.s_activityDying, filterList.m_myActivityDelegate);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
536public static Delegate CreateDelegate(Type delegateType, MethodInfo methodInfo) 538Delegate result; 543result = Delegate.CreateDelegate(
system\multicastdelegate.cs (26)
132if ((d._invocationList as Delegate) != null) 140if ((_invocationList as Delegate) != null) 166if ((d._invocationList as Delegate) != null) 187Delegate dd = (Delegate)invocationList[i]; 267protected override sealed Delegate CombineImpl(Delegate follow) 387protected override sealed Delegate RemoveImpl(Delegate value) 415return (Delegate)invocationList[1-i]; 444return (Delegate)invocationList[i != 0 ? 0 : invocationCount-1]; 461public override sealed Delegate[] GetInvocationList() 463Contract.Ensures(Contract.Result<Delegate[]>() != null); 467Delegate[] del; 471del = new Delegate[1]; 479del = new Delegate[invocationCount]; 482del[i] = (Delegate)invocationList[i]; 547return ((Delegate)invocationList[invocationCount - 1]).GetTarget(); 551Delegate receiver = _invocationList as Delegate; 570return ((Delegate)invocationList[index]).Method; 650MulticastDelegate realDelegate = (MulticastDelegate)Delegate.InternalAllocLike(this); 663MulticastDelegate realDelegate = (MulticastDelegate)Delegate.InternalAllocLike(this); 676MulticastDelegate realDelegate = Delegate.InternalAllocLike(this); 689MulticastDelegate realDelegate = Delegate.InternalAllocLike(this); 711MulticastDelegate realDelegate = Delegate.InternalAllocLike(this);
system\reflection\assembly.cs (1)
2850Delegate[] ds = moduleResolve.GetInvocationList();
system\reflection\cominterfaces.cs (2)
621void AddEventHandler(Object target, Delegate handler); 622void RemoveEventHandler(Object target, Delegate handler);
system\reflection\ConstructorInfo.cs (1)
250if (typeof(Delegate).IsAssignableFrom(DeclaringType))
system\reflection\emit\dynamicmethod.cs (4)
532public sealed override Delegate CreateDelegate(Type delegateType) { 540MulticastDelegate d = (MulticastDelegate)Delegate.CreateDelegateNoSecurityCheck(delegateType, null, GetMethodDescriptor()); 548public sealed override Delegate CreateDelegate(Type delegateType, Object target) { 556MulticastDelegate d = (MulticastDelegate)Delegate.CreateDelegateNoSecurityCheck(delegateType, target, GetMethodDescriptor());
system\reflection\eventinfo.cs (3)
118public virtual void AddEventHandler(Object target, Delegate handler) 138public virtual void RemoveEventHandler(Object target, Delegate handler) 167Type del = typeof(Delegate);
system\reflection\methodinfo.cs (7)
95public virtual Delegate CreateDelegate(Type delegateType) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 96public virtual Delegate CreateDelegate(Type delegateType, Object target) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 853public override Delegate CreateDelegate(Type delegateType) 873public override Delegate CreateDelegate(Type delegateType, Object target) 890private Delegate CreateDelegateInternal(Type delegateType, Object firstArgument, DelegateBindingFlags bindingFlags, ref StackCrawlMark stackMark) 904Delegate d = Delegate.CreateDelegateInternal(rtType, this, firstArgument, bindingFlags, ref stackMark);
system\reflection\RuntimeReflectionExtensions.cs (1)
78public static MethodInfo GetMethodInfo(this Delegate del)
system\rttype.cs (1)
2717private static readonly RuntimeType DelegateType = (RuntimeType)typeof(System.Delegate);
system\runtime\compilerservices\runtimehelpers.cs (2)
135public static extern void PrepareDelegate(Delegate d); 150public static extern void PrepareContractedDelegate(Delegate d);
system\Runtime\InteropServices\ComEventsHelper.cs (3)
123public static void Combine(object rcw, Guid iid, int dispid, System.Delegate d) { 154public static Delegate Remove(object rcw, Guid iid, int dispid, System.Delegate d) {
system\Runtime\InteropServices\ComEventsMethod.cs (8)
38private Delegate _d; 44public DelegateWrapper(Delegate d) { 48public Delegate Delegate { 166internal void AddDelegate(Delegate d) { 174_delegateWrappers[i].Delegate = Delegate.Combine(_delegateWrappers[i].Delegate, d); 190internal void RemoveDelegate(Delegate d) { 205Delegate newDelegate = Delegate.Remove(_delegateWrappers[removeIdx].Delegate, d);
system\runtime\interopservices\ComTypes\iexpando.cs (1)
29MethodInfo AddMethod(String name, Delegate method);
system\runtime\interopservices\expando\iexpando.cs (1)
37MethodInfo AddMethod(String name, Delegate method);
system\runtime\interopservices\marshal.cs (6)
2604public static Delegate GetDelegateForFunctionPointer(IntPtr ptr, Type t) 2621if (c == null || (c != typeof(Delegate) && c != typeof(MulticastDelegate))) 2635internal static extern Delegate GetDelegateForFunctionPointerInternal(IntPtr ptr, Type t); 2638public static IntPtr GetFunctionPointerForDelegate(Delegate d) 2650return GetFunctionPointerForDelegate((Delegate)(object)d); 2655internal static extern IntPtr GetFunctionPointerForDelegateInternal(Delegate d);
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (2)
268aParamTypes[0] = typeof(Delegate); 269MethodInfo DelegateEqualsMethod = typeof(Delegate).GetMethod( "Equals", aParamTypes, null );
system\runtime\interopservices\ucomiexpando.cs (1)
31MethodInfo AddMethod(String name, Delegate method);
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
352else if (type.IsValueType || obj is Delegate) 445else if (typeof(Delegate).IsAssignableFrom(type))
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (9)
33if (!typeof(Delegate).IsAssignableFrom(typeof(T))) 92Delegate invokeList = (Delegate)(object)m_invokeList; 93invokeList = MulticastDelegate.Combine(invokeList, (Delegate)(object)handler); 162Delegate[] invocationList = ((Delegate)(object)handler).GetInvocationList(); 244Delegate invokeList = (Delegate)(object)m_invokeList; 245invokeList = MulticastDelegate.Remove(invokeList, (Delegate)(object)handler);
system\runtime\interopservices\windowsruntime\iteratortoenumeratoradapter.cs (1)
53Delegate target = System.StubHelpers.StubHelpers.GetTargetForAmbiguousVariantCall(
system\runtime\interopservices\windowsruntime\ivectorviewtoireadonlylistadapter.cs (1)
69Delegate target = System.StubHelpers.StubHelpers.GetTargetForAmbiguousVariantCall(
system\runtime\interopservices\windowsruntime\windowsruntimemetadata.cs (2)
82Delegate[] ds = eventHandler.GetInvocationList(); 117Delegate[] ds = eventHandler.GetInvocationList();
system\runtime\remoting\asyncresult.cs (2)
28_asyncDelegate = (Delegate) m.GetThisPtr(); 160private Delegate _asyncDelegate;
system\runtime\remoting\remotingproxy.cs (2)
492Delegate d; 493if ((d = thisPtr as Delegate) != null)
system\runtime\serialization\objectmanager.cs (2)
1115m_onDeserializationHandler = (DeserializationEventHandler)Delegate.Combine(m_onDeserializationHandler, handler); 1119m_onDeserializationHandler = (DeserializationEventHandler)Delegate.Remove(m_onDeserializationHandler, handler);
system\runtime\serialization\serializationeventscache.cs (10)
105(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 106handler = (SerializationEventHandler)Delegate.Combine(handler, onSerializing); 124(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 125handler = (SerializationEventHandler)Delegate.Combine(handler, onDeserializing); 143(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 144handler = (SerializationEventHandler)Delegate.Combine(handler, onDeserialized); 159(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 160handler = (SerializationEventHandler)Delegate.Combine(handler, onSerialized); 175(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 176handler = (SerializationEventHandler)Delegate.Combine(handler, onDeserialized);
system\security\cryptography\cryptoconfig.cs (1)
666if (rci == null || typeof(Delegate).IsAssignableFrom(rci.DeclaringType))
system\stubhelpers.cs (3)
1677static internal extern IntPtr GetDelegateTarget(Delegate pThis, ref IntPtr pStubArg); 1827static internal extern Delegate GetTargetForAmbiguousVariantCall(object objSrc, IntPtr pMT, out bool fUseString); 1840static internal extern IntPtr GetDelegateInvokeMethod(Delegate pThis);
system\threading\Tasks\Future.cs (3)
380internal Task(Delegate valueSelector, object state, Task parent, CancellationToken cancellationToken, 454Delegate d = (Delegate)m_action;
system\threading\Tasks\Task.cs (13)
558internal Task(Delegate action, object state, Task parent, CancellationToken cancellationToken, 761Delegate d = (Delegate)m_action; 1278Task creatingTask, Delegate action, object state, CancellationToken cancellationToken, TaskScheduler scheduler, 1939AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, this.Id, "Task: "+((Delegate)m_action).Method.Name, 0); 6598internal virtual Delegate[] GetDelegateContinuationsForDebugger() 6607internal static Delegate[] GetDelegatesFromContinuationObject(object continuationObject) 6614return new Delegate[] { AsyncMethodBuilderCore.TryGetStateMachineForDebugger(singleAction) }; 6627Delegate[] delegates = continuationTask.GetDelegateContinuationsForDebugger(); 6637return new Delegate[] { new Action<Task>(singleCompletionAction.Invoke) }; 6643List<Delegate> result = new List<Delegate>(); 6649foreach (var del in innerDelegates)
system\threading\Tasks\TaskContinuation.cs (11)
34Task antecedent, Delegate action, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark) : 82Task antecedent, Delegate function, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark) : 130Task<TAntecedentResult> antecedent, Delegate action, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark) : 178Task<TAntecedentResult> antecedent, Delegate function, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark) : 285internal abstract Delegate[] GetDelegateContinuationsForDebugger(); 311AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, m_task.Id, "Task.ContinueWith: " + ((Delegate)task.m_action).Method.Name, 0); 373internal override Delegate[] GetDelegateContinuationsForDebugger() 380return new Delegate[] { m_task.m_action as Delegate }; 863internal override Delegate[] GetDelegateContinuationsForDebugger() 866return new Delegate[] { AsyncMethodBuilderCore.TryGetStateMachineForDebugger(m_action) };
system\threading\thread.cs (9)
46Delegate _start; 49internal ThreadHelper(Delegate start) 143private Delegate m_Delegate; // Delegate 235SetStartHelper((Delegate)start,0); //0 will setup Thread with default stackSize 246SetStartHelper((Delegate)start, maxStackSize); 254SetStartHelper((Delegate)start, 0); 265SetStartHelper((Delegate)start, maxStackSize); 833private void SetStartHelper(Delegate start, int maxStackSize) 879private extern void SetStart(Delegate start, int maxStackSize);
PresentationBuildTasks (5)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (5)
2511cmmCD.ReturnType = new CodeTypeReference(typeof(Delegate)); 2522CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Delegate)), "CreateDelegate"); 2784cmmCD.ReturnType = new CodeTypeReference(typeof(Delegate)); 2818CodeCastExpression cceCD = new CodeCastExpression(typeof(Delegate), cmieCD); 2833param3 = new CodeParameterDeclarationExpression(typeof(Delegate), HANDLERARG);
PresentationCore (107)
Core\CSharp\System\Windows\ClassHandlersStore.cs (1)
31Delegate handler,
Core\CSharp\System\Windows\ContentElement.cs (2)
775Delegate handler = store.Get(key); 789Delegate handler = store.Get(key);
Core\CSharp\System\Windows\DataObjectCopyingEventArgs.cs (1)
98protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\DataObjectPastingEventArgs.cs (1)
207protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\DataObjectSettingDataEventArgs.cs (1)
105protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\DragEventArgs.cs (1)
193protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\EventHandlersStore.cs (14)
58public void Add(EventPrivateKey key, Delegate handler) 70Delegate existingDelegate = (Delegate)this[key]; 78_entries[key.GlobalIndex] = Delegate.Combine(existingDelegate, handler); 99public void Remove(EventPrivateKey key, Delegate handler) 111Delegate existingDelegate = (Delegate) this[key]; 114existingDelegate = Delegate.Remove(existingDelegate, handler); 142public Delegate Get(EventPrivateKey key) 150return (Delegate)this[key]; 163Delegate handler, 204public void RemoveRoutedEventHandler(RoutedEvent routedEvent, Delegate handler) 315internal Delegate this[EventPrivateKey key] 328return (Delegate)existingDelegate;
Core\CSharp\System\Windows\EventManager.cs (3)
104Delegate handler) 122/// <see cref="UIElement.AddHandler(RoutedEvent, Delegate)"/> <para/> 160Delegate handler,
Core\CSharp\System\Windows\EventRoute.cs (1)
81public void Add(object target, Delegate handler, bool handledEventsToo)
Core\CSharp\System\Windows\Generated\ContentElement.cs (7)
519public void AddHandler(RoutedEvent routedEvent, Delegate handler) 566Delegate handler, 599Delegate handler) 628public void RemoveHandler(RoutedEvent routedEvent, Delegate handler) 669Delegate handler) 673private void EventHandlersStoreAdd(EventPrivateKey key, Delegate handler) 679private void EventHandlersStoreRemove(EventPrivateKey key, Delegate handler)
Core\CSharp\System\Windows\Generated\UIElement.cs (7)
519public void AddHandler(RoutedEvent routedEvent, Delegate handler) 566Delegate handler, 599Delegate handler) 628public void RemoveHandler(RoutedEvent routedEvent, Delegate handler) 669Delegate handler) 673private void EventHandlersStoreAdd(EventPrivateKey key, Delegate handler) 679private void EventHandlersStoreRemove(EventPrivateKey key, Delegate handler)
Core\CSharp\System\Windows\Generated\UIElement3D.cs (7)
301public void AddHandler(RoutedEvent routedEvent, Delegate handler) 348Delegate handler, 381Delegate handler) 410public void RemoveHandler(RoutedEvent routedEvent, Delegate handler) 451Delegate handler) 455private void EventHandlersStoreAdd(EventPrivateKey key, Delegate handler) 461private void EventHandlersStoreRemove(EventPrivateKey key, Delegate handler)
Core\CSharp\System\Windows\GiveFeedbackEventArgs.cs (1)
109protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\GlobalEventManager.cs (1)
53Delegate handler,
Core\CSharp\System\Windows\IInputElement.cs (2)
26void AddHandler(RoutedEvent routedEvent, Delegate handler); 34void RemoveHandler(RoutedEvent routedEvent, Delegate handler);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (1)
907protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (9)
255void AddHandlerToCWT(Delegate handler, ConditionalWeakTable<object, object> cwt) 271List<Delegate> list = value as List<Delegate>; 275Delegate oldHandler = value as Delegate; 276list = new List<Delegate>(); 289void RemoveHandlerFromCWT(Delegate handler, ConditionalWeakTable<object, object> cwt) 298List<Delegate> list = value as List<Delegate>;
Core\CSharp\System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (1)
89protected override void InvokeEventHandler(Delegate genericHandler, object target)
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (1)
353protected override void InvokeEventHandler(Delegate execHandler, object target)
Core\CSharp\System\Windows\Input\Command\ExecutedRoutedEventArgs.cs (1)
70protected override void InvokeEventHandler(Delegate genericHandler, object target)
Core\CSharp\System\Windows\Input\FocusChangedEventArgs.cs (1)
67protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\InputEventArgs.cs (1)
63protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\InputManager.cs (4)
917Delegate[] handlers = _preProcessInput.GetInvocationList(); 940Delegate[] handlers = _preNotifyInput.GetInvocationList(); 1046Delegate[] handlers = _postNotifyInput.GetInvocationList(); 1117Delegate[] handlers = postProcessInput.GetInvocationList();
Core\CSharp\System\Windows\Input\InputReportEventArgs.cs (1)
50protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\KeyboardEventArgs.cs (1)
45protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\KeyboardInputProviderAcquireFocusEventArgs.cs (1)
47protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\KeyEventArgs.cs (1)
177protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\ManipulationBoundaryFeedbackEventArgs.cs (1)
40protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\ManipulationCompletedEventArgs.cs (1)
56protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\ManipulationDeltaEventArgs.cs (1)
63protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
52protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\ManipulationStartedEventArgs.cs (1)
40protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\ManipulationStartingEventArgs.cs (1)
113protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\MouseButtonEventArgs.cs (1)
121protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\MouseEventArgs.cs (1)
143protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\MouseWheelEventArgs.cs (1)
45protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\QueryCursorEventArgs.cs (1)
58protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\TextCompositionEventArgs.cs (1)
89protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Input\TouchEventArgs.cs (1)
60protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
287Delegate[] handlers = parameters.HwndSourceHook.GetInvocationList(); 1877Delegate[] handlers = _hooks.GetInvocationList();
Core\CSharp\System\Windows\Media\Animation\Clock.cs (2)
3455private void AddEventHandler(EventPrivateKey key, Delegate handler) 3564private void RemoveEventHandler(EventPrivateKey key, Delegate handler)
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (2)
888private void AddEventHandler(EventPrivateKey key, Delegate handler) 947private void RemoveEventHandler(EventPrivateKey key, Delegate handler)
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (4)
157Delegate addFigureCallback, 175Delegate addFigureCallback, 190Delegate addFigureCallback, 205Delegate addFigureCallback,
Core\CSharp\System\Windows\QueryContinueDragEventArgs.cs (1)
123protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\RoutedEvent.cs (1)
83internal bool IsLegalHandler( Delegate handler )
Core\CSharp\System\Windows\RoutedEventArgs.cs (2)
285protected virtual void InvokeEventHandler(Delegate genericHandler, object genericTarget) 335internal void InvokeHandler(Delegate handler, object target)
Core\CSharp\System\Windows\RoutedEventHandlerInfo.cs (3)
36internal RoutedEventHandlerInfo(Delegate handler, bool handledEventsToo) 49public Delegate Handler 143private Delegate _handler;
Core\CSharp\System\Windows\SourceChangedEventArgs.cs (1)
138protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Core\CSharp\System\Windows\UIElement.cs (3)
1909internal static void AddHandler(DependencyObject d, RoutedEvent routedEvent, Delegate handler) 1949internal static void RemoveHandler(DependencyObject d, RoutedEvent routedEvent, Delegate handler) 4157Delegate handler = store.Get(key);
Core\CSharp\System\Windows\UIElement3D.cs (1)
1333Delegate handler = store.Get(key);
PresentationFramework (77)
parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (4)
71Delegate[] delegates = null; 78Delegate returnDelegate = delegates[i]; 148Delegate d; 153d = Delegate.CreateDelegate(
src\Framework\MS\Internal\Data\StaticPropertyChangedEventManager.cs (8)
287Delegate d = Delegate.CreateDelegate(spcEvent.EventHandlerType, this, OnStaticPropertyChangedMethodInfo); 297Delegate d = Delegate.CreateDelegate(spcEvent.EventHandlerType, this, OnStaticPropertyChangedMethodInfo); 617Delegate d = Delegate.CreateDelegate(eventInfo.EventHandlerType, this, OnStaticPropertyChangedMethodInfo); 628Delegate d = Delegate.CreateDelegate(eventInfo.EventHandlerType, this, OnStaticPropertyChangedMethodInfo);
src\Framework\System\Windows\Controls\CalendarSelectionChangedEventArgs.cs (1)
32protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\ContextMenuService.cs (1)
544protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\Primitives\DragCompletedEventArgs.cs (1)
64protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\Primitives\DragDeltaEventArgs.cs (1)
53protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\Primitives\DragStartedEventArgs.cs (1)
53protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\Primitives\ScrollEventArgs.cs (1)
52protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (1)
172protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\SelectionChangedEventArgs.cs (1)
121protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\TextChangedEventArgs.cs (1)
163protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\ToolTipService.cs (2)
710protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) 749protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Controls\ValidationErrorEventArgs.cs (1)
89protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Data\CollectionViewSource.cs (2)
621handlers = (FilterEventHandler)Delegate.Combine(handlers, value); 639handlers = (FilterEventHandler)Delegate.Remove(handlers, value);
src\Framework\System\Windows\Data\DataTransferEventArgs.cs (1)
79protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
1005private static void SetUpEventHandler(IInputElement element, RoutedEvent routedEvent, Delegate handler)
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
835private DispatcherOperation BeginInvokeOnUIThread(Delegate method, DispatcherPriority priority, params object[] args)
src\Framework\System\Windows\EventSetter.cs (3)
31public EventSetter(RoutedEvent routedEvent, Delegate handler) 68public Delegate Handler 125private Delegate _handler;
src\Framework\System\Windows\EventSetterHandlerConverter.cs (1)
83return Delegate.CreateDelegate(setter.Event.HandlerType, rootProvider.RootObject, handlerName);
src\Framework\System\Windows\FrameworkContentElement.cs (7)
1655Delegate handler = store.Get(key); 1791Delegate handler) 1805Delegate handler) 1824Delegate handler = store.Get(key); 2048Delegate handler = store.Get(key); 2056private void EventHandlersStoreAdd(EventPrivateKey key, Delegate handler) 2062private void EventHandlersStoreRemove(EventPrivateKey key, Delegate handler)
src\Framework\System\Windows\FrameworkElement.cs (7)
5519Delegate handler = store.Get(key); 5737Delegate handler) 5753Delegate handler) 5823Delegate handler = store.Get(key); 6077Delegate handler = store.Get(key); 6143internal void EventHandlersStoreAdd(EventPrivateKey key, Delegate handler) 6149internal void EventHandlersStoreRemove(EventPrivateKey key, Delegate handler)
src\Framework\System\Windows\FrameworkElementFactory.cs (3)
310public void AddHandler(RoutedEvent routedEvent, Delegate handler) 320public void AddHandler(RoutedEvent routedEvent, Delegate handler, bool handledEventsToo) 363public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (1)
1022Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
src\Framework\System\Windows\Generated\FrameworkElement.cs (1)
1052Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
src\Framework\System\Windows\Ink\Events.cs (2)
67protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) 403protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (2)
32Delegate handler = value as Delegate;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
2867Delegate d;
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (4)
2980internal static Delegate CreateDelegate(ParserContext pc, Type delegateType, object target, string handler) 2982Delegate d = null; 2989d = Delegate.CreateDelegate(delegateType, target, handler); 3017internal static bool AddInternalEventHandler(ParserContext pc, object rootElement, EventInfo eventInfo, object target, Delegate handler)
src\Framework\System\Windows\Navigation\PageFunction.cs (11)
111internal void _AddEventHandler(Delegate d) 121_returnHandler = Delegate.Combine(_returnHandler, d); 124internal void _RemoveEventHandler(Delegate d) 126_returnHandler = Delegate.Remove(_returnHandler, d); 168internal Delegate _Return 213private Delegate _returnHandler; // the delegate for the Return event 220internal RaiseTypedEventArgs(Delegate d, object o) 225internal Delegate D; 272Delegate d = args.D; 302_AddEventHandler((Delegate)value); 306_RemoveEventHandler((Delegate)value);
src\Framework\System\Windows\Navigation\RequestNavigateEventArgs.cs (1)
74protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\RequestBringIntoViewEventArgs.cs (1)
45protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\RoutedPropertyChangedEventArgs.cs (1)
78protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
src\Framework\System\Windows\SizeChangedEventArgs.cs (1)
100protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapterBase.cs (1)
99static Delegate GetProcDelegate<TDelegate>(WebHostUnsafeNativeMethods.SafeFreeLibrary library, string procName)
System (32)
compmod\microsoft\win32\SystemEvents.cs (8)
336private static void AddEventHandler(object key, Delegate value) { 767Delegate current = null; 770current = (Delegate)threadCallbackList.Dequeue(); 794current = (Delegate)threadCallbackList.Dequeue(); 808public static void InvokeOnEventsThread(Delegate method) { 1347private static void RemoveEventHandler(object key, Delegate value) { 1615private Delegate _delegate; // the delegate we'll fire. This is a weak ref so we don't hold object in memory. 1616public SystemEventInvokeInfo(Delegate d) {
compmod\system\componentmodel\EventDescriptor.cs (2)
90public abstract void AddEventHandler(object component, Delegate value); 102public abstract void RemoveEventHandler(object component, Delegate value);
compmod\system\componentmodel\EventHandlerList.cs (7)
42public Delegate this[object key] { 72public void AddHandler(object key, Delegate value) { 75e.handler = Delegate.Combine(e.handler, value); 114public void RemoveHandler(object key, Delegate value) { 117e.handler = Delegate.Remove(e.handler, value); 126internal Delegate handler; 128public ListEntry(object key, Delegate handler, ListEntry next) {
compmod\system\componentmodel\ISynchronizeInvoke.cs (2)
27IAsyncResult BeginInvoke(Delegate method, object[] args); 41object Invoke(Delegate method, object[] args);
compmod\system\componentmodel\PropertyDescriptor.cs (2)
163valueChangedHandlers[component] = Delegate.Combine(h, handler); 439h = (EventHandler)Delegate.Remove(h, handler);
compmod\system\componentmodel\ReflectEventDescriptor.cs (10)
91if (type == null || !(typeof(Delegate)).IsAssignableFrom(type)) { 94Debug.Assert(type.IsSubclassOf(typeof(Delegate)), "Not a valid ReflectEvent: " + componentClass.FullName + "." + name + " " + type.FullName); 169public override void AddEventHandler(object component, Delegate value) { 205Delegate eventdesc = (Delegate)dict.GetValue(this); 206eventdesc = Delegate.Combine(eventdesc, value); 432public override void RemoveEventHandler(object component, Delegate value) { 464Delegate del = (Delegate)dict.GetValue(this); 465del = Delegate.Remove(del, value);
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System.Activities (12)
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
238internal static bool NeedRetrieve(MethodBase newMethod, MethodBase oldMethod, Delegate func)
System\Activities\Runtime\CallbackWrapper.cs (7)
29Delegate callback; 33public CallbackWrapper(Delegate callback, ActivityInstance owningInstance) 59protected Delegate Callback 95public static bool IsValidCallback(Delegate callback, ActivityInstance owningInstance) 199Delegate GenerateCallback(Type delegateType, Type[] parameterTypes, Type genericParameter) 268Delegate RecreateCallback(Type delegateType, MethodInfo callbackMethod) 293return Delegate.CreateDelegate(delegateType, targetInstance, callbackMethod);
System\Activities\Runtime\CompletionCallbackWrapper.cs (1)
27protected CompletionCallbackWrapper(Delegate callback, ActivityInstance owningInstance)
System\Activities\WorkflowApplication.cs (1)
2893void ThrowIfMulticast(Delegate value)
System\Activities\XamlIntegration\SerializableFuncDeferringLoader.cs (2)
30FuncFactory factory = GetFactory(value as Delegate); 43static FuncFactory GetFactory(Delegate func)
System.Activities.Presentation (42)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItemManager.cs (11)
190protected static object GetTarget(Delegate callback) 214protected static Delegate RemoveCallback(Delegate existing, Delegate toRemove) 230return Delegate.Remove(existing, toRemove); 235Delegate[] invocationList = existing.GetInvocationList(); 240Delegate item = invocationList[idx]; 259foreach (Delegate d in invocationList) 269existing = Delegate.Combine(existing, d); 288Delegate OriginalDelegate 315Delegate ICallbackProxy.OriginalDelegate
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (2)
379existing = (SubscribeContextCallback)Delegate.Combine(existing, callback); 642existing = (SubscribeServiceCallback)Delegate.Combine(existing, callback);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UIThreadDispatcher.cs (6)
51public virtual void BeginInvoke(DispatcherPriority priority, Delegate method) 59public virtual void BeginInvoke(DispatcherPriority priority, Delegate method, object arg) 67public virtual void BeginInvoke(DispatcherPriority priority, Delegate method, object arg, params object[] args) 75public virtual void Invoke(DispatcherPriority priority, Delegate method) 83public virtual void Invoke(DispatcherPriority priority, Delegate method, object arg) 91public virtual void Invoke(DispatcherPriority priority, Delegate method, object arg, params object[] args)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
1029public override void AddEventHandler(object component, Delegate value) { _parent.AddEventHandler(component, value); } 1033public override void RemoveEventHandler(object component, Delegate value) { _parent.RemoveEventHandler(component, value); }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (11)
214protected static object GetTarget(Delegate callback) 234protected static Delegate RemoveCallback(Delegate existing, Delegate toRemove) 244return Delegate.Remove(existing, toRemove); 249Delegate[] invocationList = existing.GetInvocationList(); 254Delegate item = invocationList[idx]; 273foreach (Delegate d in invocationList) 283existing = Delegate.Combine(existing, d); 407Delegate ICallbackProxy.OriginalDelegate 423Delegate OriginalDelegate { get; }
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (9)
85this.listeners = (WindowMessage)Delegate.Combine(callback); 91Delegate[] initial = this.listeners.GetInvocationList(); 93if (-1 == Array.IndexOf<Delegate>(initial, callback)) 95Delegate[] combined = new Delegate[initial.Length + 1]; 99this.listeners = (WindowMessage)Delegate.Combine(combined); 119Delegate[] list = this.listeners.GetInvocationList(); 121if (-1 != Array.IndexOf<Delegate>(list, callback)) 129this.listeners = (WindowMessage)Delegate.Remove(this.listeners, callback);
System.Activities.Presentation\System\Activities\Presentation\TaskDispatcher.cs (1)
24internal virtual void DispatchWorkOnUIThread(DispatcherPriority priority, Delegate method)
System.ComponentModel.DataAnnotations (1)
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System.Configuration (6)
System\Configuration\TypeUtil.cs (6)
147static internal Delegate CreateDelegateRestricted(Type callingType, Type delegateType, MethodInfo targetMethod) { 153return Delegate.CreateDelegate(delegateType, targetMethod); 160DynamicMethod dm = CreateDynamicMethod(callingType, returnType: typeof(Delegate), parameterTypes: new Type[] { typeof(Type), typeof(MethodInfo) }); 166ilGen.Emit(OpCodes.Call, typeof(Delegate).GetMethod("CreateDelegate", new Type[] { typeof(Type), typeof(MethodInfo) })); // stack = { retVal } 169var createDelegateDel = (Func<Type, MethodInfo, Delegate>)dm.CreateDelegate(typeof(Func<Type, MethodInfo, Delegate>));
System.Core (14)
Microsoft\Scripting\Actions\CallSite.cs (3)
116ctor = (Func<CallSiteBinder, CallSite>)Delegate.CreateDelegate(typeof(Func<CallSiteBinder, CallSite>), method); 310private static Delegate CreateDelegateHelper(Type delegateType, MethodInfo method) { 311return Delegate.CreateDelegate(delegateType, method);
Microsoft\Scripting\Ast\LambdaExpression.cs (4)
128public Delegate Compile() { 137public Delegate Compile(DebugInfoGenerator debugInfoGenerator) { 147public Delegate Compile(bool preferInterpretation) 270factories[delegateType] = fastPath = (LambdaFactory)Delegate.CreateDelegate(typeof(LambdaFactory), create);
Microsoft\Scripting\Compiler\LambdaCompiler.cs (2)
200internal static Delegate Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator) { 297private Delegate CreateDelegate() {
Microsoft\Scripting\Utils\TypeExtensions.cs (2)
29internal static Delegate CreateDelegate(this MethodInfo methodInfo, Type delegateType, object target) { 36return Delegate.CreateDelegate(delegateType, target, methodInfo);
System\Runtime\CompilerServices\ExecutionScope.cs (1)
26public Delegate CreateDelegate(int indexLambda, object[] locals)
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
24public override void AddEventHandler(object target, Delegate handler) { 46public override void RemoveEventHandler(object target, Delegate handler) {
System.Data (45)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItemManager.cs (11)
190protected static object GetTarget(Delegate callback) 214protected static Delegate RemoveCallback(Delegate existing, Delegate toRemove) 230return Delegate.Remove(existing, toRemove); 235Delegate[] invocationList = existing.GetInvocationList(); 240Delegate item = invocationList[idx]; 259foreach (Delegate d in invocationList) 269existing = Delegate.Combine(existing, d); 288Delegate OriginalDelegate 315Delegate ICallbackProxy.OriginalDelegate
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (2)
379existing = (SubscribeContextCallback)Delegate.Combine(existing, callback); 642existing = (SubscribeServiceCallback)Delegate.Combine(existing, callback);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UIThreadDispatcher.cs (6)
51public virtual void BeginInvoke(DispatcherPriority priority, Delegate method) 59public virtual void BeginInvoke(DispatcherPriority priority, Delegate method, object arg) 67public virtual void BeginInvoke(DispatcherPriority priority, Delegate method, object arg, params object[] args) 75public virtual void Invoke(DispatcherPriority priority, Delegate method) 83public virtual void Invoke(DispatcherPriority priority, Delegate method, object arg) 91public virtual void Invoke(DispatcherPriority priority, Delegate method, object arg, params object[] args)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
1029public override void AddEventHandler(object component, Delegate value) { _parent.AddEventHandler(component, value); } 1033public override void RemoveEventHandler(object component, Delegate value) { _parent.RemoveEventHandler(component, value); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (11)
214protected static object GetTarget(Delegate callback) 234protected static Delegate RemoveCallback(Delegate existing, Delegate toRemove) 244return Delegate.Remove(existing, toRemove); 249Delegate[] invocationList = existing.GetInvocationList(); 254Delegate item = invocationList[idx]; 273foreach (Delegate d in invocationList) 283existing = Delegate.Combine(existing, d); 407Delegate ICallbackProxy.OriginalDelegate 423Delegate OriginalDelegate { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (9)
85this.listeners = (WindowMessage)Delegate.Combine(callback); 91Delegate[] initial = this.listeners.GetInvocationList(); 93if (-1 == Array.IndexOf<Delegate>(initial, callback)) 95Delegate[] combined = new Delegate[initial.Length + 1]; 99this.listeners = (WindowMessage)Delegate.Combine(combined); 119Delegate[] list = this.listeners.GetInvocationList(); 121if (-1 != Array.IndexOf<Delegate>(list, callback)) 129this.listeners = (WindowMessage)Delegate.Remove(this.listeners, callback);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TaskDispatcher.cs (1)
24internal virtual void DispatchWorkOnUIThread(DispatcherPriority priority, Delegate method)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
1867static internal Delegate FindBuilder(MulticastDelegate mcd) { // V1.2.3300 1869Delegate[] d = mcd.GetInvocationList();
fx\src\data\System\Data\SQLTypes\SqlXml.cs (1)
134return (Func<Stream, XmlReaderSettings, XmlParserContext, XmlReader>)Delegate.CreateDelegate(typeof(Func<Stream, XmlReaderSettings, XmlParserContext, XmlReader>), CreateSqlReaderMethodInfo);
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
208return (Converter<object, T>)Delegate.CreateDelegate(
System.Data.Entity (12)
System\Data\Metadata\Edm\ComplexType.cs (2)
101private Delegate _constructor; 129internal Delegate Constructor
System\Data\Metadata\Edm\EntityType.cs (2)
233private Delegate _constructor; 260internal Delegate Constructor
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (3)
29internal static Delegate GetConstructorDelegateForType(ClrComplexType clrType) 35internal static Delegate GetConstructorDelegateForType(ClrEntityType clrType) 166internal static Delegate CreateConstructor(Type type)
System\Data\Objects\ELinq\Funcletizer.cs (1)
604private Delegate _cachedDelegate;
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (1)
135internal readonly Delegate ClrType;
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
466Delegate interceptorDelegate = typeof(LazyLoadBehavior).GetMethod("GetInterceptorDelegate", BindingFlags.NonPublic | BindingFlags.Static). 468Invoke(null, new object[] { member, proxyTypeInfo.EntityWrapperDelegate }) as Delegate; 486private static void AssignInterceptionDelegate(Delegate interceptorDelegate, FieldInfo interceptorField)
System.Data.Linq (17)
DataServices.cs (1)
581keys.Add(mm, ((Delegate)ce.Value).DynamicInvoke(new object[] {}));
Mapping\Accessors.cs (7)
25Delegate dget = null; 26Delegate drset = null; 91Delegate dset = null; 92Delegate drset = null; 96Delegate dget = Delegate.CreateDelegate(dgetType, getMethod, true); 103dset = Delegate.CreateDelegate(typeof(DSet<,>).MakeGenericType(objectType, pi.PropertyType), pi.GetSetMethod(true), true);
SqlClient\Query\QueryConverter.cs (3)
339Delegate d = value.Value as Delegate; 360return sql.MethodCall(invoke.Type, typeof(Delegate).GetMethod("DynamicInvoke"), expr, new SqlExpression[] {sca}, this.dominatingExpression);
SqlClient\Query\SqlParameterizer.cs (3)
20Delegate accessor; 21internal SqlParameterInfo(SqlParameter parameter, Delegate accessor) { 48internal Delegate Accessor {
SqlClient\Reader\ObjectReaderCompiler.cs (3)
206var fnMaterialize = (Delegate)dm.CreateDelegate(fnMatType); 809Delegate d = cp.Accessor.Compile();
System.Data.Services (1)
System\Data\Services\WebUtil.cs (1)
576internal static Delegate CreateNewInstanceConstructor(Type type, string fullName, Type targetType)
System.Data.Services.Client (1)
System\Data\Services\Client\ALinq\Evaluator.cs (1)
168Delegate fn = lambda.Compile();
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\XmlILModule.cs (2)
327public Delegate CreateDelegate(string name, Type typDelegate) { 329return Delegate.CreateDelegate(typDelegate, (MethodInfo) this.methods[name]);
System.Drawing (1)
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System.IdentityModel (1)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System.IO.Compression.FileSystem (1)
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System.Management (8)
Instrumentation\EventSource.cs (2)
570ConvertToWMI func = (ConvertToWMI)Delegate.CreateDelegate(typeof(ConvertToWMI), converter, "ToWMI"); 796funcs[count] = (ConvertToWMI)Delegate.CreateDelegate(typeof(ConvertToWMI), converter, "ToWMI");
Instrumentation\Instrumentation.cs (2)
551convertFunctionsBatch[i] = (ConvertToWMI)Delegate.CreateDelegate(typeof(ConvertToWMI), converter, "ToWMI"); 609convertFunctionNoBatch = (ConvertToWMI)Delegate.CreateDelegate(typeof(ConvertToWMI), converter, "ToWMI");
managementoperationwatcher.cs (4)
370private Delegate d; 374internal WmiEventState (Delegate d, ManagementEventArgs args, AutoResetEvent h) 381public Delegate Delegate 463foreach (Delegate d in md.GetInvocationList())
System.Runtime.Remoting (2)
metadata\wsdlwriter.cs (2)
813private static Type s_delegateType = typeof(System.Delegate); 2173else if (typeof(Delegate).IsAssignableFrom(type) || typeof(MulticastDelegate).IsAssignableFrom(type))
System.Runtime.Serialization (2)
System\Runtime\Serialization\CodeGenerator.cs (2)
238internal Delegate EndMethod() 245Delegate retVal = null;
System.ServiceModel (5)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
230createTaskDelegate = Delegate.CreateDelegate(typeof(Func<ServiceChannel, ProxyOperationRuntime, object[], Task>), methodInfo) as Func<ServiceChannel, ProxyOperationRuntime, object[], Task>;
System\ServiceModel\Dispatcher\CodeGenerator.cs (2)
155internal Delegate EndMethod() 162Delegate retVal = null;
System\ServiceModel\ServiceHost.cs (1)
1876Action<ServiceConfiguration> call = Delegate.CreateDelegate(typeof(Action<ServiceConfiguration>), configureMethod) as Action<ServiceConfiguration>;
System.Transactions (6)
System\Transactions\Transaction.cs (1)
1125System.Delegate.Remove(this.internalTransaction.transactionCompletedDelegate, value);
System\Transactions\TransactionManager.cs (2)
70TransactionManager.distributedTransactionStartedDelegate = (TransactionStartedEventHandler)System.Delegate.Combine(TransactionManager.distributedTransactionStartedDelegate, value); 85TransactionManager.distributedTransactionStartedDelegate = (TransactionStartedEventHandler)System.Delegate.Remove (TransactionManager.distributedTransactionStartedDelegate, value);
System\Transactions\TransactionState.cs (3)
1160System.Delegate.Combine( tx.transactionCompletedDelegate, transactionCompletedDelegate ); 2601System.Delegate.Combine( tx.transactionCompletedDelegate, transactionCompletedDelegate ); 4343System.Delegate.Combine(tx.transactionCompletedDelegate, transactionCompletedDelegate);
System.Web (36)
AspNetEventSource.cs (1)
43_writeEventWithRelatedActivityIdCoreDel = (WriteEventWithRelatedActivityIdCoreDelegate)Delegate.CreateDelegate(
Cache\SubstitutionResponseElement.cs (1)
39_callback = (HttpResponseSubstitutionCallback) Delegate.CreateDelegate(typeof(HttpResponseSubstitutionCallback), target, _methodName);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
209return (InstantiateObject) Delegate.CreateDelegate(
Hosting\HostingEnvironment.cs (1)
481Action<string, bool> setter = (Action<string, bool>)Delegate.CreateDelegate(
HttpApplication.cs (11)
685internal void AddSyncEventHookup(object key, Delegate handler, RequestNotification notification) { 712private void AddSyncEventHookup(object key, Delegate handler, RequestNotification notification, bool isPostNotification) { 735internal void RemoveSyncEventHookup(object key, Delegate handler, RequestNotification notification) { 739internal void RemoveSyncEventHookup(object key, Delegate handler, RequestNotification notification, bool isPostNotification) { 753private void AddSendResponseEventHookup(object key, Delegate handler) { 777private void RemoveSendResponseEventHookup(object key, Delegate handler) { 1734Delegate[] handlers = handler.GetInvocationList(); 1925Delegate handlerDelegate = null; 1944handlerDelegate = Delegate.CreateDelegate(addMethodParams[0].ParameterType, this, appMethodName); 2615Delegate[] handlers = handler.GetInvocationList(); 2620foreach(Delegate d in handlers) {
HttpCachePolicy.cs (1)
342HttpCacheValidateHandler handler = (HttpCacheValidateHandler) Delegate.CreateDelegate(typeof(HttpCacheValidateHandler), target, methodName);
PipelineModuleStepContainer.cs (1)
105internal void RemoveEvent(RequestNotification notification, bool isPostEvent, Delegate handler) {
SiteMapProvider.cs (1)
374Delegate[] ds = eventHandler.GetInvocationList();
UI\DataBindingCollection.cs (2)
125changedEvent = (EventHandler)Delegate.Combine(changedEvent, value); 128changedEvent = (EventHandler)Delegate.Remove(changedEvent, value);
UI\ExpressionBindingCollection.cs (2)
125changedEvent = (EventHandler)Delegate.Combine(changedEvent, value); 128changedEvent = (EventHandler)Delegate.Remove(changedEvent, value);
UI\TemplateControl.cs (4)
445Delegate eventDelegates = Events[_eventObjects[key]]; 447foreach (Delegate eventDelegate in eventDelegates.GetInvocationList()) { 579Delegate del = Delegate.CreateDelegate(
UI\WebControls\MethodParametersDictionary.cs (2)
35_parametersChangedHandler = (EventHandler)Delegate.Combine(_parametersChangedHandler, value); 38_parametersChangedHandler = (EventHandler)Delegate.Remove(_parametersChangedHandler, value);
UI\WebControls\ParameterCollection.cs (2)
84_parametersChangedHandler = (EventHandler)Delegate.Combine(_parametersChangedHandler, value); 87_parametersChangedHandler = (EventHandler)Delegate.Remove(_parametersChangedHandler, value);
UI\WebControls\Substitution.cs (1)
76return (HttpResponseSubstitutionCallback)Delegate.CreateDelegate(
Util\ActivityIdHelper.cs (3)
47var getCurrentDel = (GetCurrentDelegate)Delegate.CreateDelegate( 50var setAndDestroyDel = (SetAndDestroyDelegate)Delegate.CreateDelegate( 53var setAndPreserveDel = (SetAndPreserveDelegate)Delegate.CreateDelegate(
Util\AppVerifier.cs (2)
184internal static Func<AsyncCallback, object, IAsyncResult> WrapBeginMethodImpl(HttpApplication httpApplication, Func<AsyncCallback, object, IAsyncResult> beginMethod, Delegate originalDelegate, Action<AppVerifierException> errorHandler, CallStackCollectionBitMasks callStackMask) { 662internal static string PrettyPrintDelegate(Delegate del) {
System.Web.Extensions (5)
ClientServices\Providers\ClientSettingsProvider.cs (2)
908Delegate handlerDelegate = Delegate.CreateDelegate(addMethodParams[0].ParameterType, this, "OnUserValidated");
UI\AsyncPostBackTrigger.cs (2)
115Delegate handler = Delegate.CreateDelegate(eventInfo.EventHandlerType, this, EventHandler);
UI\BundleReflectionHelper.cs (1)
139return Delegate.CreateDelegate(typeof(T), target, method, false) as T;
System.Web.Mobile (2)
UI\MobileControls\DeviceSpecificChoice.cs (2)
270Delegate d = Delegate.CreateDelegate(ed.EventType, Owner.MobilePage, value);
System.Windows.Forms (43)
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
winforms\Managed\System\WinForms\Application.cs (4)
838private static void AddEventHandler(object key, Delegate value) { 846private static void RemoveEventHandler(object key, Delegate value) { 1281Delegate exit = eventHandlers[EVENT_APPLICATIONEXIT]; 1293Delegate exit = eventHandlers[EVENT_THREADEXIT];
winforms\Managed\System\WinForms\Control.cs (7)
5569public IAsyncResult BeginInvoke(Delegate method) { 5592public IAsyncResult BeginInvoke(Delegate method, params Object[] args) { 7351public Object Invoke(Delegate method) { 7370public Object Invoke(Delegate method, params Object[] args) { 7765private Object MarshaledInvoke(Control caller, Delegate method, Object[] args, bool synchronous) { 20037internal Delegate method; 20056internal ThreadMethodEntry(Control caller, Control marshaler, Delegate method, Object[] args, bool synchronous, ExecutionContext executionContext) {
winforms\Managed\System\WinForms\DataGridCaption.cs (8)
289protected virtual void AddEventHandler(object key, Delegate handler) { 295e.handler = Delegate.Combine(e.handler, handler); 418protected virtual Delegate GetEventHandler(object key) { 696Delegate handler = GetEventHandler(key); 700protected virtual void RemoveEventHandler(object key, Delegate handler) { 706e.handler = Delegate.Remove(e.handler, handler); 747internal Delegate handler; 749internal EventEntry(EventEntry next, object key, Delegate handler) {
winforms\Managed\System\WinForms\HtmlShim.cs (4)
47public void AddHandler(object key, Delegate value) { 114System.Delegate delegateToInvoke = (System.Delegate)Events[key]; 144public void RemoveHandler(object key, Delegate value) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (9)
2383Delegate handler = GetEventHandler(EVENT_RECREATE_CHILDREN); 2658protected virtual void AddEventHandler(object key, Delegate handler) { 2664e.handler = Delegate.Combine(e.handler, handler); 2673Delegate handler = GetEventHandler(key); 2677protected virtual Delegate GetEventHandler(object key) { 2687protected virtual void RemoveEventHandler(object key, Delegate handler) { 2693e.handler = Delegate.Remove(e.handler, handler); 2718internal Delegate handler; 2720internal EventEntry(EventEntry next, object key, Delegate handler) {
winforms\Managed\System\WinForms\ToolStripManager.cs (8)
42private static Delegate[] staticEventHandlers; 145private static void AddEventHandler(int key, Delegate value) { 148staticEventHandlers = new Delegate[staticEventCount]; 150staticEventHandlers[key] = Delegate.Combine(staticEventHandlers[key], value); 245private static Delegate GetEventHandler(int key) { 250return (Delegate)staticEventHandlers[key]; 321private static void RemoveEventHandler(int key, Delegate value) { 324staticEventHandlers[key] = Delegate.Remove(staticEventHandlers[key], value);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
385private void AddHandler(object key, Delegate value) { 390private void RemoveHandler(object key, Delegate value) {
System.Workflow.Activities (3)
LocalService\ExternalDataExchangeService.cs (1)
311private void AddRemove(object addedservice, Delegate delg, bool add, string eventName)
LocalService\WorkflowMessageEventHandler.cs (2)
79internal Delegate Delegate 96return (Delegate)Activator.CreateInstance(eventHandlerType, new object[] { this, mHandler.MethodHandle.GetFunctionPointer() });
System.Workflow.ComponentModel (32)
AuthoringOM\Activity.cs (2)
1255Delegate[] invocationList = null; 1279Delegate[] invocationList = null;
AuthoringOM\ActivityInterfaces.cs (1)
135void RaiseHandlerInvoking(Delegate delegateHandler);
AuthoringOM\Bind.cs (2)
779if (targetType != null && typeof(Delegate).IsAssignableFrom(targetType) && (memberInfo == null || !(memberInfo is EventInfo))) 815memberValue = Delegate.CreateDelegate(targetType, dataSourceObject, (MethodInfo)memberInfo); //the wrapper method will never be static (even if the original one is)
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (3)
643Type del = typeof(Delegate); 949private static void FireEventsNoThrow(Delegate eventDelegator, object[] args) 953foreach (Delegate invokee in eventDelegator.GetInvocationList())
AuthoringOM\Compiler\Validation\BindValidator.cs (3)
483if (!TypeProvider.IsAssignable(typeof(Delegate), validationBindContext.TargetType)) 680if (typeof(Delegate).IsAssignableFrom(baseType)) 712else if (memberInfo == null && baseType != null && typeof(Delegate).IsAssignableFrom(baseType))
AuthoringOM\DependencyObject.cs (4)
416Delegate delegateHandler = handlers[0] as Delegate; 419delegateHandler = Delegate.Combine(delegateHandler, handlers[i] as Delegate);
AuthoringOM\DependencyProperty.cs (2)
179bool isEvent = (typeof(System.Delegate).IsAssignableFrom(propertyType) && (defaultMetadata == null || (defaultMetadata.Options & DependencyPropertyOptions.DelegateProperty) == 0)); 272this.isEvent = (typeof(System.Delegate).IsAssignableFrom(this.propertyType) && (this.defaultMetadata == null || (this.defaultMetadata.Options & DependencyPropertyOptions.DelegateProperty) == 0));
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (7)
594if (typeToGetPropertiesOn == typeof(string) || (TypeProvider.IsAssignable(typeof(System.Delegate), typeToGetPropertiesOn) && !this.boundType.IsSubclassOf(typeof(Delegate))))//ignore char item[int] on the string 670!(!TypeProvider.IsAssignable(typeof(Delegate), this.boundType) && TypeProvider.IsAssignable(typeof(Delegate), fieldType)))//fields of type delegate should only be shown for delegate properties 679if (this.boundType.IsSubclassOf(typeof(Delegate)))//System.MulticastDelegate ??? 853if (TypeProvider.IsAssignable(typeof(Delegate), fieldInfo.FieldType)) 905if (IsTypePrimitive(memberType) || (TypeProvider.IsAssignable(typeof(System.Delegate), memberType)) || (memberType == typeof(object)))
AuthoringOM\Design\PropertyDescriptors.cs (2)
1012public override void AddEventHandler(object component, Delegate value) 1016public override void RemoveEventHandler(object component, Delegate value)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (6)
826Delegate handler = ((DependencyObject)obj).GetHandler(dependencyProperty) as Delegate; 1184|| typeof(Delegate).IsAssignableFrom(valueType) || typeof(IConvertible).IsAssignableFrom(valueType) 1198if (typeof(Delegate).IsAssignableFrom(value.GetType())) 1199return ((Delegate)value).Method.Name; 1250else if (typeof(Delegate).IsAssignableFrom(propertyType))
System.Workflow.Runtime (11)
DebugEngine\DebugController.cs (2)
1113foreach (Delegate handler in (boundGetInvocationListMethod.Invoke(activity, new object[] { dependencyEvent }) as Delegate[]))
DebugEngine\DebugControllerThread.cs (1)
138expressionEvaluationFrame.CreateEvaluationFrame((IInstanceTable)instanceTable, (DebugEngineCallback)Delegate.CreateDelegate(typeof(DebugEngineCallback), this, "ExpressionEvaluationFunction"));
DebugEngine\IWorkflowDebuggerService.cs (2)
9void NotifyHandlerInvoking(Delegate delegateHandler); 25void IWorkflowDebuggerService.NotifyHandlerInvoking(Delegate delegateHandler)
System\Activities\Statements\InteropExecutor.cs (1)
693public void RaiseHandlerInvoking(Delegate delegateHandler)
WorkflowExecutor.cs (5)
2894void IWorkflowCoreRuntime.RaiseHandlerInvoking(Delegate handlerDelegate) 3230private Delegate _delegateHandler; 3232internal WorkflowHandlerInvokingEventArgs(WorkflowEventInternal eventType, Delegate delegateHandler) 3238internal Delegate DelegateMethod 3270internal void FireWorkflowHandlerInvokingEvent(object sender, WorkflowEventInternal eventType, Delegate delegateHandler)
System.Xml (5)
parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (1)
100TryGetSwitchFromCentralAppContext = (TryGetSwitchDelegate)Delegate.CreateDelegate(typeof(TryGetSwitchDelegate), method);
System\Xml\Core\SecureStringHasher.cs (1)
81return (HashCodeOfStringDelegate)Delegate.CreateDelegate(typeof(HashCodeOfStringDelegate), getHashCodeMethodInfo);
System\Xml\XmlQualifiedName.cs (1)
177return (HashCodeOfStringDelegate)Delegate.CreateDelegate(typeof(HashCodeOfStringDelegate), getHashCodeMethodInfo);
System\Xml\Xslt\XslCompiledTransform.cs (2)
324Delegate delExec = (dm != null) ? dm.CreateDelegate(typeof(ExecuteDelegate)) : Delegate.CreateDelegate(typeof(ExecuteDelegate), executeMethod);
UIAutomationClient (16)
MS\Internal\Automation\CalloutQueueItem.cs (2)
38internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) 74internal Delegate _clientCallback; // the client's callback delegate
MS\Internal\Automation\ClientEventManager.cs (7)
55internal static void AddFocusListener(Delegate eventCallback, EventListener l) 62internal static void RemoveFocusListener(Delegate eventCallback) 69internal static void AddListener(AutomationElement rawEl, Delegate eventCallback, EventListener l) 163internal static void RemoveListener( AutomationEvent eventId, AutomationElement el, Delegate eventCallback ) 484private static void AddRootListener(Tracker idx, Delegate eventCallback, EventListener l) 510private static void RemoveRootListener(AutomationEvent eventId, Tracker idx, Delegate eventCallback) 530private static void RemoveWinEventListener(Tracker idx, Delegate eventCallback)
MS\Internal\Automation\ClientSideQueueItem.cs (2)
37internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 87private Delegate _clientCallback; // a client callback delegate
MS\Internal\Automation\EventListenerClientSide.cs (4)
35internal EventListenerClientSide(AutomationElement elRoot, Delegate clientCallback, EventListener l) 93internal bool IsListeningFor(AutomationEvent eventId, AutomationElement el, Delegate clientCallback) 223internal Delegate ClientCallback 303private Delegate _clientCallback;
MS\Internal\Automation\InvokeHandlers.cs (1)
66internal static void InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
WindowsBase (63)
Base\MS\Internal\Threading\ExceptionFilterHelper.cs (4)
17internal delegate object InternalRealCallDelegate(Delegate method, object args, int numArgs); 19internal delegate bool CatchExceptionDelegate(object source, Exception e, Delegate catchHandler); 36Delegate method, 39Delegate catchHandler)
Base\MS\Internal\Threading\ExceptionWrapper.cs (4)
31public object TryCatchWhen(object source, Delegate callback, object args, int numArgs, Delegate catchHandler) 50private object InternalRealCall(Delegate callback, object args, int numArgs) 155private bool CatchException(object source, Exception e, Delegate catchHandler)
Base\System\Windows\DependencyObject.cs (2)
2741handlers = (EventHandler)Delegate.Combine(handlers, value); 2759handlers = (EventHandler)Delegate.Remove(handlers, value);
Base\System\Windows\Interop\ComponentDispatcherThread.cs (1)
211_threadPreprocessMessage = (ThreadMessageEventHandler)Delegate.Combine(handler, _threadPreprocessMessage);
Base\System\Windows\Markup\InternalTypeHelper.cs (2)
57protected internal abstract Delegate CreateDelegate(Type delegateType, object target, string handler); 62protected internal abstract void AddEventHandler(EventInfo eventInfo, object target, Delegate handler);
Base\System\Windows\PropertyMetadata.cs (1)
597Delegate[] handlers = baseMetadata.PropertyChangedCallback.GetInvocationList();
Base\System\Windows\Threading\Dispatcher.cs (19)
442public DispatcherOperation BeginInvoke(DispatcherPriority priority, Delegate method) // NOTE: should be Priority 469public DispatcherOperation BeginInvoke(DispatcherPriority priority, Delegate method, object arg) // NOTE: should be Priority 499public DispatcherOperation BeginInvoke(DispatcherPriority priority, Delegate method, object arg, params object[] args) 520public DispatcherOperation BeginInvoke(Delegate method, params object[] args) 545public DispatcherOperation BeginInvoke(Delegate method, DispatcherPriority priority, params object[] args) 1027private DispatcherOperation LegacyBeginInvokeImpl(DispatcherPriority priority, Delegate method, object args, int numArgs) 1131public object Invoke(DispatcherPriority priority, Delegate method) 1157public object Invoke(DispatcherPriority priority, Delegate method, object arg) 1185public object Invoke(DispatcherPriority priority, Delegate method, object arg, params object[] args) 1211public object Invoke(DispatcherPriority priority, TimeSpan timeout, Delegate method) 1242public object Invoke(DispatcherPriority priority, TimeSpan timeout, Delegate method, object arg) 1275public object Invoke(DispatcherPriority priority, TimeSpan timeout, Delegate method, object arg, params object[] args) 1296public object Invoke(Delegate method, params object[] args) 1321public object Invoke(Delegate method, DispatcherPriority priority, params object[] args) 1347public object Invoke(Delegate method, TimeSpan timeout, params object[] args) 1377public object Invoke(Delegate method, TimeSpan timeout, DispatcherPriority priority, params object[] args) 1389internal object LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, object args, int numArgs) 3117internal object WrappedInvoke(Delegate callback, object args, int numArgs, Delegate catchHandler)
Base\System\Windows\Threading\DispatcherOperation.cs (8)
37Delegate method, 64Delegate method, 103Delegate method, 382_aborted = (EventHandler) Delegate.Combine(_aborted, value); 390_aborted = (EventHandler) Delegate.Remove(_aborted, value); 409_completed = (EventHandler) Delegate.Combine(_completed, value); 417_completed = (EventHandler) Delegate.Remove(_completed, value); 746internal readonly Delegate _method;
Base\System\Windows\WeakEventManager.cs (19)
253protected void ProtectedAddHandler(object source, Delegate handler) 264protected void ProtectedRemoveHandler(object source, Delegate handler) 272private void AddListener(object source, IWeakEventListener listener, Delegate handler) 311private void RemoveListener(object source, object target, Delegate handler) 525public Listener(object target, Delegate handler) 531public bool Matches(object target, Delegate handler) 538public Delegate Handler { get { return (_handler != null) ? (Delegate)_handler.Target : null; } } 630public void AddHandler(Delegate handler) 644void AddHandlerToCWT(object target, Delegate handler) 659List<Delegate> list = value as List<Delegate>; 663Delegate oldHandler = value as Delegate; 664list = new List<Delegate>(); 677public void RemoveHandler(Delegate handler) 699List<Delegate> list = value as List<Delegate>; 861Delegate handler = listener.Handler;
Base\System\Windows\WeakEventManagerT.cs (2)
33_handler = Delegate.CreateDelegate(_eventInfo.EventHandlerType, this, DeliverEventMethodInfo); 126Delegate _handler;
Shared\MS\Internal\ReaderWriterLockSlimWrapper.cs (1)
262private bool ExecuteWithinLockInternal(Action lockAcquire, Action lockRelease, ref object result, Delegate criticalAction, params object[] args)