Hey all,
New language for me this C#, have to use it for my course at Uni. Anyway I have come to a situation where the perfect solution would be if I could interpret a string as a variable name.
Example
Any ideas? It would be great if this is actually possible.Code:int myInteger = 10; string varName = "myInteger"; int returnFunc(string varName) { return <whatever variable has a name the same as the value in varName> }
Thanks
Ironfistchamp
Bookmarks