100 references to IsAbstract
BuildActionTelemetryTable (1)
Program.cs (1)
482type => !type.GetTypeInfo().IsInterface && !type.GetTypeInfo().IsAbstract));
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (5)
799else if (directReference && (info.IsAbstract && info.IsSealed)) 886if (info.IsAbstract) flags |= TypeFlags.Abstract; 911if (info.IsAbstract) 942if (kind == TypeKind.Class && !info.IsAbstract) 991for (TypeInfo tinfo = t != null ? t.GetTypeInfo() : null; tinfo != null && !tinfo.ContainsGenericParameters && !(tinfo.IsAbstract && tinfo.IsSealed); t = t.DeclaringType)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
44return type.GetTypeInfo().IsAbstract;
Microsoft.AspNetCore.Components.Endpoints (6)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
41if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition) 128if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition)
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
41if (!type.IsAbstract && !type.IsGenericTypeDefinition) 107if (!type.IsAbstract && !type.IsGenericTypeDefinition)
FormMapping\Metadata\FormDataMetadataFactory.cs (2)
128if (type.IsAbstract) 147else if (type.IsAbstract)
Microsoft.AspNetCore.Connections.Abstractions (1)
src\Shared\ActivatorUtilities\ActivatorUtilities.cs (1)
33if (!instanceType.IsAbstract)
Microsoft.AspNetCore.Http.Extensions (7)
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
41if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition) 128if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition)
src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
41if (!type.IsAbstract && !type.IsGenericTypeDefinition) 107if (!type.IsAbstract && !type.IsGenericTypeDefinition)
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (2)
128if (type.IsAbstract) 147else if (type.IsAbstract)
src\Shared\ParameterBindingMethodCache.cs (1)
361if (type.IsAbstract)
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
26if (template.IsAbstract || !template.IsGenericTypeDefinition)
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
361if (type.IsAbstract)
Microsoft.AspNetCore.Mvc.Core (8)
ApiConventionTypeAttribute.cs (1)
55if (!conventionType.IsSealed || !conventionType.IsAbstract)
Controllers\ControllerFeatureProvider.cs (1)
46if (typeInfo.IsAbstract)
Filters\MiddlewareFilterConfigurationProvider.cs (1)
73return !modelType.IsAbstract && modelType.GetConstructor(Type.EmptyTypes) != null;
ModelBinding\Binders\CollectionModelBinder.cs (1)
200!targetType.IsAbstract &&
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)
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
82if (type.IsAbstract || type.IsValueType || type.IsInterface)
ModelBinding\ModelBindingHelper.cs (1)
499!modelType.IsAbstract &&
Microsoft.AspNetCore.Mvc.Razor (1)
TagHelpers\TagHelperFeatureProvider.cs (1)
51!type.IsAbstract &&
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\ViewComponentConventions.cs (1)
98typeInfo.IsAbstract ||
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (1)
419return !context.TypeInfo.Type.IsAbstract
src\Shared\ParameterBindingMethodCache.cs (1)
361if (type.IsAbstract)
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ActivatorUtilities\ActivatorUtilities.cs (1)
33if (!instanceType.IsAbstract)
Microsoft.Build (6)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
381!t.info.IsAbstract &&
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
228.Where(t => t.info.IsClass && t.info.IsPublic && !t.info.IsAbstract && typeof(SdkResolver).IsAssignableFrom(t.type))
Instance\TaskRegistry.cs (1)
648!type.GetTypeInfo().IsAbstract &&
Logging\LoggerDescription.cs (2)
260!type.GetTypeInfo().IsAbstract && 272!type.GetTypeInfo().IsAbstract &&
TaskLoader.cs (1)
37return type.GetTypeInfo().IsClass && !type.GetTypeInfo().IsAbstract && (
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskExecutionHost_Tests.cs (1)
1223!type.GetTypeInfo().IsAbstract &&
Microsoft.Build.Framework (1)
BuildException\BuildExceptionSerializationHelper.cs (1)
32!type.IsAbstract &&
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
362if (this.Type.IsAbstract)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
948agg.SetAbstract(type.IsAbstract);
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
133if (!typeInfo.Type.IsAbstract && !derivedTypes.Any(derived => derived.DerivedType == typeInfo.Type))
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
517if (type.IsInterface || type.IsAbstract)
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (2)
51if (implementationType.IsAbstract || implementationType.IsInterface) 75implementationType.IsAbstract ||
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
57if (instanceType.IsAbstract)
MSBuild (1)
TaskLoader.cs (1)
37return type.GetTypeInfo().IsClass && !type.GetTypeInfo().IsAbstract && (
MSBuildTaskHost (2)
BuildExceptionSerializationHelper.cs (1)
32!type.IsAbstract &&
TaskLoader.cs (1)
37return type.GetTypeInfo().IsClass && !type.GetTypeInfo().IsAbstract && (
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
3009(parentType.IsAbstract || 3286(parentType.IsAbstract || 4408(ParentContext.ContextDataType.IsAbstract ||
System.ComponentModel.Composition (6)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (4)
188if (type.IsAbstract) 328if (type.IsAbstract) 368if (type.IsAbstract) 443if (type.IsAbstract)
System\ComponentModel\Composition\ContractNameServices.cs (1)
50if (!type.IsAbstract && type.HasBaseclassOf(typeof(Delegate)))
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
181if (!type.IsValueType && ((type.GetConstructor(Type.EmptyTypes) == null) || type.IsAbstract))
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
31if (type.IsAbstract || !type.IsClass || _attributeContext.GetDeclaredAttribute<PartNotDiscoverableAttribute>(type.AsType(), type) != null)
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
626if (node.Constructor.DeclaringType!.IsAbstract)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2389if (node.Constructor.DeclaringType!.IsAbstract)
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (6)
3105while (ret != null && ret.IsAbstract); 3144if (eventSourceType.IsAbstract && (flags & EventManifestOptions.Strict) == 0) 3195if (!eventSourceType.IsAbstract && !eventSourceType.IsSealed) 3207if (eventSourceType.IsAbstract) 3247if (eventSourceType.IsAbstract) 3403if (!eventSourceType.IsAbstract && (source == null || !source.SelfDescribingEvents))
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeConstructorInfo.cs (2)
31else if (declaringType != null && declaringType.IsAbstract) 60else if (declaringType.IsAbstract)
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
421return type.IsInterface || type.IsAbstract;
System.Private.Windows.Core.TestUtilities (1)
ReflectionHelper.cs (1)
48return !type.IsAbstract && type.IsPublic && typeof(T).IsAssignableFrom(type);
System.Private.Xml (5)
System\Xml\Serialization\Types.cs (5)
768else if (directReference && (type.IsAbstract && type.IsSealed)) 844if (type.IsAbstract) flags |= TypeFlags.Abstract; 869if (type.IsAbstract) 897if (kind == TypeKind.Class && !type.IsAbstract) 943for (Type? t = type.DeclaringType; t != null && !t.ContainsGenericParameters && !(t.IsAbstract && t.IsSealed); t = t.DeclaringType)
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
191if (baseType.IsAbstract)
System.Text.Json (11)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
104if (!typeInfo.Type.IsAbstract && !IsPolymorphicTypeThatSpecifiesItselfAsDerivedType(typeInfo))
System\Text\Json\Serialization\Converters\Object\ObjectConverterFactory.cs (1)
54if (constructor == null || typeToConvert.IsAbstract || parameters!.Length == 0)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
40(derivedType.IsAbstract && UnknownDerivedTypeHandling != JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)) 201Debug.Assert(!type.IsAbstract);
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (3)
26if (type.IsAbstract) 79Debug.Assert(!type.IsAbstract); 120Debug.Assert(!type.IsAbstract);
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (3)
24if (type.IsAbstract) 43Debug.Assert(!type.IsAbstract); 78Debug.Assert(!type.IsAbstract);
System\Text\Json\ThrowHelper.Serialization.cs (1)
626if (type.IsInterface || type.IsAbstract)
System.Windows.Forms.Design (5)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
74if (GetReflectionTypeFromTypeHelper(manager, baseType).IsAbstract)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
681if (type.IsAbstract)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
92if (t.IsAbstract)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
378if (t.IsAbstract || !t.IsPublic)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
263if (t.IsAbstract)
System.Xaml (1)
System\Xaml\XamlType.cs (1)
887if (underlyingType.IsAbstract ||
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)))