Results 1 to 6 of 6

Thread: [02/03] Enumerating a subset of a strongly typed collection

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    [02/03] Enumerating a subset of a strongly typed collection

    Hi

    I have a strongly typed collection of Employee objects called EmployeeCollection and the Employee object exposes a property for departmentCode. I need to do some processing on employees belonging to specific departments so I though I'd have a method that would expose a filtered view of the collection. After some digging it looks like I need to implement my own Enumeration class using IEnumerator. Can someone point me to some good code samples on how to achieve this?

    I'm using VS.NET 2003

    Thanks
    Last edited by Mr.No; Oct 20th, 2007 at 11:39 AM. Reason: change title
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width