Table of Contents

Struct AppInfo

Namespace
NanoByte.Common.Info
Assembly
NanoByte.Common.dll

Wraps information about an application in a serializer-friendly format.

public struct AppInfo
Extension Methods

Properties

Arguments

The command-line arguments the application was started with.

public string[]? Arguments { readonly get; set; }

Property Value

string[]

The copyright information for the application.

public string? Copyright { readonly get; set; }

Property Value

string

Current

Information about the currently running application (looks at the entry assembly).

public static AppInfo Current { get; }

Property Value

AppInfo

CurrentLibrary

Information about the currently running library (looks at the calling assembly).

public static AppInfo CurrentLibrary { get; }

Property Value

AppInfo

Description

A description of the application.

public string? Description { readonly get; set; }

Property Value

string

Name

The name of the application.

public string? Name { readonly get; set; }

Property Value

string

NameVersion

The Name and Version combined.

public string NameVersion { get; }

Property Value

string

ProductName

The name of the product the application is a part of.

public string? ProductName { readonly get; set; }

Property Value

string

Version

The version number of the application.

public string? Version { readonly get; set; }

Property Value

string

Methods

Load(Assembly?)

Loads application information for a specific System.Reflection.Assembly.

public static AppInfo Load(Assembly? assembly)

Parameters

assembly Assembly

Returns

AppInfo