1 write to IsLangVersion11AndAbove
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
18
IsLangVersion11AndAbove
= ((CSharpCompilation)compilation).LanguageVersion >= Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp11;
3 references to IsLangVersion11AndAbove
Microsoft.Extensions.Options.SourceGeneration (3)
Emitter.cs (1)
44
if (!_optionsSourceGenContext.
IsLangVersion11AndAbove
)
OptionsSourceGenContext.cs (2)
19
ClassModifier =
IsLangVersion11AndAbove
? "file" : "internal";
20
Suffix =
IsLangVersion11AndAbove
? "" : $"_{GetNonRandomizedHashCode(compilation.SourceModule.Name):X8}";