Does VB.Net allow operator overloading like C++.Net (and every other version of C for that matter) does? \r\nFor example, if I create a class called Matrix and want to supply a * operator to perform Matrix multiplication ([M1] * [M2] = [M3]), can I overload the * operator to read in matrices, or do I just need to stick with creating a function called Multiply? \r\nI tried searching the forums for this but didn\'t find anything.
\r\n \r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n
\r\n __________________ \r\n "The whole trouble comes from the fact that there is so much tinkering with software. It is not made in a clean fabrication process, which it should be. What we need, is software engineering." — F.L. Bauer, 1968\r\n
Does VB.Net allow operator overloading like C++.Net (and every other version of C for that matter) does?
For example, if I create a class called Matrix and want to supply a * operator to perform Matrix multiplication ([M1] * [M2] = [M3]), can I overload the * operator to read in matrices, or do I just need to stick with creating a function called Multiply?
I tried searching the forums for this but didn't find anything.
__________________ "The whole trouble comes from the fact that there is so much tinkering with software. It is not made in a clean fabrication process, which it should be. What we need, is software engineering." — F.L. Bauer, 1968
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe