Open sandboxFocus

Class ProjectFeatures

Exposes capabilities of the target project based on the target framework(s) and language version.

Inheritance
ProjectFeatures
Namespace: Metalama.Framework.Project
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public abstract class ProjectFeatures

Constructors

Name Description
ProjectFeatures()

Properties

Name Description
SupportsCovariantReturnTypes

Gets a value indicating whether the target runtime supports covariant return types in method overrides. This requires .NET 5.0+ runtime and C# 9.0+ language version. When the project targets multiple frameworks, this returns false if any target does not support the feature.

Extension Methods