75 references to Target
Microsoft.AspNetCore.Components (6)
EventCallback.cs (1)
45internal bool RequiresExplicitReceiver => Receiver != null && !object.ReferenceEquals(Receiver, Delegate?.Target);
EventCallbackFactory.cs (2)
198return new EventCallback(callback?.Target as IHandleEvent ?? receiver as IHandleEvent, callback); 203return new EventCallback<TValue>(callback?.Target as IHandleEvent ?? receiver as IHandleEvent, callback);
EventCallbackOfT.cs (2)
40internal bool RequiresExplicitReceiver => Receiver != null && !object.ReferenceEquals(Receiver, Delegate?.Target); 67return new EventCallback(Receiver ?? Delegate?.Target as IHandleEvent, Delegate);
RenderTree\Renderer.cs (1)
638_eventBindings.Add(id, (renderedByComponentId, new EventCallback(@delegate.Target as IHandleEvent, @delegate)));
Microsoft.AspNetCore.Http (3)
Builder\ApplicationBuilder.cs (3)
130if (middleware.Target != null) 138return middleware.Target.ToString()!; 141return middleware.Target.GetType().FullName + "." + middleware.Method.Name;
Microsoft.AspNetCore.Http.Extensions (4)
RequestDelegateFactory.cs (4)
179var targetExpression = handler.Target switch 181object => Expression.Convert(TargetExpr, handler.Target.GetType()), 187Expression<Func<HttpContext, object?>> targetFactory = (httpContext) => handler.Target; 195_ => httpContext => targetableRequestDelegate(handler.Target, httpContext),
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisMiddleware.cs (1)
35middlewareName = next.Target!.GetType().FullName!;
Microsoft.CodeAnalysis (1)
InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
QuickInfo\ToolTipAssert.cs (4)
101else if (expected.NavigationAction.Target is QuickInfoHyperLink hyperLink) 104var actualTarget = Assert.IsType<QuickInfoHyperLink>(actual.NavigationAction.Target); 112Assert.IsNotType<QuickInfoHyperLink>(actual.NavigationAction.Target); 179if (classifiedTextRun.NavigationAction?.Target is QuickInfoHyperLink hyperLink)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
83var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.DotNet.RemoteExecutor (2)
RemoteExecutor.cs (2)
592if (d.Target != null) 598Type targetType = d.Target.GetType();
Microsoft.Maui (4)
WeakEventManager.cs (4)
25 AddEventHandler(eventName, handler.Target, handler.GetMethodInfo()); 36 AddEventHandler(eventName, handler.Target, handler.GetMethodInfo()); 91 RemoveEventHandler(eventName, handler.Target, handler.GetMethodInfo()); 102 RemoveEventHandler(eventName, handler.Target, handler.GetMethodInfo());
Microsoft.Maui.Controls (2)
MessagingCenter.cs (2)
146 var target = callback.Target; 169 var target = callback.Target;
Microsoft.ML.Core (13)
Utilities\Utils.cs (13)
1109return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3 }); 1119return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4 }); 1129return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4, arg5 }); 1139return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4, arg5, arg6 }); 1149return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4, arg5, arg6, arg7 }); 1159return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 }); 1170return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 }); 1181return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 }); 1207meth.Invoke(act.Target, null); 1216meth.Invoke(act.Target, new object[] { arg1 }); 1225meth.Invoke(act.Target, new object[] { arg1, arg2 }); 1234meth.Invoke(act.Target, new object[] { arg1, arg2, arg3 }); 1243meth.Invoke(act.Target, new object[] { arg1, arg2, arg3, arg4 });
Microsoft.ML.DataView (3)
Utils.cs (3)
16meth.Invoke(act.Target, new object[] { arg1 }); 22meth.Invoke(act.Target, new object[] { arg1, arg2, arg3, arg4 }); 28return (TRet)meth.Invoke(func.Target, new object[] { arg1, arg2 });
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
687return (Delegate)typedMeth.Invoke(func.Target, new object[] { column });
Microsoft.ML.Tests (1)
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
638Contracts.Assert(funcs[i].Target == null);
Microsoft.ML.Transforms (5)
Expression\BuiltinFunctions.cs (5)
75Contracts.Assert(fn.Target == null); 85Contracts.Assert(fn.Target == null); 95Contracts.Assert(fn.Target == null); 105Contracts.Assert(fn.Target == null); 134Contracts.Assert(fn.Target == null);
PresentationCore (2)
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (2)
249object target = handler.Target; 283object target = handler.Target;
PresentationFramework (6)
MS\Internal\AppModel\ReturnEventSaver.cs (2)
65if (returnDelegate.Target == pf) 74returnDelegate.Target.GetType().AssemblyQualifiedName,
MS\Internal\Data\ValueChangedEventManager.cs (1)
442if (!HasIgnorableListeners && IsIgnorable(handler.Target))
MS\Internal\Data\ViewManager.cs (1)
380object target = callback.Target;
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
59return TryUnwrapObject(del.Target, out objRef);
System\Windows\Navigation\PageFunction.cs (1)
106PageFunctionBase parent = d.Target as PageFunctionBase;
System.Data.Odbc (2)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
582if (d[i].Target is DbCommandBuilder)
System\Data\Odbc\OdbcDataAdapter.cs (1)
121if ((null != handler) && (value!.Target is OdbcCommandBuilder))
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\CallInstruction.cs (2)
253var thunk = del.Target as Func<object[], object>; 256lightLambda = thunk.Target as LightLambda;
System.Net.Http (2)
System\Net\Http\HttpClientHandler.cs (1)
311get => (_underlyingHandler.SslOptions.RemoteCertificateValidationCallback?.Target as ConnectHelper.CertificateCallbackMapper)?.FromHttpClientHandler;
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
41if (callback != null && callback.Target is CertificateCallbackMapper mapper)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (3)
118object? target = action.Target; 126(continuation.Target is ContinuationWrapper wrapper) ? 128continuation.Target as Task; // The continuation targets a task directly, such as with AsyncStateMachineBox
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
431if ((bool)parser.Method.Invoke(parser.Target, args)) 457if ((bool)dateTimeParser.Method.Invoke(dateTimeParser.Target, args))