7 references to RuntimeSupportsCovariantReturnsOfClasses
Microsoft.CodeAnalysis.CSharp (7)
Symbols\AssemblySymbol.cs (1)
426return this.RuntimeSupportsCovariantReturnsOfClasses;
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
948if (method.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
870if (!this.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && overridingMember is MethodSymbol overridingMethod) 1028if (!overridingMethod.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses) 1098if (!overridingProperty.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses) 1236if (overridingSymbol.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses &&
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
98return (ReturnType: !ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && VirtualCloneInBase(ContainingType) is { } baseClone ?