|
-
May 21st, 2009, 09:09 AM
#19
Re: Visual Basic vs. C Sharp
 Originally Posted by JuggaloBrotha
Does anyone know if the equals operator is going to be overloaded in c# like it is in vb?
What I mean is in c# will be be able to do this:
Code:
if (SomeVar = SomeValue)
Instead of:
Code:
if (SomeVar == SomeValue)
No.... the first one is an assignment operator.... the second is a comparison operator. Since C# is loosely based on C, I don't expect that to change ever.
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|