Files
mixtape/zero.Core/Entities/Sections/SectionCollection.cs
T

18 lines
328 B
C#
Raw Normal View History

using System.Collections.Generic;
2020-04-08 00:22:04 +02:00
namespace zero.Core.Entities
{
public class SectionCollection : List<ISection>
{
public void Add<T>() where T : ISection, new()
{
Add(new T());
}
public void Add(string alias, string name, string icon)
{
Add(new Section(alias, name, icon));
}
}
}