Seasons.NET

ちょっとした技術ブログです

Entries from 2006-07-01 to 1 day

構造体の配列を初期化するには?

C#

こんな感じでコンストラクタを用意するといいらしい。 1 private struct cellPair 2 { 3 string Cell; 4 string Text; 5 int ColorIndex; 6 int Width; 7 public cellPair(string _cell, string _text, int _clidx, int _width) 8 { 9 Cell = _cell; 10 Text…