[Mono-list] Some basic errors, I am sure

Brandon Perry brandon at thresholdofthought.com
Thu Sep 13 17:55:31 EDT 2007


Hi, I am working on my first big project in C# and am getting some
errors that I can't seem to find the problem for.  
 
Code:

TreeView totals = new TreeView(); 
TreeViewColumn item = new TreeViewColumn(); 
//item.Title = "Item"; 
TreeViewColumn price = new TreeViewColumn(); 
//price.Title = "Price"; 
TreeViewColumn quant = new TreeViewColumn(); 
//quant.Title = "Quantity"; 
ListStore itemList = new ListStore(typeof(string),typeof(string),
typeof(string)); 


 
With that bit of code, if I uncomment out the Title lines, I get an
Expected class, delegate, enum, interface, or struct error, as well as a
namespace can only contain types and namespace declarations. As soon as
they are commented out, the code compiles fine. 
 
Any thoughts? 





More information about the Mono-list mailing list