Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

September 2004 - Posts

VB.Net or C#, who cares?

I wanted to react to Dennis's post, but as he disabled comments to his post I created my own. Personally, I don't prefer Vb.Net over C# or vice-versa. Both languages have their advantages and when Whidbey comes along, a lot of features will be identical in both languages. The company I work for prefers to use C#, but I've also used Vb.Net when our clients asked me to.

Dennis changed his namespace and then had to change all his code. He was annoyed by this. But I had to do the same thing yesterday in my C# project. It did not automagically change the references I made in the code. And guess what, had to open all those files myself to make the changes, just like VB.Net. It's DevStudio being the annoying bit here. And I think it's correct that you make these changes manually. If DevStudio did this, then I would be really annoyed.  I was able to change all references to my namespaces with one simple action though: Hold the Ctrl and Shift keys and press H. A replace window shows and you can select Entire solution. Worked fine for me.

I love this in C#:

      string s = (Value ? “True“ : “False“);

But I hate that this is missing:

   With ds.Tables("USERS").Rows(0)
      .Item("Active") = True
   End With

And there are more things like that. So I don't really care which language I have to use. Bottom line is that they both use the .Net Framework anyway. And in the project I work on now I used both. (See this post)

I did NOT disable comments, so if you want to add your 2 cents be my guest.

Posted: Sep 08 2004, 09:36 AM by Jan Schreuder | with 10 comment(s)
Filed under: