|
-
February 14th, 2011, 11:25 AM
#3
Re: How to write an operator in VB-style?
With MyClass.op_Equality (operator==) method, when you write Left = Right in VB program, does VB call this operator or just compares references? Looking at String.op_Equality Method http://msdn.microsoft.com/en-us/libr...s.80).aspx#Y15, I see that string class just defines operator==, and this is enough for VB and C# compilers to convert = to this operator call.
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
|