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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -