Files
mixtape/zero.Core/Identity/Permissions/PermissionGroupCollection.cs
T
2021-11-20 13:52:28 +01:00

18 lines
338 B
C#

using System.Collections.Generic;
namespace zero.Identity;
public class PermissionGroupCollection : List<PermissionCollection>
{
public void Add<T>(int index = -1) where T : PermissionCollection, new()
{
if (index > -1 && index < Count)
{
Insert(index, new T());
}
else
{
Add(new T());
}
}
}