G
Guest
I am writing custom collections for my business objects but I need support
for the foreach construct. I also need key support so I am inheriting from
NameObjectCollectionBase. I need to support foreach something like
e.g. foreach (HostSystem hs in myHost.Systems)
Unfortunately the builtin support for foreach only returns the keys of the
collection. Anyone have an sample code on how to accomplish this with each
of my custom collections.
Thanks
Mark
for the foreach construct. I also need key support so I am inheriting from
NameObjectCollectionBase. I need to support foreach something like
e.g. foreach (HostSystem hs in myHost.Systems)
Unfortunately the builtin support for foreach only returns the keys of the
collection. Anyone have an sample code on how to accomplish this with each
of my custom collections.
Thanks
Mark