Hi,
I am trying to DeSerialize this XML file with DataContracts.
- string xmlData = @"'1.0' encoding='utf-8' standalone='yes'?>
'0' >- <object>
CF7E7B22-1D3A-4CFE-91F9-F8C5C2DB4069 ED98C97F-A202-48ED-AEEA-34362508A30B NorthernLights file 1614924419 68934805-fa78-4d84-aac1-fbcde4a7a8f2.png image/png - object>
- ";
I have created this structure with classes:
Objects -- Object -- Permission
Content --- File
I have no errors when I DeSerialize the XML data but no objects will be created.
My code is as follow;
- Objects objects = new Objects();
- objects = dataCSUtility.DeSerializer
(xmlData);
Nothing will be assigned to objects!
Can anybody solve this?

Kiran MohantyRank #821 · 2.8K reputationPosted Mar 5, 2021, 7:23 AM EST
Hakan AxheimRank #8,316 · 224 reputationPosted Mar 7, 2021, 2:55 PM EST
Hakan AxheimRank #8,316 · 224 reputationPosted Mar 8, 2021, 1:17 AM EST