In C# can you create a class with a 'value' attribute without causing any problems e.g.
value is a keyword, so I want to know if this is possible. Does it cause side effects. I currently have a class like this which compiles, but seems to cause exceptions somewhere internally in .NET when it is used. (ever so usefully on a seperate thread too so the exception kills the whole process)
Thanks,
Code:
class MyClass
{
String name;
String value;
};
value is a keyword, so I want to know if this is possible. Does it cause side effects. I currently have a class like this which compiles, but seems to cause exceptions somewhere internally in .NET when it is used. (ever so usefully on a seperate thread too so the exception kills the whole process)
Thanks,