SqlToGraphite.Plugin.Wmi.WmiClient.ConvertToInt C# (CSharp) Method

ConvertToInt() public static method

public static ConvertToInt ( string value ) : int
value string
return int
        public static int ConvertToInt(string value)
        {
            var l = Convert.ToInt64(value);
            if (l > Int16.MaxValue)
            {
                l = l / 1024;
            }

            return Convert.ToInt32(l);
        }