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;
        }