60 overrides of IsSealed
Microsoft.CodeAnalysis.CSharp (60)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
234public override bool IsSealed
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
144public override bool IsSealed
Symbols\AliasSymbol.cs (1)
144public override bool IsSealed
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
115public sealed override bool IsSealed
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
122public override bool IsSealed
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
148public sealed override bool IsSealed
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
170public sealed override bool IsSealed
Symbols\ArrayTypeSymbol.cs (1)
442public override bool IsSealed
Symbols\AssemblySymbol.cs (1)
265public sealed override bool IsSealed
Symbols\DiscardSymbol.cs (1)
28public override bool IsSealed => false;
Symbols\DynamicTypeSymbol.cs (1)
46public override bool IsSealed
Symbols\ErrorMethodSymbol.cs (1)
49public override bool IsSealed
Symbols\ErrorPropertySymbol.cs (1)
76public override bool IsSealed { get { return false; } }
Symbols\ErrorTypeSymbol.cs (1)
413public sealed override bool IsSealed
Symbols\FieldSymbol.cs (1)
245public sealed override bool IsSealed
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
833public override bool IsSealed => false;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
85public override bool IsSealed => false;
Symbols\FunctionTypeSymbol.cs (1)
122public override bool IsSealed => throw ExceptionUtilities.Unreachable();
Symbols\LabelSymbol.cs (1)
32public override bool IsSealed
Symbols\LocalSymbol.cs (1)
114public sealed override bool IsSealed
Symbols\Metadata\PE\PEEventSymbol.cs (1)
293public override bool IsSealed
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
567public override bool IsSealed => this.IsMetadataFinal &&
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1680public override bool IsSealed
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
566public override bool IsSealed
Symbols\ModuleSymbol.cs (1)
169public sealed override bool IsSealed
Symbols\NamespaceSymbol.cs (1)
203public sealed override bool IsSealed
Symbols\ParameterSymbol.cs (1)
312public override bool IsSealed
Symbols\PointerTypeSymbol.cs (1)
54public override bool IsSealed
Symbols\RangeVariableSymbol.cs (1)
78public override bool IsSealed
Symbols\ReducedExtensionMethodSymbol.cs (1)
386public override bool IsSealed
Symbols\SignatureOnlyMethodSymbol.cs (1)
153public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
86public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
85public override bool IsSealed
Symbols\Source\LocalFunctionSymbol.cs (1)
367public override bool IsSealed => (_declarationModifiers & DeclarationModifiers.Sealed) != 0;
Symbols\Source\SourceEventSymbol.cs (1)
388public sealed override bool IsSealed
Symbols\Source\SourceMemberContainerSymbol.cs (1)
847public override bool IsSealed => HasFlag(DeclarationModifiers.Sealed);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
603public sealed override bool IsSealed
Symbols\Source\SourcePropertySymbolBase.cs (1)
585public override bool IsSealed
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
158public override bool IsSealed => true;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
65public override bool IsSealed => false;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
835public override bool IsSealed => true;
Symbols\Synthesized\SynthesizedContainer.cs (1)
94public override bool IsSealed => true;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
253public override bool IsSealed
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
96public override bool IsSealed => true;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
161public override bool IsSealed
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
254public override bool IsSealed
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
101public override bool IsSealed => true;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
191public sealed override bool IsSealed
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
83public override bool IsSealed => true;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
203public sealed override bool IsSealed
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
99public override bool IsSealed
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
384public override bool IsSealed
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
72public override bool IsSealed => _privateImplementationDetails.IsSealed && !_privateImplementationDetails.IsAbstract;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
270public override bool IsSealed
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
205public override bool IsSealed
Symbols\TypeParameterSymbol.cs (1)
232public sealed override bool IsSealed
Symbols\Wrapped\WrappedEventSymbol.cs (1)
126public override bool IsSealed
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
165public override bool IsSealed
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
177public override bool IsSealed
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
148public override bool IsSealed
41 references to IsSealed
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Constraints.cs (1)
597if (type.IsSealed)
Binder\ForEachLoopBinder.cs (1)
1241if (!enumeratorType.IsSealed && !isAsync) // For async foreach, we don't do the runtime check in unsealed case
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3485if (source.IsClassType() && destination.IsInterfaceType() && !source.IsSealed && !HasAnyBaseInterfaceConversion(source, destination, ref useSiteInfo)) 3493if (source.IsInterfaceType() && destination.IsClassType() && (!destination.IsSealed || HasAnyBaseInterfaceConversion(destination, source, ref useSiteInfo)))
CodeGen\EmitExpression.cs (1)
1973if (IsThisReceiver(receiver) && actualMethodTargetedByTheCall.ContainingType.IsSealed &&
Emitter\Model\MethodSymbolAdapter.cs (1)
649return this.IsSealed ||
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
1009return this.IsSealed || this.IsStatic;
Emitter\Model\PropertySymbolAdapter.cs (2)
73if ((object)getMethod != null || !AdaptedPropertySymbol.IsSealed) 128if ((object)setMethod != null || !AdaptedPropertySymbol.IsSealed)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
279else if (member.IsSealed)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
762return (type as ArrayTypeSymbol)?.ElementType.IsSealed == true;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
418Debug.Assert(!enumeratorType.IsSealed);
Symbols\MemberSymbolExtensions.cs (1)
152return (object)methodOpt != null && !methodOpt.IsSealed && (methodOpt.IsAbstract || methodOpt.IsVirtual);
Symbols\MethodSymbol.cs (1)
1215bool IMethodSymbolInternal.IsMetadataFinal => IsSealed;
Symbols\PublicModel\Symbol.cs (1)
240return UnderlyingSymbol.IsSealed;
Symbols\ReducedExtensionMethodSymbol.cs (1)
388get { return _reducedFrom.IsSealed; }
Symbols\Source\SourceConstructorSymbol.cs (1)
171else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
Symbols\Source\SourceEventSymbol.cs (2)
579else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 608else if (IsVirtual && ContainingType.IsSealed)
Symbols\Source\SourceFieldSymbol.cs (1)
56if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected())
Symbols\Source\SourceMemberContainerSymbol.cs (5)
263if (containingType?.IsSealed == true && this.DeclaredAccessibility.HasProtected()) 4456if (baseToStringMethod is { IsSealed: true }) 4482if (!SynthesizedRecordObjectMethod.VerifyOverridesMethodFromObject(toStringMethod, SpecialMember.System_Object__ToString, diagnostics) && toStringMethod.IsSealed && !IsSealed) 4638if (!SynthesizedRecordObjectMethod.VerifyOverridesMethodFromObject(getHashCode, SpecialMember.System_Object__GetHashCode, diagnostics) && getHashCode.IsSealed && !IsSealed) 4758((!symbol.IsAbstract && !symbol.IsVirtual && !symbol.IsOverride) || symbol.IsSealed))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
897else if (overriddenMember.IsSealed) 1126if (overridingProperty.IsSealed)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
495if (baseType.IsSealed && !this.IsStatic) // Give precedence to ERR_StaticDerivedFromNonObject
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
879else if (IsVirtual && ContainingType.IsSealed) 892else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
534else if (IsVirtual && ContainingType.IsSealed && ContainingType.TypeKind != TypeKind.Struct) // error CS0106 on struct already 543else if (ContainingType.IsSealed && localAccessibility.HasProtected() && !this.IsOverride)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1116else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
Symbols\SymbolExtensions.cs (1)
540return !symbol.IsSealed && (symbol.IsAbstract || symbol.IsVirtual) && (symbol.ContainingType?.IsInterface ?? false);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
179!(containingType.IsSealed || candidate.IsOverride || candidate.IsVirtual || candidate.IsAbstract) ||
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
36public override Accessibility DeclaredAccessibility => ContainingType.IsSealed ? Accessibility.Private : Accessibility.Protected;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
32Debug.Assert(property.IsSealed);
Symbols\Wrapped\WrappedEventSymbol.cs (1)
130return _underlyingEvent.IsSealed;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
169return UnderlyingMethod.IsSealed;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
181return _underlyingType.IsSealed;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
152return _underlyingProperty.IsSealed;