13 overrides of GetInterfaces
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
416public override Type[] GetInterfaces()
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
187public override Type[] GetInterfaces() { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
130public override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
88public sealed override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
100public override Type[] GetInterfaces() => typeImpl.GetInterfaces();
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
141public override Type[] GetInterfaces()
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
125public override Type[] GetInterfaces() { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
735public override Type[] GetInterfaces()
src\System\RuntimeType.CoreCLR.cs (1)
2667public override Type[] GetInterfaces()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
343public override Type[] GetInterfaces()
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
416public override Type[] GetInterfaces()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
195public sealed override Type[] GetInterfaces() => GetInterfacesNoCopy().CloneArray<Type>();
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
869public override Type[] GetInterfaces() => throw new NotImplementedException();
118 references to 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())
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
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\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Http.Extensions (4)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
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\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
Microsoft.AspNetCore.Mvc.Abstractions (4)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
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\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
Microsoft.AspNetCore.OpenApi (3)
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\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Routing.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
src\Shared\PropertyHelper\PropertyHelper.cs (1)
509foreach (var @interface in type.GetInterfaces())
Microsoft.AspNetCore.SignalR.Client.Core (2)
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\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
69var interfaces = queryType.GetInterfaces();
src\SignalR\common\Shared\ReflectionHelper.cs (2)
62foreach (Type typeToCheck in type.GetInterfaces()) 85foreach (Type typeToCheck in type.GetInterfaces())
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\MemberInfo\TypeImpl.cs (3)
194return Type.GetInterfaces().Select(i => new TypeImpl(i)).ToArray(); 295var interfaceMaps = Type.GetInterfaces().Select(i => Type.GetInterfaceMap(i)); 456foreach (var @interface in t.GetInterfaces())
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
LspServices\AbstractExportLspServiceAttribute.cs (2)
60Contract.ThrowIfFalse(serviceType.GetInterfaces().Contains(typeof(ILspService)), $"{serviceType.Name} does not inherit from {nameof(ILspService)}"); 75InterfaceNames = Array.ConvertAll(serviceType.GetInterfaces(), t => t.AssemblyQualifiedName!);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (2)
61foreach (var interfaceType in handlerType.GetInterfaces()) 184var interfaces = type.GetInterfaces();
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
MethodHandlerDetails.cs (2)
61foreach (var interfaceType in handlerType.GetInterfaces()) 184var interfaces = type.GetInterfaces();
Microsoft.CSharp (4)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
326foreach (Type iface in type.GetInterfaces())
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (3)
239Type[] ifaces = type.GetInterfaces(); 245foreach (Type iface in type.GetInterfaces()) 1001Type[] interfaces = type.GetInterfaces();
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1038Type[] interfaces = actual.GetInterfaces();
Microsoft.Extensions.Options (1)
OptionsServiceCollectionExtensions.cs (1)
195=> t.GetInterfaces();
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.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() 1005For 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)
1500Type[] interfaces = collectionType.GetInterfaces();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
692foreach (Type interfaceType in type.GetInterfaces())
System\Windows\Standard\Verify.cs (1)
280foreach (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)
197foreach (var iface in closedGenericPartType.GetInterfaces())
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
333foreach (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)
729foreach (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 (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
100public override Type[] GetInterfaces() => typeImpl.GetInterfaces();
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
104get => GetInterfaces();
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
123Type?[] c = GetInterfaces(); 388Type[] interfaces = t.GetInterfaces();
src\System\RuntimeType.CoreCLR.cs (1)
821interfaces = ReflectedType.BaseType!.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(); 996Type? t = type.GetInterfaces().Where(it => it.Equals(interfaceType)).FirstOrDefault(); 1130Type[] interfaceTypes = type.GetInterfaces(); 1293Type? t = type.GetInterfaces().Where(it => it.Equals(interfaceType)).FirstOrDefault(); 1319Type[] parentInterfaceTypes = interfaceType.GetInterfaces(); 1350interfaceType.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.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)
205foreach (Type t in interfaceType.GetInterfaces())
System.Reflection.Emit (2)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
357foreach (Type @interface in _typeParent.GetInterfaces()) 998interfaces.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.Text.Json (5)
src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (2)
102foreach (Type typeToCheck in type.GetInterfaces()) 343return JsonHelpers.TraverseGraphWithTopologicalSort(type, static t => t.GetInterfaces());
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
327foreach (Type interfaceType in type.GetInterfaces())
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
227foreach (Type interfaceTy in type.GetInterfaces()) 279foreach (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)
113Type[] interfaces = type.GetInterfaces();
System\Xaml\Schema\CollectionReflector.cs (1)
288foreach (Type currentInterface in type.GetInterfaces())
System.Xaml.Tests (1)
Common\CustomType.cs (1)
50return GetInterfacesResult.Or(typeImpl.GetInterfaces)!;
xunit.console (1)
ConsoleRunner.cs (1)
159if (type == null || type.GetTypeInfo().IsAbstract || type == typeof(DefaultRunnerReporter) || type == typeof(DefaultRunnerReporterWithTypes) || !type.GetInterfaces().Any(t => t == typeof(IRunnerReporter)))