Interface DebugPrint
Apply this interface to an object to added .Debug support to that object. Otherwise .ToString will be used instead.
public interface DebugPrint
- Extension Methods
Methods
EnumerateFields()
Should return a list of field names and their values so that they can be included in the .Debug output.
IEnumerable<(string, object)> EnumerateFields()
Returns
- IEnumerable<(string, object)>
RegisterCustomType<T>(CustomDebugPrint<T>)
Register custom enumeration method for Debug Print.
public static void RegisterCustomType<T>(DebugPrint.CustomDebugPrint<T> enumerateField)
Parameters
enumerateFieldDebugPrint.CustomDebugPrint<T>
Type Parameters
T