Example #1
0
 public static IDictionary GetEnvironmentVariables()
 {
     // To maintain complete compatibility with prior versions we need to return a Hashtable.
     // We did ship a prior version of Core with LowLevelDictionary, which does iterate the
     // same (e.g. yields DictionaryEntry), but it is not a public type.
     //
     // While we could pass Hashtable back from CoreCLR the type is also defined here. We only
     // want to surface the local Hashtable.
     return(EnvironmentAugments.EnumerateEnvironmentVariables().ToHashtable());
 }
Example #2
0
 public static IDictionary GetEnvironmentVariables(EnvironmentVariableTarget target)
 {
     // See comments in GetEnvironmentVariables()
     return(EnvironmentAugments.EnumerateEnvironmentVariables(target).ToHashtable());
 }