CallbyName in C#

  • Thread starter Thread starter MFRASER
  • Start date Start date
M

MFRASER

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)

{

}
 
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]
 
Back
Top