Files
StructureHelper/StructureHelperCommon/Models/Parameters/NamedCollection.cs
2024-01-20 15:12:07 +05:00

26 lines
641 B
C#

using StructureHelperCommon.Infrastructures.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Parameters
{
public class NamedCollection<T> : ISaveable
{
public Guid Id { get; }
public string Name { get; set; }
public List<T> Collection { get; set; }
public NamedCollection(Guid id)
{
Id = id;
Name = string.Empty;
Collection = new List<T>();
}
public NamedCollection() : this(Guid.NewGuid())
{
}
}
}