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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top