494 references to Invoke
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\PropertyFetcher.AOT.cs (1)
145.Invoke(null, new object[] { propertyInfo })!;
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
141.Invoke(null, new object[] { propertyInfo })!;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
141.Invoke(null, new object[] { propertyInfo })!;
Aspire.RabbitMQ.Client.v7.Tests (3)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (3)
212s_log.GetType().GetMethod("Info")!.Invoke(s_log, new object[] { message }); 220s_log.GetType().GetMethod("Warn")!.Invoke(s_log, new object[] { message }); 228s_log.GetType().GetMethod("Error", [typeof(string), typeof(Exception)])!.Invoke(s_log, new object[] { message, ex });
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\PropertyFetcher.AOT.cs (1)
147.Invoke(null, new object[] { propertyInfo })!;
Diagnostics.EFCore.FunctionalTests (1)
Helpers\StringHelpers.cs (1)
17return (string)method.Invoke(null, parameters);
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
68object description = GetContract.Invoke(null, new object[] { type });
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (3)
84success = (bool)method.Invoke(null, new object[] { types.ToArray(), mappings.ToArray(), fs }); 241var behavior = findMethod.Invoke(behaviors, new object[] { }); 244var xmlMappings = (Collection<XmlMapping>)getXmlMappingsMethod.Invoke(behavior, new object[] { });
dotnet-svcutil.xmlserializer.IntegrationTests (1)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (1)
62method.Invoke(null, new object[] { 3 });
dotnet-svcutil-lib (20)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (2)
187return _methods[mapping.Key].readMethod.Invoke(reader, s_emptyObjectArray); 221_methods[mapping.Key].writeMethod.Invoke(writer, new object[] { o });
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (1)
1347object typeInfo = _getSchemaMethod.Invoke(null, new object[] { _schemas });
FrameworkFork\Microsoft.Xml\Xml\Serialization\TypeExtensions.cs (1)
52returnValue = method.Invoke(null, new object[] { data });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
405return format.Invoke(formatter, new Object[] { defaultValue });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
969return (string)format.Invoke(formatter, new Object[] { value });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2117object types = method.Invoke(null, Array.Empty<object>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
481string messageValue = (string)baseMessageImpl.Invoke(null, new object[] { value });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (1)
65object typeInfo = getMethod.Invoke(null, new object[] { schemas });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
883obj = methodInfo.Invoke(null, new object[] { type });
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (4)
267return (bool)_tcsInfo.TrySetResultMethod.Invoke(_tcsInstance, new object[] { result }); 272return (bool)_tcsInfo.TrySetExceptionMethod.Invoke(_tcsInstance, new object[] { exception }); 277return (bool)_tcsInfo.TrySetCanceledMethod.Invoke(_tcsInstance, Array.Empty<object>()); 385returnValue = targetMethod.Invoke(target, args);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
377return (IEnumerable<Type>)method.Invoke(null, new object[] { provider });
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (2)
63result = method.Invoke(target, inputsLocal); 67method.Invoke(target, inputsLocal);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
119returnVal = _taskTResultGetMethod.Invoke(task, Type.EmptyTypes);
Metadata\ServiceDescriptor.cs (1)
123var xmlReader = await (Task<System.Xml.XmlReader>)methodInfo.Invoke(typeInstance, new object[] { MetadataUrl });
Shared\ProjectPropertyResolver.cs (1)
60var propertyValue = getPropertyValue.Invoke(projInstance, new object[] { propertyName }).ToString();
GetDocument.Insider (5)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (4)
109return args => (T)factory!.Invoke(null, new object[] { args })!; 182return buildMethod?.Invoke(builder, Array.Empty<object>()); 238_entryPoint.Invoke(null, Array.Empty<object>()); 242_entryPoint.Invoke(null, new object[] { _args });
Commands\GetDocumentCommandWorker.cs (1)
457var result = method.Invoke(instance, arguments);
Infrastructure.Common (1)
xunit\ConditionAttribute.cs (1)
82if (!(bool)conditionMethodInfo.Invoke(null, null))
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (2)
31method.Invoke(startup, new[] { innerAppBuilder }); 36appfunc = context => (Task)method.Invoke(startup, new[] { context });
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Microsoft.Arcade.Common (1)
MSBuildTaskBase.cs (1)
51return (bool)GetExecuteMethod().Invoke(this, GetExecuteArguments(provider));
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\ExportProviderExtensions.cs (2)
45export = parameterizedMethod.Invoke(_exportProvider, new[] { contract.ContractName }); 55export = parameterizedMethod.Invoke(_exportProvider, new[] { contract.ContractName });
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1790formatter = (Delegate)method.MakeGenericMethod(elementType).Invoke(null, null)!; 1997parser = (Delegate)method.MakeGenericMethod(elementType).Invoke(null, null)!;
Microsoft.AspNetCore.Components.WebAssembly (1)
HotReload\HotReloadAgent.cs (1)
91capabilities = getCapabilities.Invoke(obj: null, parameters: null) as string;
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (1)
77bindMethodInfo.Invoke(null, new object?[] { binder, null });
Microsoft.AspNetCore.Http.Extensions (16)
HeaderDictionaryTypeExtensions.cs (2)
290var success = (bool)method.Invoke(null, parameters)!; 326var success = (bool)method.Invoke(null, parameters)!;
src\Shared\EndpointMetadataPopulator.cs (3)
35PopulateMetadataForParameterMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 44PopulateMetadataForEndpointMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 61PopulateMetadataForEndpointMethod.MakeGenericMethod(returnType).Invoke(null, invokeArgs);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
76_executor = methodInfo.Invoke; 447methodInfo.Invoke(target, args), 470methodInfo.Invoke(target, args), 494methodInfo.Invoke(target, args), 495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 513methodInfo.Invoke(target, args), 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ValidationsGenerator\ValidationsGeneratorTestBase.cs (1)
425_entryPoint.Invoke(null, new object[] { _args });
Microsoft.AspNetCore.Http.Results (1)
ResultsOfTHelper.cs (1)
55PopulateMetadataMethod.MakeGenericMethod(typeof(TTarget)).Invoke(null, parameters);
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestAssemblyRunner.cs (1)
72instance = staticCreator.Invoke(obj: null, parameters: new[] { assembly });
Microsoft.AspNetCore.Mvc.Core (17)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
374EndpointMetadataPopulator.PopulateMetadataForEndpointMethod.MakeGenericMethod(returnType).Invoke(null, invokeArgs);
Filters\MiddlewareFilterConfigurationProvider.cs (1)
120MethodInfo.Invoke(instance, parameters);
ModelBinding\PropertyValueSetter.cs (1)
54propertyAddRange.Invoke(obj: null, parameters: new[] { target, value });
src\Shared\EndpointMetadataPopulator.cs (3)
35PopulateMetadataForParameterMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 44PopulateMetadataForEndpointMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 61PopulateMetadataForEndpointMethod.MakeGenericMethod(returnType).Invoke(null, invokeArgs);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
76_executor = methodInfo.Invoke; 447methodInfo.Invoke(target, args), 470methodInfo.Invoke(target, args), 494methodInfo.Invoke(target, args), 495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 513methodInfo.Invoke(target, args), 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageCreateTagHelperTest.cs (1)
87return typeof(Enumerable).GetMethod("Empty").MakeGenericMethod(enumerableType).Invoke(null, null);
Microsoft.AspNetCore.Mvc.Testing (4)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (4)
109return args => (T)factory!.Invoke(null, new object[] { args })!; 182return buildMethod?.Invoke(builder, Array.Empty<object>()); 238_entryPoint.Invoke(null, Array.Empty<object>()); 242_entryPoint.Invoke(null, new object[] { _args });
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
999enumValue = (Enum)methodInfo.Invoke(obj: null, parameters: new[] { stringValue });
Microsoft.AspNetCore.OpenApi (11)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
76_executor = methodInfo.Invoke; 447methodInfo.Invoke(target, args), 470methodInfo.Invoke(target, args), 494methodInfo.Invoke(target, args), 495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 513methodInfo.Invoke(target, args), 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
433_entryPoint.Invoke(null, new object[] { _args });
Microsoft.AspNetCore.Shared.Tests (11)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
76_executor = methodInfo.Invoke; 447methodInfo.Invoke(target, args), 470methodInfo.Invoke(target, args), 494methodInfo.Invoke(target, args), 495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 513methodInfo.Invoke(target, args), 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
Microsoft.AspNetCore.SignalR.Client.Core (3)
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (3)
224if ((bool)_tryReadMethodInfo.Invoke(_channelReader, _tryReadResult)!) 235while (await ((ValueTask<bool>)_waitToReadAsyncMethodInfo.Invoke(_channelReader, _waitToReadArgs)!).ConfigureAwait(false)) 237if ((bool)_tryReadMethodInfo.Invoke(_channelReader, _tryReadResult)!)
Microsoft.AspNetCore.SignalR.Core (15)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
76_executor = methodInfo.Invoke; 447methodInfo.Invoke(target, args), 470methodInfo.Invoke(target, args), 494methodInfo.Invoke(target, args), 495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 513methodInfo.Invoke(target, args), 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (3)
224if ((bool)_tryReadMethodInfo.Invoke(_channelReader, _tryReadResult)!) 235while (await ((ValueTask<bool>)_waitToReadAsyncMethodInfo.Invoke(_channelReader, _waitToReadArgs)!).ConfigureAwait(false)) 237if ((bool)_tryReadMethodInfo.Invoke(_channelReader, _tryReadResult)!)
StreamTracker.cs (1)
37var newConverter = (IStreamConverter)_buildConverterMethod.MakeGenericMethod(itemType).Invoke(null, _streamConverterArgs)!;
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
TestConnectionMultiplexer.cs (1)
269.Invoke(messageQueue, new object[] { channel, value });
Microsoft.AspNetCore.TestHost (4)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (4)
109return args => (T)factory!.Invoke(null, new object[] { args })!; 182return buildMethod?.Invoke(builder, Array.Empty<object>()); 238_entryPoint.Invoke(null, Array.Empty<object>()); 242_entryPoint.Invoke(null, new object[] { _args });
Microsoft.Build (2)
Evaluation\Expander.cs (1)
4323functionResult = ((MethodInfo)memberInfo).Invoke(objectInstance /* null if static method */, args);
Utilities\NuGetFrameworkWrapper.cs (1)
72DefaultCompatibilityProvider = NuGetFrameworkDefaultCompatibilityProvider.GetMethod("get_Instance").Invoke(null, Array.Empty<object>());
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
TestUtilities\ErrorLoggerEngine.cs (2)
42_log.Append(_formatErrorMethod.Invoke(null, new object[] { eventArgs })); 48_log.Append(_formatWarningMethod.Invoke(null, new object[] { eventArgs }));
Microsoft.Build.Tasks.UnitTests (1)
Exec_Tests.cs (1)
553string commandLine = generateCommandLineCommandsMethod.Invoke(exec, Array.Empty<object>()) as string;
Microsoft.CodeAnalysis (7)
CodeGen\BasicBlock.cs (1)
649return (string)method.Invoke(null, new object[] { this });
CodeGen\ILBuilder.cs (1)
1270return (string)method.Invoke(null, new object[] { this, null, null });
InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
InternalUtilities\UICultureUtilities.cs (2)
94currentUICultureSetter.Invoke(currentThreadGetter.Invoke(null, null), new[] { culture });
PEWriter\PeWriter.cs (1)
328return (uint)s_calculateChecksumMethod.Invoke(null, new object[]
TreeDumper.cs (1)
192var result = ti?.GetDeclaredMethod("get_IsDefault")?.Invoke(o, Array.Empty<object>());
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxTests.cs (2)
290foreach (var kind in (IEnumerable<SyntaxKind>)method.Invoke(null, null)) 310var returnedKindsInts = ((IEnumerable<SyntaxKind>)method.Invoke(null, null)).Select(static k => (int)k).ToHashSet();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Threading\StaTaskScheduler.cs (1)
31var defaultDomain = (AppDomain)getDefaultDomain.Invoke(null, null);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
ExpressionEvaluatorFatalError.cs (2)
33using var eeKey = (IDisposable?)openSubKeyMethod?.Invoke(currentUserKey, new object[] { RegistryKey, /*writable*/ false }); 37return getValueMethod?.Invoke(eeKey, new object[] { name });
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (2)
33using var eeKey = (IDisposable?)openSubKeyMethod?.Invoke(currentUserKey, new object[] { RegistryKey, /*writable*/ false }); 37return getValueMethod?.Invoke(eeKey, new object[] { name });
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (2)
33using var eeKey = (IDisposable?)openSubKeyMethod?.Invoke(currentUserKey, new object[] { RegistryKey, /*writable*/ false }); 37return getValueMethod?.Invoke(eeKey, new object[] { name });
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
DeclarePublicApiAnalyzer.cs (2)
288var options = getOptionsMethod.Invoke(provider, new object[] { tree }); 297if (tryGetValueMethod.Invoke(options, parameters) is not bool hasOption ||
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
257: method.Invoke(obj, Array.Empty<object>());
Microsoft.CodeAnalysis.Test.Utilities (4)
Metadata\ILValidation.cs (2)
206return (int)s_peheaderSizeMethod.Invoke(null, new object[] { is32Bit }); 257return (IEnumerable<Blob>)s_getContentToSignMethod.Invoke(null, new object[]
Platform\CoreClr\TestExecutionLoadContext.cs (1)
88exitCode = entryPoint.Invoke(null, args) is int exit ? exit : 0;
TargetFrameworkUtil.cs (1)
428var obj = prop.GetGetMethod()!.Invoke(obj: null, parameters: null);
Microsoft.CodeAnalysis.UnitTests (35)
AnalyzerAssemblyLoaderTests.cs (29)
232member.Invoke(obj, args); 312a.GetType().GetMethod("Write")!.Invoke(a, new object[] { sb, "Test A" }); 317b.GetType().GetMethod("Write")!.Invoke(b, new object[] { sb, "Test B" }); 381() => writeMethod.Invoke(b, new object[] { sb, "Test B" })); 390writeMethod.Invoke(b, new object[] { sb, "Test B" }); 553writeMethod.Invoke(b, new object[] { sb, "Test G" }); 585writeMethod.Invoke(b, new object[] { sb, "Test G" }); 701writeMethod.Invoke(b, new object[] { sb, "Test G" }); 739writeMethod.Invoke(b, new object[] { sb, "Test G" }); 798g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 802e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 854e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 913e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 994e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1050e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1084g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 1088e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1144g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 1151eWrite.Invoke(e, new object[] { sb, "Test E" }); 1323g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 1327e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1353delta1Instance.GetType().GetMethod("Write")!.Invoke(delta1Instance, new object[] { sb, "Test D1" }); 1357delta2Instance.GetType().GetMethod("Write")!.Invoke(delta2Instance, new object[] { sb, "Test D2" }); 1385var ex = Assert.ThrowsAny<Exception>(() => analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb })); 1390analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb }); 1409analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb }); 1446var result = analyzer.GetType().GetMethod("GetFileAttributes")!.Invoke(analyzer, new[] { testFixture.AnalyzerWithNativeDependency }); 1496d!.GetType().GetMethod("Write")!.Invoke(d, new object[] { sb, "Test D" }); 1531writeMethod.Invoke(b, new object[] { sb, "Test G" });
Collections\ImmutableSegmentedListTest.cs (2)
803var list = Assert.IsAssignableFrom<IEnumerable>(createMethod.Invoke(null, null)); 806list = Assert.IsAssignableFrom<IEnumerable>(addMethod!.Invoke(list, new object?[] { Activator.CreateInstance(dummType.AsType()) }));
Collections\SegmentedArrayHelperTests.cs (4)
83Assert.Equal(SegmentedArrayHelper.TestAccessor.CalculateSegmentSize(InvokeUnsafeSizeOf(type)), (int)getSegmentSizeMethod.Invoke(null, null)); 92Assert.Equal(SegmentedArrayHelper.TestAccessor.CalculateSegmentShift(segmentSize), (int)getSegmentShiftMethod.Invoke(null, null)); 101Assert.Equal(SegmentedArrayHelper.TestAccessor.CalculateOffsetMask(segmentSize), (int)getOffsetMaskMethod.Invoke(null, null)); 107return (int)unsafeSizeOfMethod.Invoke(null, null);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1270For Each kind As SyntaxKind In DirectCast(method.Invoke(Nothing, Nothing), IEnumerable(Of SyntaxKind))
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Rpc\RpcServer.cs (1)
139var result = method.Invoke(rpcTarget, arguments);
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
145return (T?)methodInfo.Invoke(obj, args);
src\Compilers\Core\Portable\InternalUtilities\UICultureUtilities.cs (2)
94currentUICultureSetter.Invoke(currentThreadGetter.Invoke(null, null), new[] { culture });
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
139var result = method.Invoke(rpcTarget, arguments);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
559var state = syntaxAndDeclarationsManager.GetType().GetMethod("GetLazyState", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)!.Invoke(syntaxAndDeclarationsManager, null);
Microsoft.DotNet.RemoteExecutor (1)
Program.cs (1)
57object result = mi.Invoke(instance, additionalArgs);
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
157return () => (bool)mi.Invoke(null, null);
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
157return () => (bool)mi.Invoke(null, null);
Microsoft.Extensions.Configuration.Binder (7)
ConfigurationBinder.cs (7)
666object? k = keyMethod.GetMethod!.Invoke(item, null); 667object? v = valueMethod.GetMethod!.Invoke(item, null); 670addMethod!.Invoke(dictionary, arguments); 736return (bool)tryGetValue.Invoke(dictionary, tryGetValueArgs)! ? tryGetValueArgs[1] : null; 786addMethod?.Invoke(collection, new[] { itemBindingPoint.Value }); 888addMethod!.Invoke(instance, arguments); 913addMethod.Invoke(source, arguments);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
140.Invoke(obj: null, parameters: Array.Empty<object>()));
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
191return methodInfo.Invoke(objectReference?.Value, suppliedArgs);
Microsoft.Maui (5)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
266 var dotnetReturnValue = dotnetMethod.Invoke(jsInvokeTarget, invokeParamValues);
HotReload\HotReloadHelper.cs (1)
138 method?.Invoke(null, null);
VisualDiagnostics\BootstrapHelper.cs (2)
43 Assembly assembly = (Assembly)loadFrom.Invoke(null, new object[] { assemblyPath }); 46 method?.Invoke(null, new object[] { argument });
WeakEventManager.cs (1)
77 handler.Invoke(subscriber, new[] { sender, args });
Microsoft.Maui.Controls (11)
BindingExpression.cs (3)
207 part.LastSetter.Invoke(current, args); 727 value = LastGetter.Invoke(value, Arguments); 741 value = LastGetter.Invoke(value, Arguments);
LegacyLayouts\ConstraintExpression.cs (2)
44 return Constraint.RelativeToParent(p => (double)minfo.Invoke(p, Array.Empty<object>()) * Factor + Constant); 66 { return (double)minfo.Invoke(v, Array.Empty<object>()) * Factor + Constant; });
MessagingCenter.cs (2)
87 MethodInfo.Invoke(null, MethodInfo.GetParameters().Length == 1 ? new[] { sender } : new[] { sender, args }); 98 MethodInfo.Invoke(target, MethodInfo.GetParameters().Length == 1 ? new[] { sender } : new[] { sender, args });
PlatformBindingHelpers.cs (3)
46 var defaultValue = targetPropertyInfo?.GetMethod.Invoke(target, Array.Empty<object>()); 87 mi.Invoke(target, new[] { newValue }); 95 SetValueFromRenderer(proxy, bindableProperty, target.GetType().GetProperty(targetProperty)?.GetMethod.Invoke(target, Array.Empty<object>()));
TypeConversionHelper.cs (1)
87 object? convertedValue = opImplicit?.Invoke(null, new[] { value });
Microsoft.Maui.Controls.Build.Tasks (2)
NodeILExtensions.cs (1)
167 instructions = (IEnumerable<Instruction>)converter.Invoke(compiledConverter, new object[] {
SetPropertiesVisitor.cs (1)
467 var instructions = (IEnumerable<Instruction>)cProvideValue.Invoke(compiledValueProvider, new object[] {
Microsoft.Maui.Controls.Compatibility (2)
src\Core\src\VisualDiagnostics\BootstrapHelper.cs (2)
43 Assembly assembly = (Assembly)loadFrom.Invoke(null, new object[] { assemblyPath }); 46 method?.Invoke(null, new object[] { argument });
Microsoft.Maui.Controls.Xaml (10)
ApplyPropertiesVisitor.cs (7)
174 addMethod.Invoke(source, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, new XamlServiceProvider(node, Context), out xpe) }); 218 addMethod.Invoke(collection, new[] { value }); 506 addMethod.Invoke(element, new[] { mi.CreateDelegate(eventInfo.EventHandlerType, mi.IsStatic ? null : rootElement) }); 677 setter.Invoke(element, new object[] { convertedValue }); 715 value = getter.Invoke(element, Array.Empty<object>()); 753 addMethod.Invoke(collection, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, serviceProvider, out exception) }); 821 addMethod.Invoke(collection, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, serviceProvider, out exception) });
CreateValuesVisitor.cs (1)
281 return mi.Invoke(null, arguments);
MarkupExtensionParser.cs (1)
110 setter.Invoke(markupExtension, new[] { value });
MarkupExtensions\StaticExtension.cs (1)
34 return pinfo.GetMethod.Invoke(null, Array.Empty<object>());
Microsoft.ML.AutoML (2)
Sweepers\SmacSweeper.cs (2)
353return (int)_getLeafMethod.Invoke(model, new object[] { treeId, features, path }); 358return (float)_getLeafValueMethod.Invoke(model, new object[] { treeId, leafId });
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
315return ((string)(method.Invoke(objectToConvert, new object[] {
Template\SearchSpace.cs (1)
332return ((string)(method.Invoke(objectToConvert, new object[] {
Template\SweepableEstimator.cs (1)
334return ((string)(method.Invoke(objectToConvert, new object[] {
Template\SweepableEstimator_T_.cs (1)
339return ((string)(method.Invoke(objectToConvert, new object[] {
Template\SweepableEstimatorFactory.cs (1)
310return ((string)(method.Invoke(objectToConvert, new object[] {
Microsoft.ML.CodeGenerator (11)
Templates\Azure\Console\AzureModelBuilder.cs (1)
409return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
350return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
350return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\ConsumeModel.cs (1)
361return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\ModelBuilder.cs (1)
726return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\ModelInputClass.cs (1)
324return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\ModelOutputClass.cs (1)
367return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\ModelProject.cs (1)
356return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\PredictProgram.cs (1)
383return ((string)(method.Invoke(objectToConvert, new object[] {
Templates\Console\PredictProject.cs (1)
361return ((string)(method.Invoke(objectToConvert, new object[] {
Utils.cs (1)
77string val = getGenericGetGetterMethod.Invoke(null, new object[] { rowCursor, featureColumns[i] }) as string;
Microsoft.ML.Core (29)
CommandLine\CmdParser.cs (2)
1386return (bool)TryUnparseCustom.Invoke(obj, new object[] { sb }); 1767(res = _infoCustom.ParseCustom.Invoke(null, new string[] { data })) != null)
ComponentModel\ComponentCatalog.cs (2)
242return InstanceGetter.Invoke(null, null); 247return CreateMethod.Invoke(null, ctorArgs);
Utilities\Utils.cs (25)
995return (TResult)meth.Invoke(target, null); 1004return (TResult)meth.Invoke(null, null); 1014return (TResult)meth.Invoke(target, new object[] { arg1 }); 1023return (TResult)meth.Invoke(null, new object[] { arg1 }); 1033return (TResult)meth.Invoke(target, new object[] { arg1 }); 1042return (TResult)meth.Invoke(null, new object[] { arg1 }); 1052return (TResult)meth.Invoke(target, new object[] { arg1, arg2 }); 1061return (TResult)meth.Invoke(null, new object[] { arg1, arg2 }); 1071return (TResult)meth.Invoke(target, new object[] { arg1, arg2 }); 1080return (TResult)meth.Invoke(null, new object[] { arg1, arg2 }); 1090return (TResult)meth.Invoke(target, new object[] { arg1, arg2 }); 1099return (TResult)meth.Invoke(null, new object[] { arg1, arg2 }); 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.Data (22)
Commands\ShowSchemaCommand.cs (2)
224meth.Invoke(null, new object[] { itw, schema, col, kind, type }); 263meth.Invoke(null, new object[] { itw, schema, col, kind, type });
Data\RowCursorUtils.cs (5)
66return (Delegate)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, row, col }); 87return (ValueGetter<TDst>)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, row, col }); 165return (Delegate)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, GetterFactory.Create(row, col) }); 185return (ValueGetter<VBuffer<TDst>>)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, GetterFactory.Create(row, col) }); 202return (ValueGetter<VBuffer<TDst>>)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, GetterFactory.Create(cursor) });
DataLoadSave\Binary\BinaryLoader.cs (1)
198meth.Invoke(this, null);
DataLoadSave\Binary\BinarySaver.cs (2)
289IValueCodec codec = (IValueCodec)methInfo.MakeGenericMethod(metaColumn.Type.RawType).Invoke(this, args); 754methInfo.MakeGenericMethod(col.Codec.Type.RawType).Invoke(this, args);
DataLoadSave\Transpose\TransposeLoader.cs (1)
808meth.Invoke(this, new object[] { col });
DataView\LambdaColumnMapper.cs (1)
77impl = (IDataView)meth.Invoke(null, new object[] { env, name, input, col, typeDst, conv, mapper, keyValueGetter, slotNamesGetter });
DataView\LambdaFilter.cs (1)
66impl = (IDataView)meth.Invoke(null, new object[] { env, name, input, colSrc, predicate, conv });
DataView\TypedCursor.cs (1)
418return (Action<TRow>)meth.Invoke(this, new object[] { input, index, poke, peek });
MLContext.cs (1)
193var result = method.Invoke(null, null);
Scorers\FeatureContributionCalculation.cs (1)
199return (Delegate)meth.Invoke(this, new object[] { input, colSrc, slotNames });
Transforms\KeyToValue.cs (1)
244kvMaps[iinfo] = (KeyToValueMap)meth.Invoke(this, new object[] { iinfo, typeSrc, typeVals });
Transforms\RangeFilter.cs (1)
338return (DataViewRowCursor)methodInfo.Invoke(null, new object[] { filter, input, active });
Transforms\ValueMapping.cs (1)
811return (ValueMap)method.Invoke(null, new object[] { keyColumn, valueColumn });
Utilities\ColumnCursor.cs (3)
68return (IEnumerable<T>)(meth.Invoke(null, new object[] { data, colIndex, convert })); 81return (IEnumerable<T>)meth.Invoke(null, new object[] { data, colIndex }); 89return (IEnumerable<T>)meth.Invoke(null, new object[] { data, colIndex, convert });
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.OnnxTransformer (4)
OnnxTypeParser.cs (4)
308var scalar = accessSpecialized.Invoke(value, new object[] { 0 }); 325Func<NamedOnnxValue, object> caster = (NamedOnnxValue value) => methodSpecialized.Invoke(value, new object[] { }); 354return methodSpecialized.Invoke(null, new object[] { enumerable, elementCaster }); 376return asDictionaryMethod.Invoke(value, new object[] { });
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
687return (Delegate)typedMeth.Invoke(func.Target, new object[] { column });
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLineReverseTest.cs (1)
200return (IComponentFactory<SimpleArg>)_createComponentFactoryMethod.Invoke(null,
Microsoft.ML.Samples (1)
Program.cs (1)
25sample.Invoke(null, null);
Microsoft.ML.Samples.GPU (1)
Program.cs (1)
22sample.Invoke(null, null);
Microsoft.ML.Transforms (12)
CountFeatureSelection.cs (2)
356return (CountAggregator)methodInfo.Invoke(null, new object[] { row, colType, colSrc }); 368return (CountAggregator)methodInfo.Invoke(null, new object[] { row, colType, colSrc });
Expression\LambdaBinder.cs (1)
1454res = best.Method.Invoke(null, args);
ExpressionTransformer.cs (2)
456return (Delegate)meth.Invoke(this, new object[] { ectx, input, inputColumns, _columns[iinfo].Del }); 598return (Delegate)meth.Invoke(this, new object[] { ectx, input, inputColumns, _columns[iinfo].Perm, _columns[iinfo].Del, _columns[iinfo].OutputColumnItemType });
MissingValueReplacing.cs (4)
244_repValues[i] = meth.Invoke(this, args); 408return meth.Invoke(this, new object[] { srcStr, dstType, isNA }); 513repValue = method.Invoke(this, new object[] { _repValues[iinfo] }); 521meth.Invoke(this, args);
MutualInformationFeatureSelection.cs (2)
558_labels = (VBuffer<int>)methodInfo.Invoke(this, parameters); 636return (Single[])cmiMethodInfo.Invoke(this, new object[] { trans, col, mapper });
PermutationFeatureImportanceExtensions.cs (1)
702var permutationFeatureImportance = (ImmutableArray<TResult>)mi.Invoke(null, param);
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (3)
633retValue = method.Invoke(o, args) 879method.Invoke(o, args) 1095Return method.Invoke(o, args)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1285result = callTarget.Invoke(_instance, callArguments)
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
2019res = Method.Invoke(target, args)
PresentationCore (1)
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
1063if ((bool)GetEffectiveClientAreaMI.Invoke(windowChromeWorker, args))
PresentationFramework (18)
MS\Internal\Data\DefaultValueConverter.cs (3)
212result = mi.Invoke(null, new object[] { stringValue, NumberStyles.Any, culture }); 221result = mi.Invoke(null, new object[] { stringValue, culture }); 230result = mi.Invoke(null, new object[] { stringValue });
MS\Internal\Data\IndexedEnumerable.cs (1)
602value = (int)_reflectedIndexOf.Invoke(Enumerable, new object[] { item });
MS\Internal\Data\ViewManager.cs (1)
402_callbackMethod.Invoke(target, new object[] { collection, context, accessMethod, writeAccess });
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
36return (string)sigMethod.Invoke(null, Array.Empty<Type>());
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
939return fromAbiMethod.Invoke(null, new object[] { ptr });
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (2)
73result = (bool)_shouldSerializeMethod.Invoke(null, args); 77result = (bool)_shouldSerializeMethod.Invoke(instance, args);
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (2)
93result = (bool)_shouldSerializeMethod.Invoke(null, args); 97result = (bool)_shouldSerializeMethod.Invoke(instance, args);
System\Windows\Markup\BamlCollectionHolder.cs (2)
137PropertyDefinition.AttachedPropertySetter.Invoke(null, new object[] { Parent, Collection }); 172_defaultCollection = PropertyDefinition.AttachedPropertyGetter.Invoke(null, new object[] { Parent });
System\Windows\Markup\BamlRecordReader.cs (4)
2253propertyDefinition.AttachedPropertySetter.Invoke(null, new object[] { element, valueObject }); 2592propertyDefinition.AttachedPropertySetter.Invoke(null, new object[] { o, value }); 3698attachedPropertySetter.Invoke(null, new object[] { currentTarget, o }); 3811methodInfo.Invoke(null, new object[] { parentObject, value });
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
277return (bool)shouldSerializeMethod.Invoke(invokeInstance, args);
PresentationFramework-SystemCore (2)
DynamicAccessorImpl.cs (2)
80_getterCallSite = (CallSite)createMethod.Invoke(null, new object[]{ getBinder }); 100_setterCallSite = (CallSite)createMethod.Invoke(null, new object[]{ setBinder });
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
168var result = (ValidationResult?)methodInfo!.Invoke(null, methodParams);
System.ComponentModel.Composition (1)
Microsoft\Internal\ReflectionInvoke.cs (1)
23return method.Invoke(instance, arguments);
System.ComponentModel.TypeConverter (18)
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
134return ((MethodInfo)MemberInfo).Invoke(null, translatedArguments);
System\ComponentModel\ReflectEventDescriptor.cs (2)
209_addMethod!.Invoke(component, new[] { value }); 485_removeMethod!.Invoke(component, new[] { value });
System\ComponentModel\ReflectPropertyDescriptor.cs (15)
542return (bool)shouldSerialize.Invoke(prov, new object[] { component })!; 561return GetMethodValue.Invoke(prov, new object?[] { component }); 610ResetMethodValue.Invoke(prov, new object[] { component }); 658SetMethodValue.Invoke(prov, new object?[] { component, value }); 676return (bool)ShouldSerializeMethodValue.Invoke(prov, new object[] { component })!; 688return (bool)ShouldSerializeMethodValue.Invoke(prov, new object[] { component })!; 728return (bool)ShouldSerializeMethodValue.Invoke(component, null)!; 919return GetMethodValue.Invoke(component, null); 1041oldValue = GetMethodValue.Invoke(invokee, null); 1058ResetMethodValue.Invoke(invokee, null); 1063newValue = GetMethodValue.Invoke(invokee, null); 1102oldValue = GetMethodValue.Invoke(invokee, null); 1121SetMethodValue!.Invoke(invokee, new object?[] { value }); 1176return (bool)ShouldSerializeMethodValue.Invoke(component, null)!; 1188return (bool)ShouldSerializeMethodValue.Invoke(component, null)!;
System.Composition.TypedParts (1)
System\Composition\CompositionContextExtensions.cs (1)
76ois.Invoke(objectWithLooseImports, null);
System.Linq.Expressions (7)
System\Linq\Expressions\Interpreter\CallInstruction.cs (4)
306ret = _target.Invoke(null, args); 330ret = _target.Invoke(instance, args); 403ret = _target.Invoke(null, args); 427ret = _target.Invoke(instance, args);
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
3273_indexer.Invoke(instance, args);
System\Linq\Expressions\LambdaExpression.cs (1)
635return (LambdaExpression)create.Invoke(null, new object?[] { body, name, tailCall, parameters })!;
System\Runtime\CompilerServices\CallSite.cs (1)
107return (CallSite)method.Invoke(null, new object[] { binder })!;
System.Net.Security (5)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (5)
173Task sendTask = (Task)sendAsyncMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 179responseMessage = sendMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 217Task sendTask = (Task)sendAsyncMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 223responseMessage = sendMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 235using Stream responseStream = (Stream)readAsStreamMethod.Invoke(content, null)!;
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3937return getInstanceMethod.Invoke(null, null) as EventSource;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
110.Invoke(null, new[] { binaryFormatterDeserialize });
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
211initializeMethod.Invoke(null, null);
System.Private.DataContractSerialization (16)
System\Runtime\Serialization\CollectionDataContract.cs (3)
767_incrementCollectionCountDelegate = (IncrementCollectionCountDelegate)buildIncrementCollectionCountDelegate.Invoke(null, Array.Empty<object>())!; 773_incrementCollectionCountDelegate = (IncrementCollectionCountDelegate)buildIncrementCollectionCountDelegate.Invoke(null, Array.Empty<object>())!; 822_createGenericDictionaryEnumeratorDelegate = (CreateGenericDictionaryEnumeratorDelegate)buildCreateGenericDictionaryEnumerator.Invoke(null, Array.Empty<object>())!;
System\Runtime\Serialization\DataContract.cs (1)
1991object? types = method.Invoke(null, Array.Empty<object>());
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (1)
225_ => keyDataContract.ParseMethod!.Invoke(null, new object[] { keyString })!,
System\Runtime\Serialization\ReflectionClassWriter.cs (3)
76memberValue = getValue.Invoke(memberValue, Array.Empty<object>())!; 137classContract.OnSerializing.Invoke(obj, new object[] { contextArg }); 148classContract.OnSerialized.Invoke(obj, new object[] { contextArg });
System\Runtime\Serialization\ReflectionReader.cs (6)
155CollectionSetItemDelegate collectionSetItemDelegate = (CollectionSetItemDelegate)getCollectionSetItemDelegateMethod.Invoke(null, new object[] { collectionContract, resultCollection, isReadOnlyCollection })!; 187resultCollection = trimArraySizeMethod.Invoke(null, new object[] { resultCollection, index })!; 405classContract.OnDeserializing.Invoke(obj, new object[] { contextArg }); 416classContract.OnDeserialized.Invoke(obj, new object[] { contextArg }); 565collectionContract.AddMethod!.Invoke(resultCollection, new object?[] { key, value }); 613addMethod.Invoke(resultCollection, new object?[] { collectionItem });
System\Runtime\Serialization\SchemaExporter.cs (1)
639object? typeInfo = getMethod.Invoke(null, new object[] { schemas });
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
776return GetDefaultValueMethod.MakeGenericMethod(type).Invoke(null, Array.Empty<object>());
System.Private.Windows.Core.TestUtilities (1)
TestAccessor.cs (1)
136result = methodInfo.Invoke(_instance, args);
System.Private.Xml (13)
System\Xml\Serialization\Compilation.cs (2)
625return _methods[mapping.Key!].readMethod!.Invoke(reader, Array.Empty<object>()); 652_methods[mapping.Key!].writeMethod!.Invoke(writer, new object?[] { o });
System\Xml\Serialization\Mappings.cs (1)
1303object? typeInfo = _getSchemaMethod.Invoke(null, new object[] { _schemas });
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (4)
592addMethod.Invoke(targetCollection, arguments); 1223return method.Invoke(this, new object[] { readFunc(funcState) })!; 1690addMethod.Invoke(getOnlyList, new object[] { v }); 1736specifiedMethodInfo?.Invoke(o, new object[] { true });
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
666shouldPersist = (bool)method.Invoke(o, Array.Empty<object>())!; 698shouldPersist = (bool)method.Invoke(o, Array.Empty<object>())!;
System\Xml\Serialization\TypeExtensions.cs (1)
51returnValue = method.Invoke(null, new object[] { data });
System\Xml\Serialization\XmlSchemaExporter.cs (1)
926return (string)format.Invoke(formatter, new object[] { value })!;
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
286return _meth.Invoke(extObj, args);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
1000return _method.Invoke(_extension, args)!;
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\ObjectManager.cs (1)
793constInfo.Invoke(obj, new object?[] { info, context });
System.Security.Cryptography (6)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (5)
173Task sendTask = (Task)sendAsyncMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 179responseMessage = sendMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 217Task sendTask = (Task)sendAsyncMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 223responseMessage = sendMethod.Invoke(httpClient, new object[] { requestMessage, cancellationToken })!; 235using Stream responseStream = (Stream)readAsStreamMethod.Invoke(content, null)!;
System\Security\Cryptography\XmlKeyHelper.cs (1)
300(IEnumerable?)s_getElementsMethod.Invoke(element, Array.Empty<object>());
System.ServiceModel.NetNamedPipe.Tests (2)
NetNamedPipeBindingTest.cs (2)
25string result = (string)m.Invoke(t, new object[] { "hostname", new string('a', 128), true }); 31result = (string)m.Invoke(t, new object[] { "hostname", new string('a', 128), true });
System.ServiceModel.Primitives.Tests (3)
Security\SecurityUtilsTest.cs (3)
28method.Invoke(null, parameters); 39method.Invoke(null, parameters); 50method.Invoke(null, parameters);
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
329if ((bool)parser.Method.Invoke(parser.Target, args)) 355if ((bool)dateTimeParser.Method.Invoke(dateTimeParser.Target, args))
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (1)
213=> _sourceConstructFlagsGetter is null ? SourceConstructFlags.None : (SourceConstructFlags)_sourceConstructFlagsGetter.Invoke(compilationMappingAttribute, null)!;
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (3)
125addMethod.Invoke(collection, new object[] { element! }); 149return (TProperty)getMethodInfo.Invoke(obj, null)!; 159setMethodInfo.Invoke(obj, new object[] { value! });
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1479method?.Invoke(this, null);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionMethodItem.cs (1)
123_methodInfo.Invoke(_actionList, null);
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
67child = (Control?)method.Invoke(component, parameters: null);
System\Windows\Forms\Design\LabelDesigner.cs (1)
72int offset = (int)(info.Invoke(Component, parameters: null) ?? 0);
System.Windows.Forms.Tests (1)
System\Windows\Forms\MonthCalendarTests.cs (1)
4481typeof(MonthCalendar).GetMethod(methodName).Invoke(calendar, methodName.Contains("All") ? null : new object[] { new DateTime(2022, 1, 1) });
System.Xaml (12)
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
111return method.Invoke(null, args); 400return (IEnumerable<DictionaryEntry>)method.Invoke(null, new object[] { enumerator });
System\Xaml\Schema\XamlMemberInvoker.cs (6)
62return UnderlyingGetter.Invoke(null, new object[] { instance }); 66return UnderlyingGetter.Invoke(instance, Array.Empty<object>()); 81UnderlyingSetter.Invoke(null, new object[] { instance, value }); 85UnderlyingSetter.Invoke(instance, new object[] { value }); 137result = (bool)shouldSerializeMethod.Invoke(null, new object[] { instance }); 141result = (bool)shouldSerializeMethod.Invoke(instance, null);
System\Xaml\Schema\XamlTypeInvoker.cs (3)
88addMethod.Invoke(instance, new object[] { item }); 122addMethod.Invoke(instance, new object[] { key, item }); 225return (IEnumerator)getEnumMethod.Invoke(instance, Array.Empty<object>());
System\Xaml\XamlObjectReader.cs (1)
714bool isReadOnly = (bool)xamlType.IsReadOnlyMethod.Invoke(propertyValue, null);
System.Xaml.Tests (9)
System\Xaml\XamlBackgroundReaderTests.cs (2)
252nextMethod.Invoke(reader, Array.Empty<object>()); 273addLineInfoMethod.Invoke(reader, new object[] { 1, 2 });
System\Xaml\XamlNodeListTests.cs (4)
579dispose.Invoke(writer, new object[] { false }); 642addMethod.Invoke(list, new object?[] { null, null }); 662addLineInfoMethod.Invoke(list, new object[] { 1, 2 }); 681indexMethod.Invoke(list, new object[] { 1 });
System\Xaml\XamlNodeQueueTests.cs (1)
491dispose.Invoke(writer, new object[] { false });
System\Xaml\XamlTypeTests.cs (2)
941return (MethodInfo)underlyingGetter.Invoke(member, Array.Empty<object>())!; 947return (MethodInfo)underlyingSetter.Invoke(member, Array.Empty<object>())!;
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
240if (syntaxTreeOptionsProviderTryGetDiagnosticValueMethod.Invoke(syntaxTreeOptionsProvider, parameters) is true &&
VisualBasicRuntimeTest (1)
Program.cs (1)
149showMethod.Invoke(dialog, null);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
1095methodInfo?.Invoke(control, new object[] { EventArgs.Empty });
xunit.assert (1)
Sdk\ArgumentFormatter.cs (1)
281 return ((string?)toString.Invoke(value, EmptyObjects)) ?? "null";