Sharpen.Runtime.GetProperties C# (CSharp) Method

GetProperties() public static method

public static GetProperties ( ) : Hashtable
return System.Collections.Hashtable
        public static Hashtable GetProperties()
        {
            if (properties == null) {
                properties = new Hashtable ();
                properties ["user.home"] = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
                properties ["java.library.path"] = Environment.GetEnvironmentVariable ("PATH");
                if (Path.DirectorySeparatorChar != '\\')
                    properties ["os.name"] = "Unix";
                else
                    properties ["os.name"] = "Windows";
            }
            return properties;
        }