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