VB.NET oder C#: Meine XML-Klasse verbessern

Encerrado Postado há 9 meses Pago na entrega
Encerrado 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!

XML Programação C# VB.NET

ID do Projeto: #36977556

Sobre o projeto

4 propostas Projeto remoto Ativo em há 8 meses

4 freelancers estão ofertando em média €85 nesse trabalho

laraibfatima399

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

€100 EUR in 3 dias
(6 Comentários)
4.1
oyasniy

Hallo! Ich möchte eine XML-Datei anhand einer Klasse serialisieren und auch wieder deserialisieren. You can rely on me. I am an experienced developer and mathematician. Looking forward to hear from you. Kind regard Mais

€100 EUR in 10 dias
(9 Comentários)
3.3
Klaus5chwartz

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

€90 EUR in 7 dias
(0 Comentários)
0.0
KUSHTIWARINEO

Hello, I can surely solve your problem in XML serialization/deserialization by C# in 3 hours. Please open the chat for me. Regards!

€50 EUR em 1 dia
(0 Comentários)
0.0