Отметьте свой класс с помощью
[System.Diagnostics.DebuggerDisplay("{ToString()}")]
Тест:
[System.Diagnostics.DebuggerDisplay("{ToString()}")]
class MyClass
{
private string _foo = "This is the text that will be displayed at debugging"
public override string ToString()
{
return _foo;
}
}
Теперь, когда вы наводите указатель мыши на переменную с помощью мыши, он будет показывать This is the text that will be displayed at debugging
.