-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- You no longer need to call `DumpExtensions.EnableDumping()` to activate Dumping! (#4) - Fixed `IOException: The semaphore timeout period has expired` during some calls to DumpExtensions - `Visual Dump` initialization is much faster now! - Fixed Visual Studio 2019 installation exception (#2)
- Loading branch information
1 parent
6e2d64f
commit b81783d
Showing
42 changed files
with
1,097 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
DumpExtensions/HTMLProviders/DefaultProviders/AssemblyHTMLProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
using System.Reflection; | ||
using VisualDump.Helpers; | ||
using System.Collections.Generic; | ||
|
||
namespace VisualDump.HTMLProviders.DefaultProviders | ||
{ | ||
public class AssemblyHTMLProvider : HTMLProvider | ||
{ | ||
#region Functions | ||
public override string ToHTML(object Obj, params object[] Args) => ToHTML<Assembly>(Obj, a => GetProvider<string>().ToHTML(a.FullName)); | ||
public override string ToHTML(object Obj, Stack<object> CallStack, params object[] Args) => ToHTML<Assembly>(Obj, CallStack, (a, s) => GetProvider<string>().ToHTML(a.FullName, s.CloneAndPush(a))); | ||
#endregion | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
DumpExtensions/HTMLProviders/DefaultProviders/BooleanHTMLProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
namespace VisualDump.HTMLProviders.DefaultProviders | ||
using System.Collections.Generic; | ||
|
||
namespace VisualDump.HTMLProviders.DefaultProviders | ||
{ | ||
public class BooleanHTMLProvider : HTMLProvider | ||
{ | ||
public override string ToHTML(object Obj, params object[] Args) => ToHTML<bool>(Obj, x => $"<div class='keyword'>{(x ? "true" : "false")}</div>"); | ||
public override string ToHTML(object Obj, Stack<object> CallStack, params object[] Args) => ToHTML<bool>(Obj, CallStack, (x, s) => $"<div class='keyword'>{(x ? "true" : "false")}</div>"); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
DumpExtensions/HTMLProviders/DefaultProviders/CharHTMLProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
using System.Web; | ||
using System.Collections.Generic; | ||
|
||
namespace VisualDump.HTMLProviders.DefaultProviders | ||
{ | ||
public class CharHTMLProvider : HTMLProvider | ||
{ | ||
public override string ToHTML(object Obj, params object[] Args) => ToHTML<char>(Obj, x => $"<div class='string'>'{HttpUtility.HtmlEncode(x)}'</div>"); | ||
public override string ToHTML(object Obj, Stack<object> CallStack, params object[] Args) => ToHTML<char>(Obj, CallStack, (x, s) => $"<div class='string'>'{HttpUtility.HtmlEncode(x)}'</div>"); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
DumpExtensions/HTMLProviders/DefaultProviders/CyclicalReferenceHTMLProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
DumpExtensions/HTMLProviders/DefaultProviders/DateTimeHTMLProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace VisualDump.HTMLProviders.DefaultProviders | ||
{ | ||
public class DateTimeHTMLProvider : HTMLProvider | ||
{ | ||
public override string ToHTML(object Obj, params object[] Args) => ToHTML<DateTime>(Obj, x => $"<div class='date'>{x}</div>"); | ||
public override string ToHTML(object Obj, Stack<object> CallStack, params object[] Args) => ToHTML<DateTime>(Obj, CallStack, (x, s) => $"<div class='date'>{x}</div>"); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
DumpExtensions/HTMLProviders/DefaultProviders/EnumHTMLProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Collections.Generic; | ||
|
||
namespace VisualDump.HTMLProviders.DefaultProviders | ||
{ | ||
public class EnumHTMLProvider : HTMLProvider | ||
{ | ||
public override string ToHTML(object Obj, params object[] Args) => ToHTML<Enum>(Obj, x => $"<div><span class='enum'>{x.GetType().Name}</span><span class='text'>.{x}</span> (<span class='number'>{x.GetType().GetMembers().OfType<FieldInfo>().FirstOrDefault(y => y.Name == "value__")?.GetValue(x) ?? 0}</span>)</div>"); | ||
public override string ToHTML(object Obj, Stack<object> CallStack, params object[] Args) => ToHTML<Enum>(Obj, CallStack, (x, s) => $"<div><span class='enum'>{x.GetType().Name}</span><span class='text'>.{x}</span> (<span class='number'>{x.GetType().GetMembers().OfType<FieldInfo>().FirstOrDefault(y => y.Name == "value__")?.GetValue(x) ?? 0}</span>)</div>"); | ||
} | ||
} |
Oops, something went wrong.