Exemplo n.º 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");
Exemplo n.º 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");
Exemplo n.º 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");