properties - Show DebuggerDisplay in PropertyGrid C# -


I was wondering if there could be a text for class in the Dover Display PropertyGrid?

I am unable to find this answer anywhere.

Here's an example of what I have.

This module is organized in an engine class, when I set up the property grid. Selected object = engine instances, I would like to look at the properties grid

engine

+ DebugModuel | "FPS = 60"

FPS | 60

How about this, which displays the same text in the debugger [Type converter (typef (expandable object converter)] Public class debug module: module {public int FPS {get}} ; Set; } Public override string toasting () {return "FPS =" + FPS; }}

or ToString need to use something else, then:

  [DebuggerDisplay ( "{ DebugDisplayText} ")] [Prkarasncharkrta (Taipf (debug Modulcontr))] public class debug module: module {public Inc. received FPS {; Set; } Private string DebugDisplayText {get {return "FPS =" + FPS; }} Public class DebugModuleConverter: ExpandableObjectConverter {public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, commodity price, type DestinationType) {if (destinationType == typeof (string)) {return ((DebugModule) value) .DebugDisplayText ; } Return Base Convert (context, culture, value, destination type); }}}  

Comments