知道一點記一點
裝箱:值類型轉化爲object
int num=3;
string str=" "+num;//產生了裝箱操作
string str=" "+num.ToString();//未產生裝箱操作
拆箱:object轉化爲值類型
知道一點記一點
裝箱:值類型轉化爲object
int num=3;
string str=" "+num;//產生了裝箱操作
string str=" "+num.ToString();//未產生裝箱操作
拆箱:object轉化爲值類型
this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
public partial class MyMessageBox : Window { public static void Show(string strErrorInfo) {