37 references to IsClass
Aspire.Hosting.Tests (1)
Backchannel\BackchannelContractTests.cs (1)
88
if (!type.
IsClass
)
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
888
else if (info.
IsClass
)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
52
return type.GetTypeInfo().
IsClass
;
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
93
return (type.IsInterface || type.
IsClass
) && (type.IsDefined(serviceContractAttributeType, false));
Microsoft.AspNetCore.Mvc.Core (3)
Controllers\ControllerFeatureProvider.cs (1)
41
if (!typeInfo.
IsClass
)
ModelBinding\Binders\CollectionModelBinder.cs (1)
199
return targetType.
IsClass
&&
ModelBinding\ModelBindingHelper.cs (1)
498
return modelType.
IsClass
&&
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\ViewComponentConventions.cs (1)
96
if (!typeInfo.
IsClass
||
Microsoft.Build (3)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
461
.Where(t => t.
IsClass
&& t.IsPublic && !t.IsAbstract && typeof(T).IsAssignableFrom(t));
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
241
.Where(t => t.
IsClass
&& t.IsPublic && !t.IsAbstract && typeof(SdkResolver).IsAssignableFrom(t));
src\msbuild\src\Shared\TypeLoader.cs (1)
467
type.
IsClass
&& !type.IsAbstract && type.GetInterface(_desiredInterfaceName) is not null;
Microsoft.Build.Framework (1)
BuildException\BuildExceptionSerializationHelper.cs (1)
31
return type.
IsClass
&&
Microsoft.Extensions.Caching.Hybrid (1)
Internal\ImmutableTypeCache.cs (1)
63
if (type.IsValueType || (type.
IsClass
& type.IsSealed))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
13
.Where(t => t.
IsClass
&& !t.IsAbstract)
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
215
if (resultType.IsArray || resultType.
IsClass
)
Microsoft.ML.Core (3)
CommandLine\CmdParser.cs (1)
465
Contracts.CheckParam(type.
IsClass
, nameof(type));
ComponentModel\ComponentCatalog.cs (2)
362
if (!outputType.
IsClass
)
1083
if (type.
IsClass
)
Microsoft.TemplateEngine.Edge (1)
Settings\ComponentManager.cs (1)
197
if (!typeof(IIdentifiedComponent).IsAssignableFrom(type) || type.GetConstructor(Type.EmptyTypes) == null || !type.
IsClass
)
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (5)
1003
(Not parameterType.
IsClass
AndAlso Not parameterType.IsInterface)) Then
1024
parameterType.
IsClass
) Then
1037
ElseIf (Not argumentType.
IsClass
AndAlso
1051
If (parameterType.
IsClass
) Then
1053
If (Not argumentType.
IsClass
) Then
Microsoft.VisualStudio.TestPlatform.Common (2)
ExtensionFramework\TestPluginDiscoverer.cs (2)
159
types.AddRange(assembly.GetTypes().Where(type => type.
IsClass
&& !type.IsAbstract));
169
types.AddRange(e.Types.Where(type => type != null && type.
IsClass
&& !type.IsAbstract)!);
MSBuild (1)
src\msbuild\src\Shared\TypeLoader.cs (1)
467
type.
IsClass
&& !type.IsAbstract && type.GetInterface(_desiredInterfaceName) is not null;
System.Composition.Hosting (1)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
24
if (!typeof(TMetadata).GetTypeInfo().
IsClass
)
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
31
if (type.IsAbstract || !type.
IsClass
|| _attributeContext.GetDeclaredAttribute<PartNotDiscoverableAttribute>(type.AsType(), type) != null)
System.Linq.Expressions (2)
System\Dynamic\Utils\TypeUtils.cs (2)
391
if (dest.IsInterface || dest.
IsClass
&& !dest.IsSealed)
398
if (source.
IsClass
&& !source.IsSealed)
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
482
if (pCls.
IsClass
)
System\Reflection\Runtime\General\Assignability.cs (1)
337
return t.
IsClass
&& t != typeof(object) && t != typeof(ValueType) && t != typeof(Enum);
System.Private.Xml (1)
System\Xml\Serialization\Types.cs (1)
909
else if (type.
IsClass
)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Assignability.cs (1)
326
return t.
IsClass
&& !t.Equals(coreTypes[CoreType.Object]) && !t.Equals(coreTypes[CoreType.ValueType]) && !t.Equals(coreTypes[CoreType.Enum]);
System.ServiceModel.Primitives (1)
Extensions\ReflectionExtensions.cs (1)
57
return type.GetTypeInfo().
IsClass
;
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
209
(type.
IsClass
|| type.IsInterface) &&