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); }
internal CIdentifiers(IEnumerable <T> aItems, CGetIdFunc aGetIdFunc) { this.Items = aItems.ToArray(); this.GetIdFunc = aGetIdFunc; }