System.Extensions.ToInt C# (CSharp) Метод

ToInt() публичный статический Метод

public static ToInt ( this anObject ) : int
anObject this
Результат int
        public static int ToInt(this object anObject)
        {
            int ret = 0;
            try { ret = Convert.ToInt32(anObject); }
            catch (Exception) { }
            return ret;
        }