本文整理汇总了C#中System.Runtime.Versioning.FrameworkName.Inequality操作符的典型用法代码示例。如果您正苦于以下问题:C# FrameworkName.Inequality操作符的具体用法?C# FrameworkName.Inequality怎么用?C# FrameworkName.Inequality使用的例子?那么恭喜您, 这里精选的操作符代码示例或许可以为您提供帮助。
在下文中一共展示了FrameworkName.Inequality操作符的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FrameworkName
FrameworkName supportedVer1 = new FrameworkName(".NET Framework, Version=4.0");
FrameworkName actualVersion = new FrameworkName(String.Format(
".NET Framework, Version={0}",
Environment.Version.ToString()));
Console.WriteLine("Supported Version: {0}", supportedVer1);
Console.WriteLine("Actual Version: {0}", actualVersion);
if (supportedVer1 != actualVersion)
Console.WriteLine("The supported and actual Framework versions are different.");
else
Console.WriteLine("The supported and actual Framework versions are the same.");
Console.WriteLine();
输出:
The supported and actual Framework versions are different.