45 overrides of IsOverride
Microsoft.CodeAnalysis.CSharp (45)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
224public override bool IsOverride
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
134public override bool IsOverride
Symbols\AliasSymbol.cs (1)
159public override bool IsOverride
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
68public override bool IsOverride
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
53public override bool IsOverride
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
57public override bool IsOverride
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
68public override bool IsOverride
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
107public override bool IsOverride
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
57public override bool IsOverride
Symbols\AssemblySymbol.cs (1)
249public sealed override bool IsOverride
Symbols\DiscardSymbol.cs (1)
27public override bool IsOverride => false;
Symbols\ErrorMethodSymbol.cs (1)
59public override bool IsOverride
Symbols\ErrorPropertySymbol.cs (1)
72public override bool IsOverride { get { return false; } }
Symbols\FieldSymbol.cs (1)
234public sealed override bool IsOverride
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
831public override bool IsOverride => false;
Symbols\LabelSymbol.cs (1)
54public override bool IsOverride
Symbols\LocalSymbol.cs (1)
136public sealed override bool IsOverride
Symbols\Metadata\PE\PEEventSymbol.cs (1)
311public override bool IsOverride
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
591public override bool IsOverride =>
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
588public override bool IsOverride
Symbols\ModuleSymbol.cs (1)
147public sealed override bool IsOverride
Symbols\NamespaceOrTypeSymbol.cs (1)
82public sealed override bool IsOverride
Symbols\ParameterSymbol.cs (1)
338public override bool IsOverride
Symbols\RangeVariableSymbol.cs (1)
94public override bool IsOverride
Symbols\ReducedExtensionMethodSymbol.cs (1)
401public override bool IsOverride
Symbols\SignatureOnlyMethodSymbol.cs (1)
149public override bool IsOverride { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
82public override bool IsOverride => false;
Symbols\Source\LambdaSymbol.cs (1)
100public override bool IsOverride
Symbols\Source\LocalFunctionSymbol.cs (1)
363public override bool IsOverride => (_declarationModifiers & DeclarationModifiers.Override) != 0;
Symbols\Source\SourceEventSymbol.cs (1)
383public sealed override bool IsOverride
Symbols\Source\SourceMemberMethodSymbol.cs (1)
619public sealed override bool IsOverride
Symbols\Source\SourcePropertySymbolBase.cs (1)
580public override bool IsOverride
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
61public override bool IsOverride => false;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
243public override bool IsOverride
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
171public override bool IsOverride
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
264public override bool IsOverride
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
181public sealed override bool IsOverride
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
213public sealed override bool IsOverride
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
94public override bool IsOverride
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
368public override bool IsOverride
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
254public override bool IsOverride
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
221public override bool IsOverride
Symbols\Wrapped\WrappedEventSymbol.cs (1)
110public override bool IsOverride
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
149public override bool IsOverride
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
132public override bool IsOverride
56 references to IsOverride
Microsoft.CodeAnalysis.CSharp (56)
Binder\Semantics\Conversions\Conversions.cs (2)
342else if (method.ContainingType.IsNullableType() && !method.IsOverride) 463if (method.ContainingType.IsNullableType() && !method.IsOverride)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
1374if (!moreDerivedOverride.IsOverride || 1404if (!member.IsVirtual && !member.IsAbstract && !member.IsOverride)
CodeGen\EmitExpression.cs (1)
1951if (method.IsOverride && callKind != CallKind.Call)
Compiler\ClsComplianceChecker.cs (4)
828(!member.IsOverride || !(member.Kind == SymbolKind.Method || member.Kind == SymbolKind.Property))) 844(!member.IsOverride || !(member.Kind == SymbolKind.Method || member.Kind == SymbolKind.Property))) 861member.IsOverride) 932if (!symbol.CanBeReferencedByName || symbol.IsOverride) return;
Emitter\Model\MethodSymbolAdapter.cs (1)
651!(this.IsVirtual || this.IsOverride || this.IsAbstract || this.MethodKind == MethodKind.Destructor));
Operations\CSharpOperationFactory.cs (1)
1163bool isVirtual = constrainedToType is not null || ((methodSymbol.IsAbstract || methodSymbol.IsOverride || methodSymbol.IsVirtual) && !suppressVirtualCalls);
Operations\CSharpOperationFactory_Methods.cs (1)
117(targetMethod.IsVirtual || targetMethod.IsAbstract || targetMethod.IsOverride) &&
Symbols\Compilation_WellKnownMembers.cs (2)
315((descriptor.Flags & MemberFlags.Virtual) != 0) != (method.IsVirtual || method.IsOverride || method.IsAbstract)) 331if (((descriptor.Flags & MemberFlags.Virtual) != 0) != (property.IsVirtual || property.IsOverride || property.IsAbstract))
Symbols\EventSymbol.cs (2)
137if (this.IsOverride) 171while (e.IsOverride && !e.HidesBaseEventsByName)
Symbols\MemberSymbolExtensions.cs (2)
503@event = @event.IsOverride ? @event.OverriddenEvent : null; 527@event = @event.IsOverride ? @event.OverriddenEvent : null;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
669bool inherited = (_containingSymbol.Kind == SymbolKind.Method) && ((MethodSymbol)_containingSymbol).IsOverride;
Symbols\MethodSymbol.cs (5)
429while (m.IsOverride && !m.HidesBaseMethodsByName) 491if (this.IsOverride && ReferenceEquals(this.ConstructedFrom, this)) 535if (this.IsOverride) 573if (this.IsOverride) 1204&& !IsOverride;
Symbols\OverriddenOrHiddenMembersHelpers.cs (5)
177FindRelatedMembers(member.IsOverride, memberIsFromSomeCompilation, member.Kind, bestMatch, out overriddenMembers, ref hiddenBuilder); 288accessor.IsOverride, accessorIsFromSomeCompilation, accessor.Kind, overriddenAccessor, out overriddenAccessors, ref hiddenBuilder); 380accessor.IsOverride, accessorIsFromSomeCompilation, accessor.Kind, overriddenAccessor, out overriddenAccessors, ref hiddenBuilder); 499FindRelatedMembers(member.IsOverride, memberIsFromSomeCompilation, member.Kind, hidden, out overriddenMembers, ref hiddenAndRelatedBuilder); 934if (!method.IsOverride)
Symbols\OverriddenOrHiddenMembersResult.cs (1)
92if (overriddenMember.IsAbstract || overriddenMember.IsVirtual || overriddenMember.IsOverride)
Symbols\PropertySymbol.cs (3)
231if (this.IsOverride) 268while (p.IsOverride && !p.HidesBasePropertiesByName) 359internal bool CanHaveOverloadResolutionPriority => !IsOverride && !IsExplicitInterfaceImplementation && (IsIndexer || IsIndexedProperty);
Symbols\PublicModel\Symbol.cs (1)
225get { return UnderlyingSymbol.IsOverride; }
Symbols\ReducedExtensionMethodSymbol.cs (1)
403get { return _reducedFrom.IsOverride; }
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2667if (method.IsOverride && method.GetConstructedLeastOverriddenMethod(this, requireSameReturnType: false).ContainingType.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object) 4758((!symbol.IsAbstract && !symbol.IsVirtual && !symbol.IsOverride) || symbol.IsSealed))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (5)
538if (member.IsOverride) 576if (member.IsOverride) 617if (member.IsOverride) 890else if (!overriddenMember.IsVirtual && !overriddenMember.IsAbstract && !overriddenMember.IsOverride && 1588(hiddenMember.IsAbstract || hiddenMember.IsVirtual || hiddenMember.IsOverride) &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
641diagnostics.Add(IsOverride 724else if (this.IsOverride)
Symbols\Source\SourceTypeParameterSymbol.cs (2)
831Debug.Assert(method.IsOverride); 835} while (((object)method != null) && method.IsOverride);
Symbols\Symbol.cs (2)
574/// Even for metadata symbols, <see cref="IsOverride"/> = true does not imply that <see cref="IMethodSymbol.OverriddenMethod"/> will 1772get { return this.IsOverride; }
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
179!(containingType.IsSealed || candidate.IsOverride || candidate.IsVirtual || candidate.IsAbstract) ||
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
110if (!overriding.IsOverride)
Symbols\Synthesized\Records\SynthesizedRecordObjectMethod.cs (1)
35if (!overriding.IsOverride)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
273if (!overriding.IsOverride) 331return !property.IsIndexer && !property.IsOverride && property.GetMethod is not null;
Symbols\Wrapped\WrappedEventSymbol.cs (1)
114return _underlyingEvent.IsOverride;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
153return UnderlyingMethod.IsOverride;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
136return _underlyingProperty.IsOverride;