Sunday, July 26, 2009

How do you do variable checks in C#?

For example I am checking ASCII codes and I want to check if (variable name) == value.





Currently I have if (-variable- == 8)


//do stuff





but I think C# variable checking only checks to see if the reference is there?





Any help is really appreciated.

How do you do variable checks in C#?
This question seems to be answered in:





http://www.yoda.arachsys.com/csharp/sing...





(However, if you need me to acquire a deeper understanding of the "C# variable" topic in general, so that I can better assist you, please let me know and I will do so for you. It looks somewhat interesting.)





Hope this helps.


No comments:

Post a Comment