diff --git a/GFramework.Core/ioc/IocContainer.cs b/GFramework.Core/ioc/IocContainer.cs index d15661e..1ec53d6 100644 --- a/GFramework.Core/ioc/IocContainer.cs +++ b/GFramework.Core/ioc/IocContainer.cs @@ -32,7 +32,7 @@ public class IocContainer $"Singleton already registered for type: {type.Name}"); } - _instances[type] = new List { instance! }; + _instances[type] = [instance!]; } /// @@ -82,7 +82,7 @@ public class IocContainer { if (!_instances.TryGetValue(type, out var list)) { - list = new List(); + list = []; _instances[type] = list; }