- 336 名前:デフォルトの名無しさん mailto:sage [2017/09/18(月) 06:00:31.65 ID:Yvok/w5K.net]
- クラスでListや配列を扱う勉強してます
以下はテキストボックスを使ってListをどう扱えば良いのかを考えている実験用ソースです public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { string hyouji; TextBox textbox01 = new TextBox(); this.Controls.Add(textbox01); hyouji = Test01(); textbox01.Text = hyouji; } private string Test01()//テスト用オブジェ作成メソッド { List<string> testList = new List<string> { "a", "b" ,"あ","ん"}; Testclass jikken; jikken = new Testclass(); jikken.youso = testList; return jikken.test(); } }
|

|