MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsLanguage­Version
Open sandboxFocus

TestOptions.LanguageVersion Property

LanguageVersion

Gets or sets the version of the C# language that the test should be compiled with. To set this option in a test, add this comment to your test file: // @LanguageVersion(version).

Declaration
public Nullable<LanguageVersion> LanguageVersion { get; set; }
Property Value
Type Description
Nullable<Microsoft.CodeAnalysis.CSharp.LanguageVersion>