375 references to EmptyTypes
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
119returnVal = _taskTResultGetMethod.Invoke(task, Type.EmptyTypes);
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
38private static readonly Type[] _getDocumentsParameterTypes = Type.EmptyTypes;
Microsoft.AspNetCore.Components (1)
DefaultComponentActivator.cs (1)
45factory = ActivatorUtilities.CreateFactory(componentType, Type.EmptyTypes);
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (1)
65var _ when type.IsAssignableTo(typeof(ICollection<TElement>)) && type.GetConstructor(Type.EmptyTypes) != null => true,
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (2)
388Type.EmptyTypes, 491Type.EmptyTypes,
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
61var _ when type.IsAssignableTo(typeof(IDictionary<TKey, TValue>)) && type.GetConstructor(Type.EmptyTypes) != null => true, 143var _ when type.IsAssignableTo(typeof(IDictionary<TKey, TValue>)) && type.GetConstructor(Type.EmptyTypes) != null =>
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\ManagedAlgorithmHelpers.cs (1)
59if (type.GetConstructor(Type.EmptyTypes) == null)
SimpleActivator.cs (1)
41var ctorParameterless = implementationType.GetConstructor(Type.EmptyTypes);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Infrastructure\TestHelpers.cs (1)
43var property = typeToConvert.GetProperty("Descriptor", BindingFlags.Static | BindingFlags.Public, binder: null, typeof(MessageDescriptor), Type.EmptyTypes, modifiers: null);
Microsoft.AspNetCore.Http.Extensions (8)
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (1)
65var _ when type.IsAssignableTo(typeof(ICollection<TElement>)) && type.GetConstructor(Type.EmptyTypes) != null => true,
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (2)
388Type.EmptyTypes, 491Type.EmptyTypes,
src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
61var _ when type.IsAssignableTo(typeof(IDictionary<TKey, TValue>)) && type.GetConstructor(Type.EmptyTypes) != null => true, 143var _ when type.IsAssignableTo(typeof(IDictionary<TKey, TValue>)) && type.GetConstructor(Type.EmptyTypes) != null =>
src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (3)
54var getAwaiterMethod = type.GetMethod("GetAwaiter", Everything, Type.EmptyTypes); 65var isCompletedProperty = awaiterType.GetProperty("IsCompleted", Everything, binder: null, returnType: typeof(bool), types: Type.EmptyTypes, modifiers: null); 93var getResultMethod = awaiterType.GetMethod("GetResult", Everything, Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.Core (10)
Controllers\ControllerActivatorProvider.cs (1)
58var typeActivator = ActivatorUtilities.CreateFactory(controllerType, Type.EmptyTypes);
Filters\MiddlewareFilterConfigurationProvider.cs (1)
73return !modelType.IsAbstract && modelType.GetConstructor(Type.EmptyTypes) != null;
Infrastructure\TypeActivatorCache.cs (1)
16(type) => ActivatorUtilities.CreateFactory(type, Type.EmptyTypes);
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
36_factory = ActivatorUtilities.CreateFactory(binderType, Type.EmptyTypes);
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
191if (modelType.IsAbstract || modelType.GetConstructor(Type.EmptyTypes) == null)
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
472if (modelType.IsAbstract || modelType.GetConstructor(Type.EmptyTypes) == null)
src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (3)
54var getAwaiterMethod = type.GetMethod("GetAwaiter", Everything, Type.EmptyTypes); 65var isCompletedProperty = awaiterType.GetProperty("IsCompleted", Everything, binder: null, returnType: typeof(bool), types: Type.EmptyTypes, modifiers: null); 93var getResultMethod = awaiterType.GetMethod("GetResult", Everything, Type.EmptyTypes);
TypeFilterAttribute.cs (1)
67_factory = ActivatorUtilities.CreateFactory(ImplementationType, argumentTypes ?? Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.Razor (1)
Infrastructure\DefaultTagHelperActivator.cs (1)
26private static readonly ObjectFactory _objectFactory = ActivatorUtilities.CreateFactory(typeof(TTagHelper), Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorHotReloadTest.cs (3)
26hotReload.ClearCache(Type.EmptyTypes); 43hotReload.ClearCache(Type.EmptyTypes); 65hotReload.ClearCache(Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageModelActivatorProvider.cs (1)
32var factory = ActivatorUtilities.CreateFactory(modelTypeInfo, Type.EmptyTypes);
Microsoft.AspNetCore.OpenApi (3)
src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (3)
54var getAwaiterMethod = type.GetMethod("GetAwaiter", Everything, Type.EmptyTypes); 65var isCompletedProperty = awaiterType.GetProperty("IsCompleted", Everything, binder: null, returnType: typeof(bool), types: Type.EmptyTypes, modifiers: null); 93var getResultMethod = awaiterType.GetMethod("GetResult", Everything, Type.EmptyTypes);
Microsoft.AspNetCore.ResponseCompression (1)
CompressionProviderFactory.cs (1)
27return (ICompressionProvider)ActivatorUtilities.CreateInstance(serviceProvider, ProviderType, Type.EmptyTypes);
Microsoft.AspNetCore.Routing (1)
Builder\EndpointFilterExtensions.cs (1)
45filterFactory = ActivatorUtilities.CreateFactory(typeof(TFilterType), Type.EmptyTypes);
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (3)
54var getAwaiterMethod = type.GetMethod("GetAwaiter", Everything, Type.EmptyTypes); 65var isCompletedProperty = awaiterType.GetProperty("IsCompleted", Everything, binder: null, returnType: typeof(bool), types: Type.EmptyTypes, modifiers: null); 93var getResultMethod = awaiterType.GetMethod("GetResult", Everything, Type.EmptyTypes);
Microsoft.AspNetCore.SignalR.Client.Core (5)
HubConnection.cs (1)
2422return Type.EmptyTypes;
HubConnectionExtensions.cs (2)
36return hubConnection.On(methodName, Type.EmptyTypes, args => handler()); 231return hubConnection.On(methodName, Type.EmptyTypes, args => handler());
HubConnectionExtensions.OnResult.cs (2)
59return hubConnection.On(methodName, Type.EmptyTypes, args => handler()); 75return hubConnection.On(methodName, Type.EmptyTypes, args => handler());
Microsoft.AspNetCore.SignalR.Core (4)
Internal\DefaultHubActivator.cs (1)
13private static readonly Lazy<ObjectFactory> _objectFactory = new Lazy<ObjectFactory>(() => ActivatorUtilities.CreateFactory(typeof(THub), Type.EmptyTypes));
src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (3)
54var getAwaiterMethod = type.GetMethod("GetAwaiter", Everything, Type.EmptyTypes); 65var isCompletedProperty = awaiterType.GetProperty("IsCompleted", Everything, binder: null, returnType: typeof(bool), types: Type.EmptyTypes, modifiers: null); 93var getResultMethod = awaiterType.GetMethod("GetResult", Everything, Type.EmptyTypes);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (2)
35if (type.GetDeclaredMethod("ToString", Type.EmptyTypes) != null) 160var method = currentType.GetDeclaredMethod(memberName, Type.EmptyTypes);
Microsoft.CSharp (4)
Microsoft\CSharp\RuntimeBinder\CSharpInvokeBinder.cs (1)
36Type[] ICSharpInvokeOrInvokeMemberBinder.TypeArguments => Type.EmptyTypes;
Microsoft\CSharp\RuntimeBinder\CSharpInvokeConstructorBinder.cs (1)
35public Type[] TypeArguments => Type.EmptyTypes;
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
280PropertyInfo property = memberInfo.GetProperty("MetadataToken", typeof(int), Type.EmptyTypes);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1000agg.SetHasPubNoArgCtor(type.GetConstructor(Type.EmptyTypes) != null);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
172argumentTypes = Type.EmptyTypes;
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
DependencyInjectionPooledObjectPolicy.cs (1)
21_factory = ActivatorUtilities.CreateFactory(typeof(TImplementation), Type.EmptyTypes);
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
475return Type.EmptyTypes;
Microsoft.ML.Core (9)
CommandLine\CmdParser.cs (1)
1469_ctorCustom = ItemValueType.GetConstructor(Type.EmptyTypes);
ComponentModel\ComponentCatalog.cs (7)
225CtorTypes = attr.CtorTypes ?? Type.EmptyTypes; 312var ctor = ArgType.GetConstructor(Type.EmptyTypes); 475if ((ctor = loaderType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, parmTypes ?? Type.EmptyTypes, null)) == null) 477if ((ctor = loaderType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, parmTypesWithEnv ?? Type.EmptyTypes, null)) != null) 482if ((create = FindCreateMethod(instType, loaderType, parmTypes ?? Type.EmptyTypes)) == null) 484if ((create = FindCreateMethod(instType, loaderType, parmTypesWithEnv ?? Type.EmptyTypes)) != null) 662var meth = loaderType.GetMethod("Create", BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy, null, parmTypes ?? Type.EmptyTypes, null);
ComponentModel\LoadableClassAttribute.cs (1)
194types = Type.EmptyTypes;
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
3006parentType.GetConstructor(Type.EmptyTypes) == null || 3283parentType.GetConstructor(Type.EmptyTypes) == null || 4405ParentContext.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
896typeof(IObjectReference).GetMethod("As", Type.EmptyTypes).MakeGenericMethod(helperType.FindVftblType())
System\Windows\Data\ListCollectionView.cs (1)
692_itemConstructor = itemType.GetConstructor(Type.EmptyTypes);
System.ComponentModel.Composition (8)
Microsoft\Internal\GenerationServices.cs (1)
39private static readonly ConstructorInfo ObjectCtor = typeof(object).GetConstructor(Type.EmptyTypes)!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (3)
75private static readonly MethodInfo ObjectGetType = typeof(object).GetMethod("GetType", Type.EmptyTypes)!; 76private static readonly ConstructorInfo ObjectCtor = typeof(object).GetConstructor(Type.EmptyTypes)!; 323Type.EmptyTypes, null, null);
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (2)
32return Type.EmptyTypes; 181if (!type.IsValueType && ((type.GetConstructor(Type.EmptyTypes) == null) || type.IsAbstract))
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
145ConstructorInfo? constructor = ImportType.ActualType.GetConstructor(Type.EmptyTypes);
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (1)
373_constructor = GetPartType().GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, Type.EmptyTypes, null);
System.ComponentModel.TypeConverter (9)
System\ComponentModel\AttributeCollection.cs (1)
269ConstructorInfo? ci = reflect.UnderlyingSystemType.GetConstructor(Type.EmptyTypes);
System\ComponentModel\BindingList.cs (1)
88return itemType.GetConstructor(BindingFlags, null, Type.EmptyTypes, null) != null;
System\ComponentModel\ReflectPropertyDescriptor.cs (6)
335_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 390args = Type.EmptyTypes; 427PropertyInfo? p = t.GetProperty(name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, null); 448_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 482args = Type.EmptyTypes; 818memberInfo = currentReflectType.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>());
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
273argTypes = Type.EmptyTypes;
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
16private readonly Type[] _emptyTypeArray = Type.EmptyTypes;
System.Configuration.ConfigurationManager (1)
System\Configuration\TypeUtil.cs (1)
148ConstructorInfo ctor = type.GetConstructor(BindingFlags, null, CallingConventions.HasThis, Type.EmptyTypes,
System.Linq.Expressions (7)
System\Dynamic\Utils\DelegateHelpers.cs (1)
126Type[] thunkTypeArgs = thunkTypeArgCount == 0 ? Type.EmptyTypes : new Type[thunkTypeArgCount];
System\Linq\Expressions\Common\CachedReflectionInfo.cs (1)
49public static MethodInfo RuntimeOps_CreateRuntimeVariables => field ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.CreateRuntimeVariables), Type.EmptyTypes)!;
System\Linq\Expressions\Compiler\CompilerScope.cs (1)
342lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(Type.EmptyTypes)!);
System\Linq\Expressions\Compiler\ILGen.cs (1)
17private static readonly MethodInfo s_nullableGetValueOrDefault = typeof(Nullable<>).GetMethod("GetValueOrDefault", Type.EmptyTypes)!;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
783MethodInfo toString = node.GetType().GetMethod("ToString", Type.EmptyTypes)!;
System\Linq\Expressions\LambdaExpression.cs (2)
24private static readonly MethodInfo s_expressionCompileMethodInfo = typeof(Expression<>).GetMethod("Compile", Type.EmptyTypes)!; 127return typeof(LambdaExpression).GetMethod("Compile", Type.EmptyTypes)!;
System.Private.CoreLib (46)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
98ConstructorInfo con = excType.GetConstructor(Type.EmptyTypes) ?? throw new ArgumentException(SR.Arg_NoDefCTorWithoutTypeName, nameof(excType));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
131return Type.EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedFunctionPointerType.cs (1)
82return builder.Count == 0 ? EmptyTypes : builder.ToArray();
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (2)
53public virtual Type[] GetOptionalCustomModifiers() => Type.EmptyTypes; 54public virtual Type[] GetRequiredCustomModifiers() => Type.EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Reflection\PropertyInfo.cs (2)
37public virtual Type[] GetOptionalCustomModifiers() => Type.EmptyTypes; 38public virtual Type[] GetRequiredCustomModifiers() => Type.EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (2)
23Types = classes ?? Type.EmptyTypes; 32Types = Type.EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureGenericParameterType.cs (2)
35public sealed override Type[] GetGenericArguments() => EmptyTypes; 36public sealed override Type[] GenericTypeArguments => EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureHasElementType.cs (2)
36public sealed override Type[] GetGenericArguments() => EmptyTypes; 37public sealed override Type[] GenericTypeArguments => EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
16public virtual Type[] GenericTypeParameters => IsGenericTypeDefinition ? GetGenericArguments() : EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
175Type.EmptyTypes, // parameters
src\libraries\System.Private.CoreLib\src\System\Type.cs (7)
79public virtual Type[] GenericTypeArguments => (IsGenericType && !IsGenericTypeDefinition) ? GetGenericArguments() : EmptyTypes; 82public virtual Type[] GetOptionalCustomModifiers() => EmptyTypes; 83public virtual Type[] GetRequiredCustomModifiers() => EmptyTypes; 156get => GetConstructorImpl(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, null, CallingConventions.Any, EmptyTypes, null); 175/// <see cref="EmptyTypes"/>. 317/// An empty array of <see cref="Type"/> objects (as provided by the <see cref="EmptyTypes"/> field) to get a method that takes no parameters. 367/// An empty array of <see cref="Type"/> objects (as provided by the <see cref="EmptyTypes"/> field) to get a method that takes no parameters.
src\System\Attribute.CoreCLR.cs (1)
394return Type.EmptyTypes;
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (3)
240internal override Type[] GetParameterTypes() => m_parameterTypes ??= Type.EmptyTypes; 278m_parameterTypes ??= Type.EmptyTypes; 508public override Type[] GetGenericArguments() => m_inst ?? Type.EmptyTypes;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (5)
744return EmptyTypes; 1051public override Type[] GetGenericArguments() => m_inst ?? EmptyTypes; 1262BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, EmptyTypes, null)!); 1265BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, EmptyTypes, null); 1268con ??= m_typeParent!.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, EmptyTypes, null);
src\System\Reflection\Emit\SymbolMethod.cs (1)
42m_parameterTypes = Type.EmptyTypes;
src\System\Reflection\MdFieldInfo.cs (2)
127return Type.EmptyTypes; 132return Type.EmptyTypes;
src\System\Reflection\ModifiedType.CoreCLR.cs (1)
33_typeSignature._signature.GetCustomModifiersAtOffset(_typeSignature._offset, required) : EmptyTypes;
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1578attributeType.GetProperty(name, type, Type.EmptyTypes)) ??
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
450RuntimeMethodHandle.GetMethodInstantiationPublic(this) ?? Type.EmptyTypes;
src\System\Reflection\RuntimeParameterInfo.cs (2)
438Type.EmptyTypes : 445Type.EmptyTypes :
src\System\RuntimeHandles.cs (2)
230Debug.Assert(type.GetConstructor(Type.EmptyTypes) is ConstructorInfo c && c.IsPublic, 254Debug.Assert(type.GetConstructor(Type.EmptyTypes) is ConstructorInfo c && c.IsPublic,
src\System\RuntimeType.CoreCLR.cs (5)
3546return types ?? EmptyTypes; 3640return constraints ?? EmptyTypes; 3759return EmptyTypes; 3774return EmptyTypes; 3847Type[] argsType = args.Length != 0 ? new Type[args.Length] : EmptyTypes;
System.Private.DataContractSerialization (25)
System\Runtime\Serialization\ClassDataContract.cs (2)
349type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, Type.EmptyTypes) != null); 1263ConstructorInfo? ctor = type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, Type.EmptyTypes);
System\Runtime\Serialization\CodeGenerator.cs (1)
66s_objectToString = typeof(object).GetMethod("ToString", Type.EmptyTypes);
System\Runtime\Serialization\CollectionDataContract.cs (3)
861MethodInfo? getCurrentMethod = enumeratorType.GetMethod(Globals.GetCurrentMethodName, BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes); 1108defaultCtor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, Type.EmptyTypes); 1349getEnumeratorMethod = type.GetMethod(Globals.GetEnumeratorMethodName, BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes);
System\Runtime\Serialization\DataContract.cs (1)
2001MethodInfo? method = type.GetMethod(methodName, BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public, Type.EmptyTypes);
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (3)
110public static ConstructorInfo ExtensionDataObjectCtor => field ??= typeof(ExtensionDataObject).GetConstructor(Globals.ScanAllMembers, Type.EmptyTypes)!; 198s_isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, Type.EmptyTypes); 405s_writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.ScanAllMembers, Type.EmptyTypes);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
611constructor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, Type.EmptyTypes)!; 615constructor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, Type.EmptyTypes)!;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
381MethodInfo? moveNextMethod = enumeratorType.GetMethod(Globals.MoveNextMethodName, BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes); 382MethodInfo? getCurrentMethod = enumeratorType.GetMethod(Globals.GetCurrentMethodName, BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes);
System\Runtime\Serialization\ReflectionClassWriter.cs (1)
75MethodInfo getValue = memberType.GetMethod("get_Value", Type.EmptyTypes)!;
System\Runtime\Serialization\ReflectionReader.cs (1)
490ConstructorInfo ci = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes)!;
System\Runtime\Serialization\XmlDataContract.cs (1)
252ConstructorInfo? ctor = UnderlyingType.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, Type.EmptyTypes);
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (5)
50s_writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.ScanAllMembers, Type.EmptyTypes); 153s_isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, Type.EmptyTypes); 207internal static ConstructorInfo ExtensionDataObjectCtor => field ??= typeof(ExtensionDataObject).GetConstructor(Globals.ScanAllMembers, Type.EmptyTypes)!; 218s_hashtableCtor = Globals.TypeOfHashtable.GetConstructor(Globals.ScanAllMembers, Type.EmptyTypes); 274s_resetCollectionMemberInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ResetCollectionMemberInfo", Globals.ScanAllMembers, Type.EmptyTypes);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
647constructor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes)!;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
460MethodInfo? moveNextMethod = enumeratorType.GetMethod(Globals.MoveNextMethodName, BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes); 461MethodInfo? getCurrentMethod = enumeratorType.GetMethod(Globals.GetCurrentMethodName, BindingFlags.Instance | BindingFlags.Public, Type.EmptyTypes);
System.Private.Xml (166)
System\Xml\Serialization\CodeGenerator.cs (1)
304Type.EmptyTypes
System\Xml\Serialization\CodeIdentifier.cs (1)
240Type[] arguments = t.IsGenericType || t.ContainsGenericParameters ? t.GetGenericArguments() : Type.EmptyTypes;
System\Xml\Serialization\Models.cs (1)
300_checkShouldPersistMethodInfo = memberInfo.DeclaringType!.GetMethod($"ShouldSerialize{memberInfo.Name}", Type.EmptyTypes);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1326type.GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly, null, Type.EmptyTypes, null);
System\Xml\Serialization\SourceInfo.cs (1)
228Type.EmptyTypes
System\Xml\Serialization\Types.cs (3)
1246ConstructorInfo? ctor = type.GetConstructor(BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic, Type.EmptyTypes); 1274MethodInfo? enumerator = type.GetMethod("GetEnumerator", Type.EmptyTypes); 1298enumerator = type.GetMethod("System.Collections.IEnumerable.GetEnumerator", BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic, Type.EmptyTypes);
System\Xml\Serialization\XmlSerializationILGen.cs (18)
163Type.EmptyTypes, 176Type.EmptyTypes 277Type.EmptyTypes); 281Type.EmptyTypes 286Type.EmptyTypes, 294Type.EmptyTypes 298Type.EmptyTypes, 322Type.EmptyTypes 394Type.EmptyTypes 422Type.EmptyTypes 462Type.EmptyTypes 486Type.EmptyTypes 498Type.EmptyTypes, 504Type.EmptyTypes 518Type.EmptyTypes, 524Type.EmptyTypes 538Type.EmptyTypes 544Type.EmptyTypes,
System\Xml\Serialization\XmlSerializationReaderILGen.cs (96)
191Type.EmptyTypes); 228ilg.BeginMethod(typeof(void), "InitIDs", Type.EmptyTypes, Array.Empty<string>(), 233Type.EmptyTypes 238Type.EmptyTypes 285Type.EmptyTypes 343ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(), 392Type.EmptyTypes, 401Type.EmptyTypes 406Type.EmptyTypes 521Type.EmptyTypes 536Type.EmptyTypes 546Type.EmptyTypes 561Type.EmptyTypes 590Type.EmptyTypes 635Type.EmptyTypes, 650Type.EmptyTypes 655Type.EmptyTypes 699Type.EmptyTypes 704Type.EmptyTypes 715Type.EmptyTypes 720Type.EmptyTypes 749Type.EmptyTypes 754Type.EmptyTypes 765Type.EmptyTypes 770Type.EmptyTypes 814Type.EmptyTypes 819Type.EmptyTypes 872Type.EmptyTypes 877Type.EmptyTypes 888Type.EmptyTypes 893Type.EmptyTypes 964Type.EmptyTypes, 975Type.EmptyTypes 1183Type.EmptyTypes 1188Type.EmptyTypes 1213Type.EmptyTypes 1227Type.EmptyTypes 1292Type.EmptyTypes)!; 1350Type.EmptyTypes 1355Type.EmptyTypes 1614Type.EmptyTypes 1619Type.EmptyTypes 1629Type.EmptyTypes 1638Type.EmptyTypes 1652Type.EmptyTypes 1668Type.EmptyTypes 1681Type.EmptyTypes 1702Type.EmptyTypes 1707Type.EmptyTypes 1745Type.EmptyTypes 1750Type.EmptyTypes 1755Type.EmptyTypes 1810Type.EmptyTypes 1815Type.EmptyTypes 1874Type.EmptyTypes 1879Type.EmptyTypes 1884Type.EmptyTypes 1900Type.EmptyTypes 1916Type.EmptyTypes 1949Type.EmptyTypes 1965Type.EmptyTypes 2078Type.EmptyTypes 2083Type.EmptyTypes 2237Type.EmptyTypes 2242Type.EmptyTypes 2269Type.EmptyTypes 2274Type.EmptyTypes 2325Type.EmptyTypes 2330Type.EmptyTypes 2335Type.EmptyTypes 2369Type.EmptyTypes 2374Type.EmptyTypes 2509Type.EmptyTypes 2851Type.EmptyTypes 2887Type.EmptyTypes 2892Type.EmptyTypes 2908Type.EmptyTypes 2918Type.EmptyTypes 2930Type.EmptyTypes 2941Type.EmptyTypes 3001Type.EmptyTypes 3024Type.EmptyTypes 3029Type.EmptyTypes 3038Type.EmptyTypes 3055Type.EmptyTypes 3060Type.EmptyTypes 3070Type.EmptyTypes 3094Type.EmptyTypes 3135Type.EmptyTypes 3140Type.EmptyTypes 3200Type.EmptyTypes 3353Type.EmptyTypes 3358Type.EmptyTypes 3378Type.EmptyTypes 3383Type.EmptyTypes 3600Type.EmptyTypes
System\Xml\Serialization\XmlSerializationWriterILGen.cs (33)
33Type.EmptyTypes); 89ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(), 315Type.EmptyTypes 368Type.EmptyTypes 376Type.EmptyTypes 559Type.EmptyTypes 579Type.EmptyTypes 703Type.EmptyTypes 804Type.EmptyTypes 847Type.EmptyTypes 870Type.EmptyTypes 897Type.EmptyTypes 962Type.EmptyTypes 1177Type.EmptyTypes 1196Type.EmptyTypes 1228Type.EmptyTypes 1292Type.EmptyTypes 1297Type.EmptyTypes 1308Type.EmptyTypes 1328Type.EmptyTypes 1492Type.EmptyTypes)!; 1503Type.EmptyTypes)!; 1511Type.EmptyTypes)!; 1530Type.EmptyTypes)!; 1714Type.EmptyTypes 1719Type.EmptyTypes 1784Type.EmptyTypes 1789Type.EmptyTypes 1883Type.EmptyTypes 1907Type.EmptyTypes 2098Type.EmptyTypes 2360Type.EmptyTypes 2468Type.EmptyTypes)!;
System\Xml\Serialization\XmlSerializer.cs (2)
179public XmlSerializer(Type type, XmlRootAttribute? root) : this(type, null, Type.EmptyTypes, root, null, null) 191public XmlSerializer(Type type, XmlAttributeOverrides? overrides) : this(type, overrides, Type.EmptyTypes, null, null, null)
System\Xml\Serialization\XmlSerializerFactory.cs (2)
32return CreateSerializer(type, null, Type.EmptyTypes, root, null, null); 46return CreateSerializer(type, overrides, Type.EmptyTypes, null, null, null);
System\Xml\Xsl\IlGen\GenerateHelper.cs (3)
160public static readonly ConstructorInfo NonUserCode = typeof(DebuggerNonUserCodeAttribute).GetConstructor(Type.EmptyTypes)!; 162public static readonly ConstructorInfo StepThrough = typeof(DebuggerStepThroughAttribute).GetConstructor(Type.EmptyTypes)!; 163public static readonly ConstructorInfo Transparent = typeof(SecurityTransparentAttribute).GetConstructor(Type.EmptyTypes)!;
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
27_constrInfo = ebType.GetConstructor(Type.EmptyTypes)!;
System\Xml\Xsl\XmlIlGenerator.cs (3)
132MethodInfo methExec = _module.DefineMethod("Execute", typeof(void), Type.EmptyTypes, Array.Empty<string>(), XmlILMethodAttributes.NonUser); 138MethodInfo methRoot = _module.DefineMethod("Root", typeof(void), Type.EmptyTypes, Array.Empty<string>(), methAttrs); 261methInfo = _module!.DefineMethod(ndRef.DebugName!.ToString(), typReturn, Type.EmptyTypes, Array.Empty<string>(), methAttrs);
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
194if (baseType.GetConstructor(Type.EmptyTypes) == null) 290ConstructorInfo baseCtor = _proxyBaseType.GetConstructor(Type.EmptyTypes)!;
System.Reflection.Emit (12)
System\Reflection\Emit\ArrayMethod.cs (1)
35_parameterTypes = Type.EmptyTypes;
System\Reflection\Emit\EnumBuilderImpl.cs (1)
97public override Type[] GetInterfaces() => EmptyTypes;
System\Reflection\Emit\FieldBuilderImpl.cs (2)
112public override Type[] GetRequiredCustomModifiers() => _requiredCustomModifiers ?? Type.EmptyTypes; 114public override Type[] GetOptionalCustomModifiers() => _optionalCustomModifiers ?? Type.EmptyTypes;
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
70_interfaces == null ? EmptyTypes : _interfaces.ToArray();
System\Reflection\Emit\MethodBuilderImpl.cs (1)
274public override Type[] GetGenericArguments() => _typeParameters ?? Type.EmptyTypes;
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
836return Type.EmptyTypes;
System\Reflection\Emit\TypeBuilderImpl.cs (5)
207BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, EmptyTypes, null)!); 211con = _typeParent.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, EmptyTypes, null); 585public override Type[] GenericTypeParameters => _typeParameters ?? EmptyTypes; 586public override Type[] GetGenericArguments() => _typeParameters ?? EmptyTypes; 712Type[] parameterTypes = method.ParameterTypes ?? EmptyTypes;
System.Reflection.MetadataLoadContext (8)
System\Reflection\TypeLoading\General\Helpers.cs (1)
47return Type.EmptyTypes;
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (1)
53public sealed override Type[] GetTypes() => Type.EmptyTypes;
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
82return builder.Count == 0 ? EmptyTypes : builder.ToArray();
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
81_requiredModifiers = EmptyTypes; 99_optionalModifiers = EmptyTypes;
System\Reflection\TypeLoading\Types\RoType.cs (3)
66return EmptyTypes; 73public override Type[] GetOptionalCustomModifiers() => EmptyTypes; 74public override Type[] GetRequiredCustomModifiers() => EmptyTypes;
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
114returnVal = _taskTResultGetMethod.Invoke(task, Type.EmptyTypes);
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
192ConstructorInfo? ctor = converterType.GetConstructor(Type.EmptyTypes);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
463defaultCtor ??= type.GetConstructor(BindingFlags.Public | BindingFlags.Instance, binder: null, Type.EmptyTypes, modifiers: null);
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
39Type.EmptyTypes,
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (5)
76ConstructorBuilder defaultCtorBuilder = regexTypeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, Type.EmptyTypes); 95_ilg!.Emit(OpCodes.Newobj, type.GetConstructor(Type.EmptyTypes)!); 113_ilg!.Emit(OpCodes.Call, typeof(Regex).GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, Type.EmptyTypes, Array.Empty<ParameterModifier>())!); 121_ilg!.Emit(OpCodes.Newobj, regexRunnerFactoryType.GetConstructor(Type.EmptyTypes)!); 196_ilg!.Emit(OpCodes.Newobj, typeof(Hashtable).GetConstructor(Type.EmptyTypes)!);
System.Xaml (6)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
119factory = type.GetMethod(methodName, flags, null, Type.EmptyTypes, null);
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
204ctor = type.GetConstructor(BF_AllInstanceMembers, null, Type.EmptyTypes, null);
System\Xaml\Schema\CollectionReflector.cs (1)
269MethodInfo result = GetMethod(type, KnownStrings.GetEnumerator, Type.EmptyTypes);
System\Xaml\Schema\XamlMemberInvoker.cs (1)
124args = Type.EmptyTypes;
System\Xaml\Schema\XamlTypeInvoker.cs (1)
310ConstructorInfo tConstInfo = underlyingType.GetConstructor(Type.EmptyTypes);
System\Xaml\XamlType.cs (1)
794ConstructorInfo defaultCtor = underlyingType.GetConstructor(ConstructorBindingFlags, null, Type.EmptyTypes, null);
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
181return SourceObject.GetType().GetProperty(propertyName, Type.EmptyTypes);