Skip to content

Commit 1174e5c

Browse files
committed
添加 CommonHelper 类的 SystemSettings 静态属性
在 CommonHelper.cs 文件中,移除了 using System.ComponentModel; 语句,并添加了 using System.Collections.Concurrent; 和 using System.ComponentModel; 语句。 在 CommonHelper 类中,添加了一个新的静态属性 SystemSettings,类型为 ConcurrentDictionary<String, String>,并进行了初始化。
1 parent 1a2961c commit 1174e5c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Pek.AspNetCore/CommonHelper.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.ComponentModel;
1+
using System.Collections.Concurrent;
2+
using System.ComponentModel;
23
using System.Globalization;
34
using System.Net;
45
using System.Reflection;
@@ -364,4 +365,10 @@ public static int GetDifferenceInYears(DateTime startDate, DateTime endDate)
364365
}
365366

366367
#endregion
368+
369+
/// <summary>
370+
/// 系统设定
371+
/// </summary>
372+
public static ConcurrentDictionary<String, String> SystemSettings { get; set; } = new();
373+
367374
}

0 commit comments

Comments
 (0)