xsharp.eu • Performance and VO functions Inlist and Between - Page 2
Page 2 of 2

Performance and VO functions Inlist and Between

Posted: Thu Feb 21, 2019 7:59 am
by MathiasHakansson
The XSharp string could override the Equals method.
I guess usuals can have it's own equals method too. This does not solve the problem with mixed data types, but I can't remember that I ever have used Inlist with parameters of different data types. Not in VO either. I guess that does not really matter though. If it was possible in VO it should be possible in X#.

Performance and VO functions Inlist and Between

Posted: Thu Feb 21, 2019 9:26 am
by robert
Mathias,

There is no "XSharp String". STRING = System.String.
So we can't override the Equals method. And also we can't inherit from System.String because that type is sealed....

Robert