コード例 #1
0
 /// <summary>
 /// Is the runtime instance .NET Core.
 /// </summary>
 /// <param name="runtime">The runtime instance to check.</param>
 /// <returns>True if it's .NET Core, otherwise false.</returns>
 public static bool IsNetCore(this Runtime runtime) => runtime.IsRuntime(".NET Core");
コード例 #2
0
 /// <summary>
 /// Is the runtime instance Mono.
 /// </summary>
 /// <param name="runtime">The runtime instance to check.</param>
 /// <returns>True if it's Mono, otherwise false.</returns>
 public static bool IsMono(this Runtime runtime) => runtime.IsRuntime("Mono");
コード例 #3
0
 /// <summary>
 /// Is the runtime instance .NET Framework.
 /// </summary>
 /// <param name="runtime">The runtime instance to check.</param>
 /// <returns>True if it's .NET Framework, otherwise false.</returns>
 public static bool IsNetFx(this Runtime runtime) => runtime.IsRuntime(".NET Framework");