Jason Tucker's Blog

not at all creative...

Why the C# compiler better then the VB.Net compiler...

So I've spent the last several hours on a very stupid problem.

My ASP.Net application wasn't binding to a datagrid that I had setup. So in my attempt to find out what was going on I stripped the VB.net code from the site and placed it in a WinForm.

Still no go, no data was getting binded to the grid. After f'n with it I realized that my function was NOT returning the dataview to the grid.

I know, dumb problem and stupid me for not realizing it, but atleast the C# compiler would have told me that none of the code paths return anything. Arrgghh.. if I could I would have hit the person that started this project in VB.net..

 

Posted: Feb 12 2003, 11:28 AM by jtucker | with 2 comment(s)
Filed under:

Comments

Tom Last Name said:

Yeah... but I don't think anyone would really be that stupid. No offense.
# May 8, 2004 12:32 PM

Kenny said:

I've never had such a problem. I don't need a compiler to tell me such a tiny mistake. Easy to find with the debbuging tools provided.
# May 19, 2004 2:03 PM

marker said:

definately, there is no need to to identify such little tiny problems.
# July 19, 2004 1:44 AM