Appreciate if anyone could check the below and point out which design pattern it follows. If it does not, could suggest a better way?
Looking forward for responses. Thanks in advance.
namespace CloudStorageManager
{
internal abstract class RemoteItemBase
{
internal string Name { get; set; }
string Path { get; set; }
string Parent { get; set; }
}
internal class RemoteItem : RemoteItemBase
{
public RemoteItem()
{
Folders = new List<RemoteItem>();
Files = new List<RemoteItem>();
}
internal virtual ICollection<RemoteItem> Folders { get; set; }
internal virtual ICollection<RemoteItem> Files { get; set; }
}
}
Aucun commentaire:
Enregistrer un commentaire