2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

デバッガーでの表示フォーマットを指定するDebuggerDisplay属性

Posted at

参考

この記事は、以下の動画を参考にしています。
詳しくは、動画をご覧ください。

リファレンス

DebuggerDisplayAttribute

DebuggerDisplay属性をクラスやプロパティに付け、デバッカーでそれらの値を表示する際のフォーマットを指定できる。

[DebuggerDisplay("Name={Name, nq}, Age={_age}")] // nq: 引用符なし
class User
{
    public Name { get; }
    private int _age;
    // 以下略
}
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?