Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

value keyword

Status
Not open for further replies.

Crisps

Programmer
Sep 28, 2006
26
US
In C# can you create a class with a 'value' attribute without causing any problems e.g.

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,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top