原创 不用現有方法,把string轉換成int型[C#]

今天聽朋友說到個面試題:不用現有方法,把string轉換成int型 就試着寫了一下,沒有考慮負數的情況,看的朋友可以自己試一下,也不難.    using System; using System.Collections.Generic;