20 lines
374 B
C#
20 lines
374 B
C#
using System.Collections.Generic;
|
|
|
|
namespace zero.Core.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());
|
|
}
|
|
}
|
|
}
|
|
}
|