解析
- 他會尋找匹配的構造方法來創建對象
- CreateInstance(Type, Boolean)
- true if a public or nonpublic parameterless constructor can match; false if only a public parameterless constructor can match.
- 如果一個公共或者非公共無參構造器可以匹配當true的時候
- 僅當公共無參構造器匹配的時候
this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
在書上學到繪圖驗證碼示例,記錄一下 //生成驗證碼 public string CheckCode() { int number; char code;