https://code.msdn.microsoft.com/10-C-6d9ce545 public static void Swap<T>(ref T LeftParam, ref T RightParam) // ジェネリック型を指定。入れ替えのため、ref T で渡す { T temp; // パラメータの左側と右側を入れ替える temp = LeftParam; LeftParam = RightParam; RightParam = temp; } private void button1_Click(object sender, EventArgs e) { // 変数にテキストボックスからの値を設定 string a = this.textBox1.Text; string b = this.textBox2.Text; // メソッド呼び出し前の表示 MessageBo
![直列つなぎ。 -とある発達障害者の記録](https://cdn-ak-scissors.b.st-hatena.com/image/square/e5994962a4585938a9e4e95bff8ad99ccf2d8ad5/height=288;version=1;width=512/https%3A%2F%2Fblog-imgs-96.fc2.com%2Fm%2Fo%2Fj%2Fmojakouinfotaker%2Findex.jpg)