[ 
https://issues.apache.org/jira/browse/IGNITE-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Tupitsyn updated IGNITE-5207:
-----------------------------------
    Description: 
There is no way to serialize non-Int32 enums. 

Enums in .NET can be {{byte}}, {{sbyte}}, {{short}}, {{ushort}}, {{int}}, 
{{uint}}, {{long}}, {{ulong}} (see 
https://docs.microsoft.com/en-us/dotnet/articles/csharp/language-reference/keywords/enum).

We should write all of these except {{long}} and {{ulong}} properly (converting 
them to int and back).
{{long}} and {{ulong}} enums should be written as object.

  was:There is no way to serialize non-Int32 enums. We should write them in 
some special way maybe.


> .NET: Non-Int32 enums can't be serialized
> -----------------------------------------
>
>                 Key: IGNITE-5207
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5207
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.0
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>              Labels: .NET
>             Fix For: 2.1
>
>
> There is no way to serialize non-Int32 enums. 
> Enums in .NET can be {{byte}}, {{sbyte}}, {{short}}, {{ushort}}, {{int}}, 
> {{uint}}, {{long}}, {{ulong}} (see 
> https://docs.microsoft.com/en-us/dotnet/articles/csharp/language-reference/keywords/enum).
> We should write all of these except {{long}} and {{ulong}} properly 
> (converting them to int and back).
> {{long}} and {{ulong}} enums should be written as object.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to