/// <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");
/// <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");
/// <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");