dotnetomaniak.pl - Artykuły z tagiem .net serialization enums

Recently I've been coding some WCF methods and I've got a strange exception during WCF message serialization. I needed to send list of enums to the WCF service. There are couple of ways to do that. First solution is using [Flag] attribute to combine several enum values into one variable - but then you need to use powers of 2 for enum values. I couldn't do that because of the requirements and actual big number of that enums stored in current database. It would require writing and applying a lot of scrip...

[EN] Dominik Kopeć (domin8k): Serializing list of enums in .NET

Sztuka programowania 4051 dni, 19 godzin, 37 minut temu http://www.domin8k.com/ 162 źrodło rozwiń