10 overrides of GetInterfaces
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
418public override Type[] GetInterfaces()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
186public override Type[] GetInterfaces() { throw new NotSupportedException(); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
131public override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
92public sealed override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
102public override Type[] GetInterfaces() => typeImpl.GetInterfaces();
System\RuntimeType.NativeAot.cs (1)
358public override Type[] GetInterfaces()
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
59public override Type[] GetInterfaces()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
343public override Type[] GetInterfaces()
System.Reflection.Emit (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
418public override Type[] GetInterfaces()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
191public sealed override Type[] GetInterfaces() => GetInterfacesNoCopy().CloneArray<Type>();
134 references to GetInterfaces
aspire (1)
Commands\SettingsSchemaBuilder.cs (1)
139var dictInterfaces = propertyType.GetInterfaces()
Aspire.Hosting (2)
Ats\CollectionExports.cs (1)
196return type.GetInterfaces()
ResourceBuilderExtensions.cs (1)
1058var customWithReferenceInterface = customType.GetInterfaces()
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
358foreach (var iface in type.GetInterfaces())
Aspire.Hosting.RemoteHost (3)
Ats\GenericMethodResolver.cs (1)
74var iface = argType.GetInterfaces()
Ats\PolyglotCapabilityInvocationException.cs (1)
373var builderInterface = builderType.GetInterfaces().FirstOrDefault(static type =>
AtsCapabilityScanner.cs (1)
2970foreach (var iface in type.GetInterfaces())
Aspire.TypeSystem (1)
HostingTypeHelpers.cs (1)
97foreach (var implementedInterface in type.GetInterfaces())
dotnet-svcutil-lib (11)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
428Type[] interfaceTypes = type.GetInterfaces();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (5)
982Type t = type.GetInterfaces().Where(it => it.Equals(interfaceType)).FirstOrDefault(); 1097Type[] interfaceTypes = type.GetInterfaces(); 1220Type t = type.GetInterfaces().Where(it => it.Equals(interfaceType)).FirstOrDefault(); 1240Type[] parentInterfaceTypes = interfaceType.GetInterfaces(); 1268Type ienumerableInterface = interfaceType.GetInterfaces().Where(t => t.FullName.StartsWith("System.Collections.Generic.IEnumerable")).FirstOrDefault();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
395Type[] interfaceTypes = enumeratorType.GetInterfaces(); 596((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (2)
399foreach (Type t in service.GetInterfaces()) 429foreach (Type t in service.GetInterfaces())
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
120foreach (Type t in actualContractType.GetInterfaces())
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
181/// <see cref="System.Type.GetInterfaces"/>
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
181/// <see cref="System.Type.GetInterfaces"/>
Microsoft.AspNetCore.Components.Endpoints (3)
Forms\ClientValidationCache.cs (1)
187foreach (var interfaceType in type.GetInterfaces())
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\AsyncQueryExecutorSupplier.cs (1)
57=> queryableProviderType.GetInterfaces().Any(x => string.Equals(x.FullName, "Microsoft.EntityFrameworkCore.Query.IAsyncQueryProvider", StringComparison.Ordinal)) == true;
Microsoft.AspNetCore.Http.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Http.Extensions (4)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (3)
413foreach (var i in type.GetInterfaces()) 456foreach (var implementedInterface in type.GetInterfaces()) 491foreach (var implementedInterface in type.GetInterfaces())
Microsoft.AspNetCore.JsonPatch (1)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
Microsoft.AspNetCore.Mvc.Abstractions (4)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (3)
413foreach (var i in type.GetInterfaces()) 456foreach (var implementedInterface in type.GetInterfaces()) 491foreach (var implementedInterface in type.GetInterfaces())
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
Microsoft.AspNetCore.OpenApi (3)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (3)
413foreach (var i in type.GetInterfaces()) 456foreach (var implementedInterface in type.GetInterfaces()) 491foreach (var implementedInterface in type.GetInterfaces())
Microsoft.AspNetCore.Routing (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Routing.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.SignalR.Client.Core (2)
src\aspnetcore\src\SignalR\common\Shared\ReflectionHelper.cs (2)
62foreach (Type typeToCheck in type.GetInterfaces()) 85foreach (Type typeToCheck in type.GetInterfaces())
Microsoft.AspNetCore.SignalR.Core (5)
Internal\TypedClientBuilder.cs (2)
77foreach (var parent in interfaceType.GetInterfaces()) 274foreach (var parent in interfaceType.GetInterfaces())
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
src\aspnetcore\src\SignalR\common\Shared\ReflectionHelper.cs (2)
62foreach (Type typeToCheck in type.GetInterfaces()) 85foreach (Type typeToCheck in type.GetInterfaces())
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerFactory.cs (1)
52foreach (var interfaceType in candidateType.GetInterfaces())
Microsoft.CSharp (4)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
326foreach (Type iface in type.GetInterfaces())
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (3)
245Type[] ifaces = type.GetInterfaces(); 251foreach (Type iface in type.GetInterfaces()) 1022Type[] interfaces = type.GetInterfaces();
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
81foreach (var iType in type.GetInterfaces())
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1097Type[] interfaces = actual.GetInterfaces();
Microsoft.Extensions.Options (1)
OptionsServiceCollectionExtensions.cs (1)
197=> t.GetInterfaces();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
14.Where(t => t.GetInterfaces().Contains(typeof(IFuzzer)))
Microsoft.Maui (1)
Hosting\ImageSources\ImageSourceServiceProvider.cs (1)
72 foreach (var directInterface in type.GetInterfaces())
Microsoft.Maui.Controls.Xaml (1)
ApplyPropertiesVisitor.cs (1)
828 .Concat(type.GetInterfaces().SelectMany(t => t.GetRuntimeMethods()));
Microsoft.ML.Core (1)
ComponentModel\ComponentCatalog.cs (1)
602foreach (var faceType in nestedType.GetInterfaces())
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
66propertyInfos = epKind.GetInterfaces().Aggregate(propertyInfos, (current, face) => current.Union(face.GetProperties()));
Microsoft.ML.Transforms (1)
PermutationFeatureImportanceExtensions.cs (1)
726foreach (Type iType in type.GetInterfaces())
Microsoft.TemplateEngine.Edge (1)
Settings\ComponentManager.cs (1)
202IReadOnlyList<Type> interfaceTypesToRegisterFor = type.GetInterfaces().Where(x => x != typeof(IIdentifiedComponent) && typeof(IIdentifiedComponent).IsAssignableFrom(x)).ToList();
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (2)
1074For Each implemented As Type In argumentType.GetInterfaces 1153For Each possibleGenericType As Type In argumentType.GetInterfaces
Microsoft\VisualBasic\CompilerServices\Symbols.vb (3)
524Return System.Linq.Enumerable.ToArray(genericParameter.GetInterfaces) 941For Each implemented As Type In _type.GetInterfaces() 1002For Each implemented As Type In _type.GetInterfaces()
PresentationFramework (4)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
103var interfaces = obj.GetType().GetInterfaces();
System\Windows\Data\CollectionView.cs (1)
1499Type[] interfaces = collectionType.GetInterfaces();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
691foreach (Type interfaceType in type.GetInterfaces())
System\Windows\Standard\Verify.cs (1)
279foreach (var ifaceType in parameter.GetType().GetInterfaces())
System.ComponentModel.Composition (3)
Microsoft\Internal\ReflectionServices.cs (1)
126return type.GetInterfaces().Concat(new Type[] { type }).SelectMany(itf => itf.GetProperties());
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (1)
398foreach (Type iface in type.GetInterfaces())
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
191foreach (var iface in closedGenericPartType.GetInterfaces())
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
306foreach (Type iface in type.GetInterfaces())
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TrimSafeReflectionHelper.cs (1)
16public static Type[] GetInterfaces(Type type) => type.GetInterfaces();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesFilterAndTransform.cs (1)
745foreach (Type iFaceType in typeInfo.GetInterfaces())
System.Linq.Expressions (2)
System\Dynamic\Utils\TypeUtils.cs (2)
15private static readonly Type[] s_arrayAssignableInterfaces = typeof(int[]).GetInterfaces() 274static Type[] GetTypeInterfaces(Type instanceType) => instanceType.GetInterfaces();
System.Linq.Queryable (4)
System\Linq\EnumerableRewriter.cs (3)
129if (t.IsGenericType && t.GetGenericTypeDefinition().GetInterfaces().Contains(typeof(IGrouping<,>))) 133foreach (Type iType in t.GetInterfaces()) 174var interfacesWithInfo = pubType.GetInterfaces();
System\Linq\TypeHelper.cs (1)
27foreach (Type itype in type.GetInterfaces())
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
102public override Type[] GetInterfaces() => typeImpl.GetInterfaces();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
104get => GetInterfaces();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
151Type?[] c = GetInterfaces(); 416Type[] interfaces = t.GetInterfaces();
System\Reflection\Runtime\General\Assignability.cs (3)
154foreach (Type ifc in fromTypeInfo.GetInterfaces()) 360foreach (Type ifc in fromTypeInfo.GetInterfaces()) 376foreach (Type ifc in fromTypeInfo.GetInterfaces())
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (2)
271result.Append(baseType.GetInterfaces()); 278foreach (Type indirectIfc in ifc.GetInterfaces())
System.Private.DataContractSerialization (11)
System\Runtime\Serialization\ClassDataContract.cs (1)
324foreach (Type interfaceType in type.GetInterfaces())
System\Runtime\Serialization\CollectionDataContract.cs (6)
873Type[] interfaceTypes = enumeratorType.GetInterfaces(); 993Type[] interfaces = type.GetInterfaces(); 1132Type[] interfaceTypes = type.GetInterfaces(); 1292Type[] interfaces = type.GetInterfaces(); 1322Type[] parentInterfaceTypes = interfaceType.GetInterfaces(); 1353interfaceType.GetInterfaces().Where(t => t.FullName!.StartsWith("System.Collections.Generic.IEnumerable")).FirstOrDefault() ??
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
396Type[] interfaceTypes = enumeratorType.GetInterfaces(); 677((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
475Type[] interfaceTypes = enumeratorType.GetInterfaces(); 690((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
System.Private.Reflection.Execution (3)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
61Type[] interfaces = _underlyingType.GetInterfaces();
Internal\Reflection\Execution\TypeLoader\TypeCast.cs (2)
33foreach (var pInterfaceType in pObjType.GetInterfaces()) 59foreach (var pInterfaceType in pObjType.GetInterfaces())
System.Private.Xml (2)
System\Xml\Serialization\CodeGenerator.cs (1)
61foreach (Type iFace in type.GetInterfaces())
System\Xml\Serialization\Compiler.cs (1)
41foreach (Type intf in type.GetInterfaces())
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
345return _typeInfo.GetInterfaces();
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
202Type[] interfacesOnInterfaceType = interfaceType.GetInterfaces();
System.Reflection.Emit (2)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
345foreach (Type @interface in _typeParent.GetInterfaces()) 973interfaces.AddRange(_typeParent.GetInterfaces());
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\General\Assignability.cs (3)
152foreach (Type ifc in fromTypeInfo.GetInterfaces()) 347foreach (Type ifc in fromTypeInfo.GetInterfaces()) 363foreach (Type ifc in fromTypeInfo.GetInterfaces())
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
150return type.GetInterfaces();
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
77TypeBuilder implementation = module.DefineType("InterfaceForwarder", TypeAttributes.Interface | TypeAttributes.Abstract, parent: null, interfaces: runtimeType.GetInterfaces());
System.ServiceModel.Primitives (3)
System\ServiceModel\Description\ServiceReflector.cs (2)
436foreach (Type t in service.GetInterfaces()) 466foreach (Type t in service.GetInterfaces())
System\ServiceModel\Description\TypeLoader.cs (1)
120foreach (Type t in actualContractType.GetInterfaces())
System.Text.Json (7)
src\runtime\src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (2)
102foreach (Type typeToCheck in type.GetInterfaces()) 343return JsonHelpers.TraverseGraphWithTopologicalSort(type, static t => t.GetInterfaces());
System\ReflectionExtensions.cs (2)
185foreach (Type iface in type.GetInterfaces()) 538foreach (Type current in subType.GetInterfaces())
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
351foreach (Type interfaceType in type.GetInterfaces())
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
249foreach (Type interfaceTy in type.GetInterfaces()) 301foreach (Type interfaceType in typeInfo.Type.GetInterfaces())
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
511foreach (Type curInterface in type.GetInterfaces())
System.Xaml (2)
System\Xaml\RefOnly\LooseTypeExtensions.cs (1)
112Type[] interfaces = type.GetInterfaces();
System\Xaml\Schema\CollectionReflector.cs (1)
287foreach (Type currentInterface in type.GetInterfaces())