p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Go Back   p2p.wrox.com Forums > .NET > Other .NET > General .NET
I forgot my password
Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 19th, 2005, 08:41 PM
Friend of Wrox
Points: 1,578, Level: 16
Points: 1,578, Level: 16 Points: 1,578, Level: 16 Points: 1,578, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 322
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old April 20th, 2005, 05:40 AM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old April 20th, 2005, 06:00 AM
Friend of Wrox
Points: 1,578, Level: 16
Points: 1,578, Level: 16 Points: 1,578, Level: 16 Points: 1,578, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 322
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Thanks Peter, Can you please tell me more differences between VB.Net and C#.Net?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old April 20th, 2005, 06:05 AM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old April 21st, 2005, 10:15 AM
Friend of Wrox
Points: 1,578, Level: 16
Points: 1,578, Level: 16 Points: 1,578, Level: 16 Points: 1,578, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 322
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
about chaper 11 operator overloading Tojo BOOK: Beginning Visual C# 2005 0 June 12th, 2008 03:22 PM
Invalid operator for data type. Operator equals di Pusstiu SQL Server 2000 2 August 10th, 2007 04:51 AM
Overloading nayeem69 .NET Framework 2.0 1 July 17th, 2007 12:30 AM
Operator Overloading In Inheritance ahmedsalam C# 0 October 18th, 2005 11:25 AM
Overloading Initialize_Class sg48 Excel VBA 1 July 11th, 2003 07:47 AM



All times are GMT -4. The time now is 02:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc