ChangeType

string s="10";

int i=(int)Convert.ChangeType(s,typeof(int));

原文地址:https://www.cnblogs.com/xjt360/p/3596666.html