30 references to IsSealed
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
132Assert.True(typeof(TOptions).IsSealed);
Aspire.Hosting.Tests (1)
Backchannel\BackchannelContractTests.cs (1)
92else if (!type.IsSealed)
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
832if (info.IsValueType || info.IsSealed)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
799else if (directReference && (info.IsAbstract && info.IsSealed)) 991for (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)
1054if (baseType.GetTypeInfo().IsSealed)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
84return type.GetTypeInfo().IsSealed;
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (1)
14=> jsonTypeInfo.Type.IsSealed || jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (1)
14=> jsonTypeInfo.Type.IsSealed || jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Identity (1)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (1)
1391=> jsonTypeInfo.Type.IsSealed || jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Mvc.Core (2)
ApiConventionTypeAttribute.cs (1)
55if (!conventionType.IsSealed || !conventionType.IsAbstract)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (1)
14=> jsonTypeInfo.Type.IsSealed || jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.OpenApi (1)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (1)
229=> jsonTypeInfo.Type.IsSealed || jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.AspNetCore.Routing (1)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (1)
14=> jsonTypeInfo.Type.IsSealed || jsonTypeInfo.Type.IsValueType || jsonTypeInfo.PolymorphismOptions is not null;
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
986agg.SetSealed(type.IsSealed);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\ImmutableTypeCache.cs (1)
63if (type.IsValueType || (type.IsClass & type.IsSealed))
Microsoft.Extensions.VectorData.ConformanceTests (1)
TestSuiteImplementationTests.cs (1)
40.Where(t => Regex.IsMatch(t.Name, """Tests(`\d+)?$""") && t.IsAbstract && !t.IsSealed && !t.IsInterface);
System.Linq.Expressions (2)
System\Dynamic\Utils\TypeUtils.cs (2)
391if (dest.IsInterface || dest.IsClass && !dest.IsSealed) 398if (source.IsClass && !source.IsSealed)
System.Private.CoreLib (2)
Internal\Reflection\Extensions\NonPortable\CustomAttributeSearcher.cs (1)
47typeFilterKnownToBeSealed = optionalAttributeTypeFilter.IsSealed;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3101if (!eventSourceType.IsAbstract && !eventSourceType.IsSealed)
System.Private.Xml (2)
System\Xml\Serialization\Types.cs (2)
831else if (directReference && (type.IsAbstract && type.IsSealed)) 1006for (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)
24bool isSealed = attributeFilterType.IsSealed; 64bool isSealed = attributeFilterType.IsSealed;
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
182if (baseType.IsSealed)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1067if (baseType.IsSealed)
System.ServiceModel.Primitives (1)
Extensions\ReflectionExtensions.cs (1)
89return type.GetTypeInfo().IsSealed;
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
630if (typeof(TValue).IsSealed)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
210!type.IsSealed &&