A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Tuesday, July 22, 2008

Parsing string to method

I have a class with a lot of properties (40). I call this class by example:  Auto.property1 or Auto.property2 etcetera. (Auto is name of the class).

Now I have a string that can contain one of the 40 propertyNames. How can I parse the string so the propertie can be called (c#), ie.  If i have a string temp with the value "Propertie2", how can I dynamicly call this propertie in the Auto class ?

Thanks in advance!!!!!



Read Full article Here.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy