mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
feat: tanks tree mock data
This commit is contained in:
1 parent
8999a1e005
commit
094eca3f5c
6 files changed
+144
-123
No files matched your search
@@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace WotBlitzStatisticsPro.Blazor.Helpers
|
||||
{
|
||||
public static class JTokenHelper
|
||||
{
|
||||
public static bool IsNullOrEmpty(this JToken token)
|
||||
{
|
||||
return (token == null) ||
|
||||
(token.Type == JTokenType.Array && !token.HasValues) ||
|
||||
(token.Type == JTokenType.Object && !token.HasValues) ||
|
||||
(token.Type == JTokenType.String && token.ToString() == string.Empty) ||
|
||||
(token.Type == JTokenType.Null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user