In my dream world I own so may cars I forget which ones have turbo chargers.. so..
List<Car> myCars = new List<Car>(); List<Car> myCarsWithTurbo = cars.FindAll(t => t.HasTurbo) OR more importantly I want to get rid of my cars that don't have turbo charges since they're so dang slow... List<Car> myCars = new List<Car>(); myCars.RemoveAll(t => !t.HasTurbo); On Oct 6, 10:59 am, "Tuna Toksöz" <[EMAIL PROTECTED]> wrote: > I didn't get it,can you give me a sample what you could do before? > > > > On Mon, Oct 6, 2008 at 7:57 PM, Shane C <[EMAIL PROTECTED]> wrote: > > > I'm very use to using the full functionality of List<T> > > (.Find, .Exists, etc) but now that I'm using NH I find I've lost > > access to this. In .Net 2.0/3.0 I could make a IRichList and in .Net > > 3.5 I could write extension methods to IList that would give me the > > methods via casting. > > > Since NH is under the covers managing my IList's they are no longer > > really Lists so casting is out the window now. I figure I can't be > > the only person on the earth that used this functionality so if you > > too were missing these methods were you able to find a way to get them > > back? > > > The only thing I could come up with was creating a new list and > > calling the method each time I needed it. That to me seems a might > > bit nasty. > > > Thanks, > > > Shane > > -- > Tuna Toksöz > > Typos included to enhance the readers attention! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
