84 references to Invoke
Aspire.Hosting.Tests (2)
ResourceNotificationTests.cs (1)
1831return constructor.Invoke(arguments);
WithEndpointTests.cs (1)
128var endpoint = Assert.IsType<EndpointAnnotation>(constructor!.Invoke([ProtocolType.Tcp, "http", null, "http", null, null, null, true]));
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (2)
82return (CodeDomProvider)ci.Invoke(new object[] { _providerOptions }); 97return (CodeDomProvider)constructor.Invoke(new object[] { providerOptions });
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
164instances[cnt] = (DelegatingHandler)_handlerCtors[cnt].Invoke(Array.Empty<Type>());
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Http\Routing\src\ParameterPolicyActivator.cs (1)
143return (IParameterPolicy)activationConstructor.Invoke(parameters);
Microsoft.AspNetCore.DataProtection (1)
SimpleActivator.cs (1)
52return ctorWhichTakesServiceProvider.Invoke(new[] { _services });
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
EnumerableWrapperProvider.cs (1)
68return _wrappingTypeConstructor.Invoke(new[] { original, _wrapperProvider });
Microsoft.AspNetCore.Routing (1)
ParameterPolicyActivator.cs (1)
143return (IParameterPolicy)activationConstructor.Invoke(parameters);
Microsoft.Build (2)
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
87var targetInstanceChild = (ITranslatable)parameterlessConstructor.Invoke(Array.Empty<object>());
Evaluation\Expander.Function.cs (1)
1326functionResult = ((ConstructorInfo)memberInfo).Invoke(args);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.Build.Tasks.Core (1)
StateFileBase.cs (1)
140retVal = constructor.Invoke([translator]) as T;
Microsoft.CodeAnalysis (1)
InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\ExcepInfo.cs (1)
82exception = (Exception)ctor.Invoke(new object[] { message });
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
608return constructor.Invoke(parameterValues);
Microsoft.Extensions.VectorData.Abstractions (1)
ProviderServices\Filter\FilterTranslatorBase.cs (1)
397var constantValue = constructor.Invoke(constantArguments);
Microsoft.Maui.Controls.Xaml (1)
CreateValuesVisitor.cs (1)
238 return ctorInfo.Invoke(arguments);
Microsoft.ML.Core (4)
CommandLine\CmdParser.cs (2)
1470def = _ctorCustom != null ? _ctorCustom.Invoke(null) : null; 1781res = _ctorCustom.Invoke(null);
ComponentModel\ComponentCatalog.cs (2)
245return Constructor.Invoke(ctorArgs); 319return ctor.Invoke(null);
Microsoft.ML.Data (7)
Data\DataViewUtils.cs (1)
875return (OutPipe)constructor.Invoke(new object[] { pool });
DataView\CacheDataView.cs (1)
1302return (ColumnCache)constructor.Invoke(new object[] { parent, input, srcCol, waiter });
Prediction\Calibrator.cs (1)
831object genericInstance = genericCtor.Invoke(new object[] { env, ctx, predictor, calibrator });
Scorers\PredictionTransformer.cs (2)
791var genericInstance = genericCtor.Invoke(new object[] { env, ctx, host, model }); 802var genericInstance = genericCtor.Invoke(new object[] { env, ctx, host, model });
Transforms\Hashing.cs (1)
1521return (InvertHashHelper)constructorInfo.Invoke(new object[] { row, ex, invertHashMaxCount, dstGetter });
Transforms\RowShufflingTransformer.cs (1)
389return (ShufflePipe)constructor.Invoke(new object[] { bufferSize, getter });
Microsoft.ML.Transforms (1)
GroupTransform.cs (1)
457return cons.Invoke(new object[] { row, col }) as KeepColumnAggregator;
Microsoft.NET.Sdk.Publish.Tasks (1)
MsDeploy\DynamicAssembly.cs (1)
130createdObject = constructorInfoObj.Invoke(arguments);
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
251value = ctor.Invoke([
Microsoft.TestPlatform.CrossPlatEngine (2)
Client\TestLoggerManager.cs (1)
575var logger = constructorInfo?.Invoke([]);
DataCollection\InProcDataCollector.cs (1)
144object? obj = constructorInfo?.Invoke([]);
Microsoft.Web.XmlTransform (1)
NamedTypeFactory.cs (1)
60return constructor.Invoke(new object[] { }) as ObjectType;
PresentationCore (2)
MS\Internal\TextFormatting\FullTextLine.cs (2)
414return (Exception)constructor.Invoke( 425return (Exception)constructor.Invoke(
PresentationFramework (6)
MS\Internal\Annotations\Serializer.cs (1)
87IXmlSerializable serializable = (IXmlSerializable)_ctor.Invoke(Array.Empty<object>());
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (2)
81return (T)ctor.Invoke(new[] { this }); 211vftblT = (T)typeof(T).GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.CreateInstance, null, new[] { typeof(IntPtr) }, null).Invoke(new object[] { thisPtr });
System\Windows\Data\ListCollectionView.cs (1)
718return AddNewCommon(_itemConstructor.Invoke(null));
System\Windows\Markup\BamlRecordReader.cs (1)
1529instance = info.Invoke(paramArray);
System\Windows\Standard\ErrorCodes.cs (1)
442e = cons.Invoke(new object[] { message }) as Exception;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
147return (T?)constructorInfo.Invoke(args);
System.CodeDom (2)
System\CodeDom\Compiler\CompilerInfo.cs (2)
56return (CodeDomProvider)ci.Invoke(new object[] { _providerOptions }); 70return (CodeDomProvider)constructor.Invoke(new object[] { providerOptions });
System.CommandLine (1)
Binding\ArgumentConverter.DefaultValues.cs (1)
36return (IList)ctor.Invoke(null);
System.ComponentModel.Composition (1)
Microsoft\Internal\ReflectionInvoke.cs (1)
18return constructor.Invoke(arguments);
System.ComponentModel.TypeConverter (5)
System\ComponentModel\AttributeCollection.cs (1)
272attr = (Attribute)ci.Invoke(Array.Empty<object>());
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
130return ((ConstructorInfo)MemberInfo).Invoke(translatedArguments);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
251obj = objectType.GetConstructor(argTypes)?.Invoke(args); 275obj = objectType.GetConstructor(argTypes)?.Invoke(args); 302return objectType.GetConstructor(s_typeConstructor)?.Invoke(new object[] { callingType })
System.Configuration.ConfigurationManager (6)
System\Configuration\MgmtConfigurationRecord.cs (2)
148(ConfigurationSection)ctor.Invoke(null); 266(ConfigurationSectionGroup)ctor.Invoke(null);
System\Configuration\RuntimeConfigurationRecord.cs (1)
146(ConfigurationSection)_sectionCtor.Invoke(null);
System\Diagnostics\TraceUtils.cs (3)
60newObject = ctorInfo.Invoke(Array.Empty<object>()); 87newObject = ctorInfo.Invoke(new object[] { initializeData }); 107newObject = ctorInfos[i].Invoke(new object[] { convertedInitializeData });
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Principal.cs (1)
785p = (Principal)CI.Invoke(new object[] { ctx });
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\NewInstruction.cs (2)
34ret = _constructor.Invoke(args); 93ret = _constructor.Invoke(args);
System.Net.NameResolution (1)
System\Net\DnsSocket.cs (1)
100socket = reflection.Constructor.Invoke(new object[]
System.Private.CoreLib (2)
Internal\Reflection\Extensions\NonPortable\CustomAttributeInstantiator.cs (1)
77Attribute newAttribute = (Attribute)(matchingCtor.Invoke(invokeArguments));
System\ActivatorImplementation.cs (1)
45object result = constructor.Invoke(Array.Empty<object>());
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\ClassDataContract.cs (1)
179obj = ci.Invoke(Array.Empty<object>());
System\Runtime\Serialization\ReflectionReader.cs (4)
338obj = iSerializableConstructor.Invoke(new object[] { serializationInfo, streamingContext }); 484var newArray = ci.Invoke(s_arrayConstructorArguments); 491object newGenericDict = ci.Invoke(Array.Empty<object>()); 509object newCollection = ci.Invoke(Array.Empty<object>());
System\Runtime\Serialization\XmlDataContract.cs (1)
378o = ctor.Invoke(Array.Empty<object>());
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
251value = ctor.Invoke([
System.Private.Windows.Core.TestUtilities (1)
ReflectionHelper.cs (1)
41T obj = (T)ctor.Invoke([]);
System.Private.Xml (2)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1418obj = ci.Invoke(Array.Empty<object>());
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
48public object CreateObject() { return _constrInfo.Invoke(Array.Empty<object>()); }
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1719tab = (PropertyTab)constructor.Invoke([parameter]);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1615addNewItem = _itemConstructor.Invoke(null);
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
330(Action<object>)s_actionCtor.Invoke(new object[] { null, constPtr });