ChipDemo/Core/Features/FeatureList.cs

17 lines
419 B
C#
Raw Normal View History

2023-04-07 22:10:35 +08:00
using System.Collections.ObjectModel;
using Demo.Models;
namespace Demo.Features;
/// <summary>
/// 功能列表容器
/// </summary>
/// <typeparam name="TMetadata"></typeparam>
2023-04-08 08:35:57 +08:00
public class FeatureList<TMetadata> : Dictionary<string, Feature>
2023-04-07 22:10:35 +08:00
where TMetadata : IMetadata
{
2023-04-08 08:35:57 +08:00
public FeatureList(IDictionary<string, Feature>? list = null)
: base(list ?? new Dictionary<string, Feature>())
2023-04-07 22:10:35 +08:00
{
}
}