29 references to IsSealed
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
96
Assert.True(typeof(TOptions).
IsSealed
);
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
832
if (info.IsValueType || info.
IsSealed
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
799
else if (directReference && (info.IsAbstract && info.
IsSealed
))
991
for (TypeInfo tinfo = t != null ? t.GetTypeInfo() : null; tinfo != null && !tinfo.ContainsGenericParameters && !(tinfo.IsAbstract && tinfo.
IsSealed
); t = t.DeclaringType)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
1054
if (baseType.GetTypeInfo().
IsSealed
)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
84
return type.GetTypeInfo().
IsSealed
;
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
14
=> jsonTypeInfo.Type.
IsSealed
|| jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Http.Results (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
14
=> jsonTypeInfo.Type.
IsSealed
|| jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (1)
16
&& !type.
IsSealed
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (1)
16
&& !type.
IsSealed
Microsoft.AspNetCore.Identity.Test (1)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (1)
16
&& !type.
IsSealed
Microsoft.AspNetCore.Mvc.Core (2)
ApiConventionTypeAttribute.cs (1)
55
if (!conventionType.
IsSealed
|| !conventionType.IsAbstract)
src\Shared\Json\JsonSerializerExtensions.cs (1)
14
=> jsonTypeInfo.Type.
IsSealed
|| jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Routing (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
14
=> jsonTypeInfo.Type.
IsSealed
|| jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
366
if (this.Type.
IsSealed
)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
966
agg.SetSealed(type.
IsSealed
);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\ImmutableTypeCache.cs (1)
66
if (type.IsValueType || (type.IsClass & type.
IsSealed
))
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3195
if (!eventSourceType.IsAbstract && !eventSourceType.
IsSealed
)
src\System\Reflection\Metadata\RuntimeTypeMetadataUpdateHandler.cs (1)
76
if (!type.
IsSealed
)
System.Private.Xml (2)
System\Xml\Serialization\Types.cs (2)
768
else if (directReference && (type.IsAbstract && type.
IsSealed
))
943
for (Type? t = type.DeclaringType; t != null && !t.ContainsGenericParameters && !(t.IsAbstract && t.
IsSealed
); t = t.DeclaringType)
System.Reflection.Context (2)
System\Reflection\Context\Custom\AttributeUtils.cs (2)
24
bool isSealed = attributeFilterType.
IsSealed
;
64
bool isSealed = attributeFilterType.
IsSealed
;
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
185
if (baseType.
IsSealed
)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1053
if (baseType.
IsSealed
)
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
600
if (typeof(TValue).
IsSealed
)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
188
!type.
IsSealed
&&