You can use System.Reflection to get an object's member
(property/method/etc) by name, then use the Invoke method on the memberinfo
instance to call it.
However, I'm not sure I see a corillation between CallByName and what you
are trying to do in your loop.
-Rob Teixeira [MVP]
"MFRASER" <mf*****@henwoodenergy.com> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
Is there any CallbyName function inside of C#.
I need to shift my items in a collection
Psuedo code
aItem has hours 1-24 and I need to be able to shift the hours.
foreach(MapItem aItem in aCol.Items)
{
}