How I can get c# version from my code on run time? I use .net core. For example I can get framework version with this code:
FrameworkName = Assembly
.GetEntryAssembly()?
.GetCustomAttribute<TargetFrameworkAttribute>()?
.FrameworkName
And I need something similar for C# version.