NanoByte.Common  2.10.5
NanoByte.Common.Native.OSUtils Class Reference

Provides helper methods related to operating system functionality across multiple platforms. More...

Static Public Member Functions

static string ExpandVariables (string value, IDictionary< string, string > variables)
 Expands/substitutes any Unix-style environment variables in the string. More...
 
static string ExpandVariables (string value, StringDictionary variables)
 Expands/substitutes any Unix-style environment variables in the string. More...
 

Detailed Description

Provides helper methods related to operating system functionality across multiple platforms.

Member Function Documentation

◆ ExpandVariables() [1/2]

static string NanoByte.Common.Native.OSUtils.ExpandVariables ( string  value,
IDictionary< string, string >  variables 
)
inlinestatic

Expands/substitutes any Unix-style environment variables in the string.

Parameters
valueThe string containing variables to be expanded.
variablesThe list of variables available for expansion.

Supports default values for unset variables (${VAR-default}) and for unset or empty variables (${VAR:-default}).

◆ ExpandVariables() [2/2]

static string NanoByte.Common.Native.OSUtils.ExpandVariables ( string  value,
StringDictionary  variables 
)
inlinestatic

Expands/substitutes any Unix-style environment variables in the string.

Parameters
valueThe string containing variables to be expanded.
variablesThe list of variables available for expansion.

Supports default values for unset variables (${VAR-default}) and for unset or empty variables (${VAR:-default}).


The documentation for this class was generated from the following file: