Class DotNetRuntime
This class let access the current .NET runtime kind.
public static class DotNetRuntime
- Inheritance
-
DotNetRuntime
- Inherited Members
Property (1)
Kind
The current .NET runtime kind.
public static DotNetRuntimeKind Kind { get; }
Property Value
Methods (2)
IsNetCore(DotNetRuntimeKind)
This extension method returns true if kind is .NET Core or .NET 5/6....
public static bool IsNetCore(this DotNetRuntimeKind kind)
Parameters
kindDotNetRuntimeKindthe kind of .NET runtime.
Returns
IsNetFx(DotNetRuntimeKind)
This extension method returns true if kind is .NET Framework.
public static bool IsNetFx(this DotNetRuntimeKind kind)
Parameters
kindDotNetRuntimeKindthe kind of .NET runtime.