&tag(CSharp/Tips);
- C# デバッグ構成のプロジェクト設定によると Visual C#プロジェクトの場合、デフォルトで<プロジェクトルート>\bin\debugが作業ディレクトリとなる。
- VC++の場合<プロジェクトルート>が作業ディレクトリだったが異なっているので注意が必要。
ValidationAttributeを使う†[edit]
- 参照設定でSystem.ComponentModel.DataAnnotationsを参照する。
Assertを使う†[edit]
Debug.Assert(condition, message)で使用可能。
Debug.Assert(x > 10, "xが10より大きくありません");