&tag(CSharp); *目次 [#dfcd1abb] #contents *参考情報 [#q8608107] **イベント [#ze2a5c82] -[[イベント (C# によるプログラミング入門):http://ufcpp.net/study/csharp/sp_event.html]] -[[How to: Implement Interface Events (C#):http://msdn.microsoft.com/en-us/library/ak9w5846(v=vs.80).aspx]] -[[VB6開発者向け:C#で始める.NETプログラミング:第7回 オブジェクト指向プログラミング(2)|gihyo.jp … 技術評論社:http://gihyo.jp/dev/serial/01/vb62csharp/0007]] *関連ページ [#h4ad7526] -[[./メタプログラミング]] *Tips [#n3ecd1fc] **文字列 [#kc32ad07] ***書式指定でフォーマットする。 [#oe2443be] String.Format(format, arg1, arg2...)を使う。 #pre{{ String.Format("xの値は{0}です。yの値は{1}です。", x, y); }} **デバッグ [#t65c6a8e] ***Assertを使う [#kab15c11] Debug.Assert(condition, message)で使用可能。 #pre{{ Debug.Assert(x > 10, "xが10より大きくありません"); }}