You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.243
Former-commit-id: ff34202749e8df2aa83f2578b16260b444f50987
This commit is contained in:
parent
804b15604f
commit
3cc9601fd9
@ -862,6 +862,22 @@ namespace System {
|
||||
}
|
||||
}
|
||||
#else
|
||||
public static string GetEnvironmentVariable (string variable, EnvironmentVariableTarget target)
|
||||
{
|
||||
if (target == EnvironmentVariableTarget.Process)
|
||||
return GetEnvironmentVariable (variable);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IDictionary GetEnvironmentVariables (EnvironmentVariableTarget target)
|
||||
{
|
||||
if (target == EnvironmentVariableTarget.Process)
|
||||
return GetEnvironmentVariables ();
|
||||
|
||||
return (IDictionary)new Hashtable ();
|
||||
}
|
||||
|
||||
public static void SetEnvironmentVariable (string variable, string value)
|
||||
{
|
||||
if (variable == null)
|
||||
@ -875,6 +891,14 @@ namespace System {
|
||||
|
||||
InternalSetEnvironmentVariable (variable, value);
|
||||
}
|
||||
|
||||
public static void SetEnvironmentVariable (string variable, string value, EnvironmentVariableTarget target)
|
||||
{
|
||||
if (target == EnvironmentVariableTarget.Process)
|
||||
SetEnvironmentVariable (variable, value);
|
||||
|
||||
// other targets ignored
|
||||
}
|
||||
#endif
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
internal static extern void InternalSetEnvironmentVariable (string variable, string value);
|
||||
|
Reference in New Issue
Block a user