Cleanup some warnings.
This commit is contained in:
@@ -21,7 +21,7 @@ using System.Reflection;
|
||||
public class Singleton<T> where T : class
|
||||
{
|
||||
private static volatile T instance;
|
||||
private static object syncRoot = new object();
|
||||
private static object syncRoot = new();
|
||||
|
||||
public static T Instance
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user