473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Interesting VB.NET Intellisense

Hi,

Seems like VB.NET Intellisense and complier does check for method
definitions much. The following code compiles with no errors in VB.NET! (but
of course, trust C# to be strict and perfect :) )

[c#]
public class MyOwnClass
{
public void Print()
{
Console.WriteLine("Print");
}
}

static void Main(string[] args)
{
object myObj = new MyOwnClass();
myObj.Print();
}

[VB.NET]
Public Class MyOwnClass
Public Sub Print()
Console.WriteLine("Print")
End Sub
End Class

Module Module1

Sub Main()
Dim myObject As Object = New MyOwnClass
myObject.Print()
End Sub

End Module

I believe i read somehere about VB being dynamin binding or
something....dunno whether this is something to do with it.

--
Rakesh Rajan
Nov 22 '05 #1
18 1222
Rakesh,

This is something the people who use VBNet do hate in C#, it has many legacy
restrictions from C and that is needed because it does not use intellisense
in the IDE which can help the programmer with the exeption than that C# is
showing some more information (wherefore is the documenter which is not in
VBNet until 2005).

In VBNet does "object.whatever" mean by default "object.whatever()" what it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist in
C#.

When you are talking about binding, than has VBNet two possibilities, with
late binding and early binding.

Late binding can be very effective for modeling however not good for real
production software because it can give unpredicted errors. It is easy to
set in VBNet as a option in the IDE to use always option strict on, and than
it is exactly the same as with C#.

I hope this gives some idea's

(When you translate a language by the way, do than not use the style of code
you are used to by your regular code, the sample you showed from VBNet would
be made by a VBNet programmer much simpler).

Cor
Nov 22 '05 #2
Sorry...i meant "Seems like VB.NET Intellisense and complier does NOT check
for method definitions much. The following code compiles with no errors in
VB.NET!"....missed a NOT :)

"

"Rakesh Rajan" wrote:
Hi,

Seems like VB.NET Intellisense and complier does check for method
definitions much. The following code compiles with no errors in VB.NET! (but
of course, trust C# to be strict and perfect :) )

[c#]
public class MyOwnClass
{
public void Print()
{
Console.WriteLine("Print");
}
}

static void Main(string[] args)
{
object myObj = new MyOwnClass();
myObj.Print();
}

[VB.NET]
Public Class MyOwnClass
Public Sub Print()
Console.WriteLine("Print")
End Sub
End Class

Module Module1

Sub Main()
Dim myObject As Object = New MyOwnClass
myObject.Print()
End Sub

End Module

I believe i read somehere about VB being dynamin binding or
something....dunno whether this is something to do with it.

--
Rakesh Rajan

Nov 22 '05 #3
Are you a VB.NETter? ;)
In VBNet does "object.whatever" mean by default "object.whatever()" what it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist in
C#.

I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas this
would be caught @ compile time in C# (much better).

Nov 22 '05 #4
Rakesh,

This is something the people who use VBNet do hate in C#, it has many legacy
restrictions from C and that is needed because it does not use intellisense
in the IDE which can help the programmer with the exeption than that C# is
showing some more information (wherefore is the documenter which is not in
VBNet until 2005).

In VBNet does "object.whatever" mean by default "object.whatever()" what it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist in
C#.

When you are talking about binding, than has VBNet two possibilities, with
late binding and early binding.

Late binding can be very effective for modeling however not good for real
production software because it can give unpredicted errors. It is easy to
set in VBNet as a option in the IDE to use always option strict on, and than
it is exactly the same as with C#.

I hope this gives some idea's

(When you translate a language by the way, do than not use the style of code
you are used to by your regular code, the sample you showed from VBNet would
be made by a VBNet programmer much simpler).

Cor
Nov 22 '05 #5
I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas this would be caught @ compile time in C# (much better).


The errors are catched when typing in the IDE directly with VBNet, The VBNet
IDE corrects as well by instance although not directly needed as well all
cases.

There is one argument that this is not a good method; This checking while
typing cost time, so especially on more older computers the C# way of doing
it is than better.

I hope this makes it even more clear.

For me is this a major reason why I am a VBNetter yes. The language
differences itself are very fair and are not a reason for me.

Cor
Nov 22 '05 #6
Are you a VB.NETter? ;)
In VBNet does "object.whatever" mean by default "object.whatever()" what it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist in
C#.

I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas this
would be caught @ compile time in C# (much better).

Nov 22 '05 #7
I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas this would be caught @ compile time in C# (much better).


The errors are catched when typing in the IDE directly with VBNet, The VBNet
IDE corrects as well by instance although not directly needed as well all
cases.

There is one argument that this is not a good method; This checking while
typing cost time, so especially on more older computers the C# way of doing
it is than better.

I hope this makes it even more clear.

For me is this a major reason why I am a VBNetter yes. The language
differences itself are very fair and are not a reason for me.

Cor
Nov 22 '05 #8
I'm a VB.NETter too. I have done some programming in C# but much prefer the
forgiveability (that might not be a real word) of VB. If I misspell a method
then VB will complain to me that the method does not exist. This is because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
Are you a VB.NETter? ;)
In VBNet does "object.whatever" mean by default "object.whatever()" what
it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist
in
C#.

I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas
this
would be caught @ compile time in C# (much better).

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
Nov 22 '05 #9
All you said are very much true...but I must say that C# is more OOPs-like,
and that makes a significant difference....hmm...is this thread yet another
beginning of the 'language wars'? ;)

"Mick Doherty" wrote:
I'm a VB.NETter too. I have done some programming in C# but much prefer the
forgiveability (that might not be a real word) of VB. If I misspell a method
then VB will complain to me that the method does not exist. This is because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
Are you a VB.NETter? ;)
In VBNet does "object.whatever" mean by default "object.whatever()" what
it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist
in
C#.

I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas
this
would be caught @ compile time in C# (much better).

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

Nov 22 '05 #10
I'm a VB.NETter too. I have done some programming in C# but much prefer the
forgiveability (that might not be a real word) of VB. If I misspell a method
then VB will complain to me that the method does not exist. This is because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
Are you a VB.NETter? ;)
In VBNet does "object.whatever" mean by default "object.whatever()" what
it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist
in
C#.

I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas
this
would be caught @ compile time in C# (much better).

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
Nov 22 '05 #11
All you said are very much true...but I must say that C# is more OOPs-like,
and that makes a significant difference....hmm...is this thread yet another
beginning of the 'language wars'? ;)

"Mick Doherty" wrote:
I'm a VB.NETter too. I have done some programming in C# but much prefer the
forgiveability (that might not be a real word) of VB. If I misspell a method
then VB will complain to me that the method does not exist. This is because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
Are you a VB.NETter? ;)
In VBNet does "object.whatever" mean by default "object.whatever()" what
it
would be in classic C. What can it be else, however it is checked with
background compiling by the IDE in VBNet, a feature that does not exist
in
C#.

I don't understand how this feature could be useful - won't this result in
errors that could be easily prevented? For example, if someone misspells a
method name in VB.NET - this would create a run-time exception, whereas
this
would be caught @ compile time in C# (much better).

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

Nov 22 '05 #12
All you said are very much true...but I must say that C# is more OOPs-like, and that makes a significant difference...


Why just give some examples,

This is not a war however I was almost sure you was missing that part of the
checking of typing in VBNet so that I tried to explain for you.

The first time I used C# (I started with VBNet) I was expecting that it was
there as well. So probably your starting message was because you did not
know that this was in VBNet.

However explain to use why in your opinion C# is more OOP than VBNet, I am
currious about it because it is really again an message we see seldom in
this dotNet newsgroups, even not when people are telling why the one
language is better than the other (what I do not, I am only talking about
the IDE which I prefer).

Cor

Nov 22 '05 #13
All you said are very much true...but I must say that C# is more OOPs-like, and that makes a significant difference...


Why just give some examples,

This is not a war however I was almost sure you was missing that part of the
checking of typing in VBNet so that I tried to explain for you.

The first time I used C# (I started with VBNet) I was expecting that it was
there as well. So probably your starting message was because you did not
know that this was in VBNet.

However explain to use why in your opinion C# is more OOP than VBNet, I am
currious about it because it is really again an message we see seldom in
this dotNet newsgroups, even not when people are telling why the one
language is better than the other (what I do not, I am only talking about
the IDE which I prefer).

Cor

Nov 22 '05 #14
How is it more OOP like?
I don't believe that VB is better than C# or vice versa, I just much prefer
VB. Maybe I am swayed by my VBClassic background, but I don't think so.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
All you said are very much true...but I must say that C# is more
OOPs-like,
and that makes a significant difference....hmm...is this thread yet
another
beginning of the 'language wars'? ;)

"Mick Doherty" wrote:
I'm a VB.NETter too. I have done some programming in C# but much prefer
the
forgiveability (that might not be a real word) of VB. If I misspell a
method
then VB will complain to me that the method does not exist. This is
because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me
to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much
easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used
myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case
Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
> Are you a VB.NETter? ;)
>
>> In VBNet does "object.whatever" mean by default "object.whatever()"
>> what
>> it
>> would be in classic C. What can it be else, however it is checked with
>> background compiling by the IDE in VBNet, a feature that does not
>> exist
>> in
>> C#.
> I don't understand how this feature could be useful - won't this result
> in
> errors that could be easily prevented? For example, if someone
> misspells a
> method name in VB.NET - this would create a run-time exception, whereas
> this
> would be caught @ compile time in C# (much better).
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
Nov 22 '05 #15
How is it more OOP like?
I don't believe that VB is better than C# or vice versa, I just much prefer
VB. Maybe I am swayed by my VBClassic background, but I don't think so.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
All you said are very much true...but I must say that C# is more
OOPs-like,
and that makes a significant difference....hmm...is this thread yet
another
beginning of the 'language wars'? ;)

"Mick Doherty" wrote:
I'm a VB.NETter too. I have done some programming in C# but much prefer
the
forgiveability (that might not be a real word) of VB. If I misspell a
method
then VB will complain to me that the method does not exist. This is
because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me
to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much
easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used
myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case
Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
> Are you a VB.NETter? ;)
>
>> In VBNet does "object.whatever" mean by default "object.whatever()"
>> what
>> it
>> would be in classic C. What can it be else, however it is checked with
>> background compiling by the IDE in VBNet, a feature that does not
>> exist
>> in
>> C#.
> I don't understand how this feature could be useful - won't this result
> in
> errors that could be easily prevented? For example, if someone
> misspells a
> method name in VB.NET - this would create a run-time exception, whereas
> this
> would be caught @ compile time in C# (much better).
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
Nov 22 '05 #16
Cor and Mick,

I feel it's more OOPs like because OOPs started with c++ and c# derives it's
most of it's syntax from c++ and java...most of the keywords map directly
with what OOPs states....with VB.NET, i feel it's more like an 'add-on' to an
existing set of keywords, rather than pure thing u know...

The point i want to bring here is that as C# was developed from scratch
based on OOPs and all, it's seeminlgy very usable.

Don't you feel so?

Rakesh

"Mick Doherty" wrote:
How is it more OOP like?
I don't believe that VB is better than C# or vice versa, I just much prefer
VB. Maybe I am swayed by my VBClassic background, but I don't think so.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
All you said are very much true...but I must say that C# is more
OOPs-like,
and that makes a significant difference....hmm...is this thread yet
another
beginning of the 'language wars'? ;)

"Mick Doherty" wrote:
I'm a VB.NETter too. I have done some programming in C# but much prefer
the
forgiveability (that might not be a real word) of VB. If I misspell a
method
then VB will complain to me that the method does not exist. This is
because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me
to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much
easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used
myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case
Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
> Are you a VB.NETter? ;)
>
>> In VBNet does "object.whatever" mean by default "object.whatever()"
>> what
>> it
>> would be in classic C. What can it be else, however it is checked with
>> background compiling by the IDE in VBNet, a feature that does not
>> exist
>> in
>> C#.
> I don't understand how this feature could be useful - won't this result
> in
> errors that could be easily prevented? For example, if someone
> misspells a
> method name in VB.NET - this would create a run-time exception, whereas
> this
> would be caught @ compile time in C# (much better).
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

Nov 22 '05 #17
Cor and Mick,

I feel it's more OOPs like because OOPs started with c++ and c# derives it's
most of it's syntax from c++ and java...most of the keywords map directly
with what OOPs states....with VB.NET, i feel it's more like an 'add-on' to an
existing set of keywords, rather than pure thing u know...

The point i want to bring here is that as C# was developed from scratch
based on OOPs and all, it's seeminlgy very usable.

Don't you feel so?

Rakesh

"Mick Doherty" wrote:
How is it more OOP like?
I don't believe that VB is better than C# or vice versa, I just much prefer
VB. Maybe I am swayed by my VBClassic background, but I don't think so.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
All you said are very much true...but I must say that C# is more
OOPs-like,
and that makes a significant difference....hmm...is this thread yet
another
beginning of the 'language wars'? ;)

"Mick Doherty" wrote:
I'm a VB.NETter too. I have done some programming in C# but much prefer
the
forgiveability (that might not be a real word) of VB. If I misspell a
method
then VB will complain to me that the method does not exist. This is
because
I have Option Strict On and Option Explicit On.

If I make a mistake in VB the IDE tells me immediately, C# waits for me
to
Build.

Now the main reason that I prefer VB is that it is not case sensitive.
mymethod is exactly the same as myMethod and the IDE will automagically
correct the case for me. C# does not and so I have to spend too much time
correcting case (I'm not a touch typist so I look at the keyboard not the
screen).
If I have 2 different variables/methods I would choose to give them
different names rather than different case, since I find it is much
easier
to read back.

What's the difference between myvar, myVar and MyVar? Which one am I
referring to in myMethod? Did I really mean to use MyVar when I used
myVar?
It may compile just fine but will give me an error which may be hard to
trace. This is the reason that i would not declare variables using
differering case and so I immediately lose the benefit of Case
Sensitivity.

There are things about C# that I do like, but overall I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
> Are you a VB.NETter? ;)
>
>> In VBNet does "object.whatever" mean by default "object.whatever()"
>> what
>> it
>> would be in classic C. What can it be else, however it is checked with
>> background compiling by the IDE in VBNet, a feature that does not
>> exist
>> in
>> C#.
> I don't understand how this feature could be useful - won't this result
> in
> errors that could be easily prevented? For example, if someone
> misspells a
> method name in VB.NET - this would create a run-time exception, whereas
> this
> would be caught @ compile time in C# (much better).
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

Nov 22 '05 #18
Rakesh,

C# derives originaly from C, VBNet derives originaly from BASIC.

However from/in both are in my opinion only a lot of legacy things stayed
and are not really the language anymore.

C#, VBNet, J# and partialy C++ uses exactly the same namespaces (classes).
Where there is as well a VisualBasic namespace which is standard in VBNet
and can implemented in the other languages.

C#, VBNet, J# are completly new designed for OOP. VBNet looks only at BASIC
where it uses a lot of keywords and operators, however those are based on
the English and mathimatical use and you do find them in a lot of other
languages. (especially the operators)

VBNet is working completly different from VB6 which is not an OOP language.

To say it easier, it is not difficult to translate a C# program to VBNet,
there are a lot of good translaters for that. (In my opinion much easier
than VB6 to VBNet wherefore is a "VBcompatible" namespace needed)

There are less for VBNet to C# translators; I think because most do not know
that you can implement the VisualBasic namespace in C#.

Cor

I feel it's more OOPs like because OOPs started with c++ and c# derives it's most of it's syntax from c++ and java...most of the keywords map directly
with what OOPs states....with VB.NET, i feel it's more like an 'add-on' to an existing set of keywords, rather than pure thing u know...

The point i want to bring here is that as C# was developed from scratch
based on OOPs and all, it's seeminlgy very usable.

Don't you feel so?

Rakesh

Nov 22 '05 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: andrew.queisser | last post by:
Yesterday I typed in some C++ code that called a function with two ints. Intellisense (auto-complete) helpfully told me that the first formal parameter was called "frontLight" and the second...
6
by: Stefan Kronberg | last post by:
I'm working on a solution containing about 20 projects. Some of the projects contain class definitions that are used in other of the projects. Most of the time intellisense is working ok, i.e. if I...
10
by: Rakesh Rajan | last post by:
Hi, Seems like VB.NET Intellisense and complier does check for method definitions much. The following code compiles with no errors in VB.NET! (but of course, trust C# to be strict and perfect :)...
1
by: Christopher W. Douglas | last post by:
I'm working in VB.Net, using Visual Studio 2003. I have a project, let's call it Foo, that contains common methods, forms, and objects I use in other projects. It compiles as Foo.dll, which I...
1
by: Yaron | last post by:
Hi, I have a custom ListView-type control that I designed a few months ago. The control is completely stable and functional. However, often, the Visual Studio .NET IDE's Intellisense will lose and...
12
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode....
5
by: wal | last post by:
Hello, I'm using __declspec(property) to access get/set methods as properties (like in C# and VB.NET). Now, the problem is that both the property name and the get/set methods show in the...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
3
by: Travis | last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the Intellisense for that program. I went to try Visual Basic, and the intellisense is so much different. I'll try to make an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.