|
|
 |
| General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums. If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

April 19th, 2005, 08:41 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 322
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
operator overloading in VB.NET.
Hi All,
Can anyone tell me how to achive operator overloading in VB.NET?
Suppose, I have two classes viz. Class1 and Class2, and have two instances of them say, cl1 and cl2, and I want to do operation like
---------------------
dim a as integer
a = cl1 % cl2
---------------------
__________________
Rupen Anjaria.[:)]
------------------
It is not difficult to be on TOP...It is difficult when you carry Truth,Commitment and Transparency with you.
|

April 20th, 2005, 05:40 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Unfortunately, you can't. This is one of the few differences between VB.NET and C#.NET. C# lets you do this. VB.NET in the 2.0 framework will support this.
|

April 20th, 2005, 06:00 AM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 322
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Thanks Peter, Can you please tell me more differences between VB.Net and C#.Net?
|

April 20th, 2005, 06:05 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
The only other one I can think of at the moment is the C# support for XML commenting. That's really the only one I take advantage of at the moment. But there are several more.
|

April 21st, 2005, 10:15 AM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 322
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
From my side (As I am just a beginer in VB.NET and not wizard like you.) I found this link.
http://support.microsoft.com/default...;EN-US;Q308470
I hope these may be known to you. But just I got it so I am sending for your review.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |