Exemplo n.º 1
0
 public Archetypes <T> AsReadOnly()
 {
     return(Safe.Run(() => {
         var l = new Archetypes <T>();
         l.AddRange(this);
         l.IsReadOnly = true;
         return l;
     }, new Archetypes <T>()));
 }
Exemplo n.º 2
0
 public Archetypes <T> FindAll(Predicate <T> match)
 {
     return(Safe.Run(() => {
         var l = list.FindAll(match);
         var r = new Archetypes <T>();
         r.AddRange(l);
         return r;
     }, new Archetypes <T>()));
 }