c# - Applying automatic and hidden filtering to a List<T> -
ok.
i have class myclass , class based on list. let's call mycollection.
now when types:
mycollection coll = new mycollection(); ... coll.find(...)
they acting on entire collection. want apply filtering - behind scenes - if write above code, actually executes like...
coll.where(x=>x.canseethis).find(...)
what need write in definition of mycollection class make work?
can make work?
you want write wrapper class implements ilist
or icollection
, using regular list
internally. wrapper class proxy method calls internal list, applying filter required.
Comments
Post a Comment