Units.getEnv C# (CSharp) Method