Comments on: XML Deserialization in C# https://code-maze.com/csharp-xml-deserialization/ Learn. Code. Succeed. Sat, 21 Oct 2023 10:59:46 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Vladimir Pecanac https://code-maze.com/csharp-xml-deserialization/#comment-8706 Sat, 21 Oct 2023 10:59:46 +0000 https://drafts.code-maze.com/?p=94646#comment-8706 In reply to Petr.

Thanks for the feedback! We’ve addressed these issues, so do check them out and let us know if you find anything else.

]]>
By: Vladimir Pecanac https://code-maze.com/csharp-xml-deserialization/#comment-8705 Sat, 21 Oct 2023 10:59:17 +0000 https://drafts.code-maze.com/?p=94646#comment-8705 In reply to Petr.

Hey Petr, thanks for letting us know.

Sorry about the inconvenience. We did test the code, and we do check the code in the article as well, but we’re only human and mistakes do happen.

Also, the code in the article is sometimes different than the code in the source code as you’ve already seen. The code in the article uses the StreamReader class, and the code in the article uses the StringReader class.

That said, we’ve fixed the mistakes you mentioned in the other comment, so please let us know if you find any more of those.

We appreciate your feedback, and we’ll improve our process even further.

Thanks!

]]>
By: Petr https://code-maze.com/csharp-xml-deserialization/#comment-8703 Fri, 20 Oct 2023 12:15:02 +0000 https://drafts.code-maze.com/?p=94646#comment-8703 ok, so:
1) in the first example with library, books have to be in <books> element
2) at some places you use StringReader but parameter is not xml but flie path

]]>
By: Petr https://code-maze.com/csharp-xml-deserialization/#comment-8702 Fri, 20 Oct 2023 12:06:55 +0000 https://drafts.code-maze.com/?p=94646#comment-8702 You have a loooot of mistakes in this example, I suppose you wrote it without even testing it… So, check it and fix it.
I’ve spent enough time myself to find out why examples doesn’t work.

At the same time Thank you VERY MUCH for examples.

If you want to know at least two or thre mistakes, let me know 🙂

]]>
By: Marinko https://code-maze.com/csharp-xml-deserialization/#comment-8628 Sun, 20 Aug 2023 17:47:56 +0000 https://drafts.code-maze.com/?p=94646#comment-8628 In reply to usman.

Hi Usman. I am not sure why you get that error but for sure you are missing to dispose of some of the used resources and then those just eat up your memory. You should use some memory profiler tool to check for leaks.

]]>
By: usman https://code-maze.com/csharp-xml-deserialization/#comment-8627 Sat, 19 Aug 2023 13:54:50 +0000 https://drafts.code-maze.com/?p=94646#comment-8627 Hi , I m getting randomly out of memory exception on production exception.
Do you have any suggestions to fix that ?

]]>