{
get
{
- AssemblyFileVersionAttribute attr = (AssemblyFileVersionAttribute)(typeof(object).GetTypeInfo().Assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute)));
- Debug.Assert(attr != null);
- return s_frameworkDescription ??
- (s_frameworkDescription = $"{FrameworkName} {attr.Version}");
+ if (s_frameworkDescription == null)
+ {
+ AssemblyFileVersionAttribute attr = (AssemblyFileVersionAttribute)(typeof(object).GetTypeInfo().Assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute)));
+ Debug.Assert(attr != null);
+ s_frameworkDescription = $"{FrameworkName} {attr.Version}";
+ }
+
+ return s_frameworkDescription;
}
}
}