Table of Contents

Class DotNetRuntime

Namespace
NDepend.DotNet
Assembly
NDepend.API.dll

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

DotNetRuntimeKind

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

kind DotNetRuntimeKind

the kind of .NET runtime.

Returns

bool

IsNetFx(DotNetRuntimeKind)

This extension method returns true if kind is .NET Framework.

public static bool IsNetFx(this DotNetRuntimeKind kind)

Parameters

kind DotNetRuntimeKind

the kind of .NET runtime.

Returns

bool