VB.NET oder C#: Meine XML-Klasse verbessern
€8-100 EUR
Pago na entrega
Hallo!
Ich möchte eine XML-Datei anhand einer Klasse serialisieren und auch wieder deserialisieren.
Das funktioniert gut, aber nur, wenn ich "genericItem" verwende, aber nicht, wenn ich die genaue Klasse verwende.
Ich möchte, dass anhand einer Schnittstellen-Doku die Klasse verbessert wird, so dass das funktioniert.
Das hier hat mir [login to view URL] über das Problem erklärt:
'Let me clarify why using As genericItem works And As kostenvoranschlag doesn't.
'When you use As genericItem, it allows the deserialization process to treat the elements as generic items And does Not enforce a strict type check. As a result, it can deserialize the <kostenvoranschlag> elements into an array of genericItem, And you can access the common properties defined in the genericItem class without any issues.
'However, when you use As kostenvoranschlag, you are explicitly specifying the type as kostenvoranschlag, And the deserialization process expects the XML elements to match the exact structure of the kostenvoranschlag class. If the XML elements do Not precisely match the properties defined in the kostenvoranschlag class, the deserialization process will fail.
'Based on the provided XML, it seems Like the <kostenvoranschlag> elements do Not match the kostenvoranschlag class structure, which Is causing the deserialization error. To correctly deserialize the XML into the kostenvoranschlag class, you need to ensure that the XML structure exactly matches the class properties.
Ich stelle gerne die Schnittstellendoku auf Deutsch und ein Beispielprojekt mit Chilkat (dafür benötigt man das Trial, gibt es über GitHub) in VB.NET zur Verfügung.
100 € sind das Maximalbgebot.
Dank!
ID do Projeto: #36977556
Sobre o projeto
4 freelancers estão ofertando em média €85 nesse trabalho
Hello Sir/ Ma’am I am a Software Engineer (Programmer) having 10+ years of experience. Expert in JAVA, C, C++ , C# , Python, MATLAB, MySQL, OOP, Algorithms. AI, Machine Learning , CUDA, Data Science, Data Structur Mais
Hey, Du hast das Problem mit der Klasse beschrieben, und ich kann das absolut nachvollziehen. Wenn du "genericItem" benutzt, funktioniert alles einwandfrei, aber mit der genauen Klasse gibt's ein kleines Problemchen. Mais
Hello, I can surely solve your problem in XML serialization/deserialization by C# in 3 hours. Please open the chat for me. Regards!