P
Pedro
Hello,
Here's a piece of code that i have which is giving me an error and im not
sure how to fix it.
I'm trying to serialize an enum variable wich a value outside of the enum
list and the serializer throws an error saying its an invalid value (of
course). But how toget around it?
Public Class foo
Public Enum Nums
Zero = 0
One = 1
Two = 2
Four = 4
End Enum
Public MyNum = Two Or Four (this would result on a number 6)
End Class
I would like to be able to serialize the number, not so much the actual
text.
I've tried <xmlInclude(gettype(Integer)> but it says that primitive types
are not allowed.
Any ideas?
Thanks
Here's a piece of code that i have which is giving me an error and im not
sure how to fix it.
I'm trying to serialize an enum variable wich a value outside of the enum
list and the serializer throws an error saying its an invalid value (of
course). But how toget around it?
Public Class foo
Public Enum Nums
Zero = 0
One = 1
Two = 2
Four = 4
End Enum
Public MyNum = Two Or Four (this would result on a number 6)
End Class
I would like to be able to serialize the number, not so much the actual
text.
I've tried <xmlInclude(gettype(Integer)> but it says that primitive types
are not allowed.
Any ideas?
Thanks