Search Results for

    Show / Hide Table of Contents

    Class RuntimeInfo

    Runtime information about the current operating system and .NET. Use it for logging purposes and to select different code paths.

    Inheritance
    Object
    RuntimeInfo
    Namespace: actionETL
    Assembly: actionETL.dll
    Syntax
    public static class RuntimeInfo

    Fields

    FrameworkDescription

    The .NET framework description, e.g. ".NET Framework 4.7.2", ".NET 6.0.0", etc.

    Declaration
    public static readonly string FrameworkDescription
    Field Value
    Type Description
    String

    FrameworkName

    The .NET framework name, i.e. ".NET Framework", ".NET Core", or ".NET" (for .NET 5+).

    Declaration
    public static readonly string FrameworkName
    Field Value
    Type Description
    String

    FrameworkVersion

    The .NET framework version as an object Major.Minor.Patch, e.g. "4.6.2" for .NET Framework 4.6.2, "6.0.0" for .NET 6.0.0, etc.

    Declaration
    public static readonly Version FrameworkVersion
    Field Value
    Type Description
    Version

    IsNet

    true if running .NET 5 or later; otherwise false.

    Declaration
    public static readonly bool IsNet
    Field Value
    Type Description
    Boolean

    IsNetCore

    true if running .NET Core 2.x or 3.x, or .NET 5+; otherwise false.

    Declaration
    public static readonly bool IsNetCore
    Field Value
    Type Description
    Boolean

    IsNetFramework

    true if running .NET Framework; otherwise false.

    Declaration
    public static readonly bool IsNetFramework
    Field Value
    Type Description
    Boolean

    Properties

    IsLinux

    true if the operating system is Linux, otherwise false.

    Declaration
    public static bool IsLinux { get; }
    Property Value
    Type Description
    Boolean

    IsMacOS

    true if the operating system is Mac OS (i.e. OSX), otherwise false.

    Declaration
    public static bool IsMacOS { get; }
    Property Value
    Type Description
    Boolean

    IsWindows

    true if the operating system is Windows, otherwise false.

    Declaration
    public static bool IsWindows { get; }
    Property Value
    Type Description
    Boolean
    In This Article
    Back to top Copyright © 2023 Envobi Ltd