Exemplo n.º 1
0
 public UIDStack(UIDStackData info)
 {
     Name = info.Name;
     Ids = new Stack<int>(info.Ids);
     Ids.Reverse();
     Capacity = info.Capacity;
 }
Exemplo n.º 2
0
 public UIDStackData CreateInfo()
 {
     UIDStackData info = new UIDStackData();
     info.Name = Name;
     info.Ids = new List<int>(Ids.ToArray().Reverse());
     info.Capacity = Capacity;
     return info;
 }