M
mkeggen
Unfortunately due to project constraints I have to code in VB.NET of
which I have little experience with. I have a C# assembly referenced
which contains an object where the + and - operators have been
successfully overridden and in my other C# projects the following code
(changed for posting) compiles and works:
Field TheField = this.GetField(1);
TheField += this.GetField(2);
Etc...
When I attempt to do something similar in VB.NET I get the following
compiler error "Operator '+' is not defined for types 'Field' and
'Field'"
I've tried different variations of the code with no joy - can
anyone assist and tell me what I am doing wrong?
Dim TheField As Field = Me.GetField(1)
TheField += Me.GetField(2)
TheField = (TheField + me.GetField(3))
Thanks in advance
which I have little experience with. I have a C# assembly referenced
which contains an object where the + and - operators have been
successfully overridden and in my other C# projects the following code
(changed for posting) compiles and works:
Field TheField = this.GetField(1);
TheField += this.GetField(2);
Etc...
When I attempt to do something similar in VB.NET I get the following
compiler error "Operator '+' is not defined for types 'Field' and
'Field'"
I've tried different variations of the code with no joy - can
anyone assist and tell me what I am doing wrong?
Dim TheField As Field = Me.GetField(1)
TheField += Me.GetField(2)
TheField = (TheField + me.GetField(3))
Thanks in advance