C Carl Sadlier Dec 23, 2003 #1 "denotes a 'field' where a 'class' was expected" I am a VB programmer trying to learn Visual C#.
N Nicholas Paldino [.NET/C# MVP] Dec 23, 2003 #2 Carl, Can you show the code that is causing the error?
J Jon Skeet [C# MVP] Dec 23, 2003 #3 Carl Sadlier said: "denotes a 'field' where a 'class' was expected" I am a VB programmer trying to learn Visual C#. Click to expand... I can't remember exactly the situations where that might come up, but if you post an example we can try to explain what it means.
Carl Sadlier said: "denotes a 'field' where a 'class' was expected" I am a VB programmer trying to learn Visual C#. Click to expand... I can't remember exactly the situations where that might come up, but if you post an example we can try to explain what it means.
M Marco Martin Dec 23, 2003 #4 Carl, Can you post the "code snipet" that causes the error? Sounds like a syntax problem to me but it would be better to see it. regards, MArco
Carl, Can you post the "code snipet" that causes the error? Sounds like a syntax problem to me but it would be better to see it. regards, MArco
I Ignacio Machin \( .NET/ C# MVP \) Dec 23, 2003 #5 Hi Carl, IIRC this error usually happen in a "new " assignment like this: DropDownList drop = new dropdownlist (); if it happen that the class has a field named "dropdownlist" the compiler will give you that error. It has happen to me before, only that as Jon's said I dont recall other place where it may happen , if you are lucky you have to above scenario Merry X-Mas,
Hi Carl, IIRC this error usually happen in a "new " assignment like this: DropDownList drop = new dropdownlist (); if it happen that the class has a field named "dropdownlist" the compiler will give you that error. It has happen to me before, only that as Jon's said I dont recall other place where it may happen , if you are lucky you have to above scenario Merry X-Mas,
M Marco Martin Dec 23, 2003 #6 I've also seen it when using wrong class name in ForEach statements. Marco