Skip to content

Commit 6819c3a

Browse files
committed
remove all no need using
去掉不必要的引用
1 parent a924b22 commit 6819c3a

117 files changed

Lines changed: 58 additions & 433 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[*.cs]
2+
3+
# IDE0005: Using 指令是不需要的。
4+
dotnet_diagnostic.IDE0005.severity = warning

Blog.Core.Common/DB/BaseDBConfig.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Newtonsoft.Json;
2-
using Newtonsoft.Json.Linq;
3-
using System;
1+
using System;
42
using System.Collections.Generic;
53
using System.IO;
64
using System.Linq;

Blog.Core.Common/DB/MainDb.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace Blog.Core.Common.DB
1+
namespace Blog.Core.Common.DB
62
{
73
public static class MainDb
84
{

Blog.Core.Common/Helper/Appsettings.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
using Microsoft.AspNetCore.Hosting;
2-
using Microsoft.Extensions.Configuration;
1+
using Microsoft.Extensions.Configuration;
32
using Microsoft.Extensions.Configuration.Json;
43
using System;
54
using System.Collections.Generic;
6-
using System.IO;
75
using System.Linq;
8-
using System.Text;
96

107
namespace Blog.Core.Common
118
{

Blog.Core.Common/Helper/ConsoleHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace Blog.Core.Common.Helper
64
{

Blog.Core.Common/Helper/DateHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace Blog.Core.Common.Helper
64
{

Blog.Core.Common/Helper/FileHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.IO;
4-
using System.Linq;
53
using System.Text;
64

75
namespace Blog.Core.Common.Helper

Blog.Core.Common/Helper/GetNetData.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using Newtonsoft.Json.Linq;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.IO;
1+
using System.IO;
52
using System.Net;
63
using System.Text;
74

Blog.Core.Common/Helper/HtmlHelper.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace Blog.Core.Common.Helper
1+
namespace Blog.Core.Common.Helper
62
{
73
public static class HtmlHelper
84
{

Blog.Core.Common/Helper/JsonHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Text;
43

54
namespace Blog.Core.Common.Helper
65
{

0 commit comments

Comments
 (0)