Exemplo n.º 1
0
        internal static CIdentifiers <T> New(Action <Action <T> > aAddItems, CGetIdFunc aGetId)
        {
            var aItems = new List <T>();

            aAddItems(aItems.Add);
            var aIds = new CIdentifiers <T>(aItems, aGetId);

            aIds.Init();
            return(aIds);
        }
Exemplo n.º 2
0
 internal CIdentifiers(IEnumerable <T> aItems, CGetIdFunc aGetIdFunc)
 {
     this.Items     = aItems.ToArray();
     this.GetIdFunc = aGetIdFunc;
 }