Ratcow.ObjectDumper/ObjectDumperHelper.cs
/// <summary>
/// Use this method to add a new delegate to the helper for output
/// </summary>
Use this method to add a new delegate to the helper for output
Use this method to add a new delegate to the helper for output
public static void AddOutputHandler(ObjectDumperDelegate handler, bool removeDefaultHandler = true)
        {
            if(removeDefaultHandler && UsingDefaultHandler)
            {
                dumpObjectDelegate -= DefaultOutputHandler;
                UsingDefaultHandler = false;
            }
            dumpObjectDelegate += handler;
        }
public static void AddOutputHandler ( ObjectDumperDelegate handler , bool removeDefaultHandler = true ) { if ( removeDefaultHandler && UsingDefaultHandler ) { dumpObjectDelegate -= DefaultOutputHandler ; UsingDefaultHandler = false ; } dumpObjectDelegate += handler ; }
Use this method to add a new delegate to the helper for output
Use this method to add a new delegate to the helper for output
// remove the default handler as it is not required //add the new handler
handler
ObjectDumperDelegate
removeDefaultHandler
bool