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