Implicit typing fails to serialize
See original GitHub issueHello!
I’ve created a very basic set of classes that I want to serialize.
Problem:
Upon calling to Serialize
, it throws an ArgumentException
with the following message
The empty string '' is not a valid name.
I’m attaching a project with a test method that reproduces the issue. I hope you TestEXS.zip
Is it because I’m doing something wrong? I hope you can take a look. Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Serialization: Cannot convert type string[][] to string[]
You can specify the type on the property MyJaggedArray , like this: [Serializable] public class Class1 { [XmlElement(Type ...
Read more >Remove implicit fallback to reflection-based serialization in ...
The serializer method used does not support reflection-based creation of serialization-related type metadata. If using source generation, ensure ...
Read more >System.Text.Json source generator fallback - .NET
Json source generator will no longer implicitly fall back to reflection-based serialization for unrecognized types.
Read more >Data Types & Serialization
In the case where TypeInformation could not be created, programs fail to compile with an error stating “could not find implicit value for...
Read more >serialize - Manual
serialize () handles all types, except the resource-type and some objects (see note below). You can even serialize() arrays that contain references to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh man, I’m sorry that you are so overwhelmed! Too many projects? 😃 Then it’s like me!
Of course, I have pushed the project here: https://github.com/SuperJMN/TestEXS
Best regards 😄 Talk to you soon!
Ah no I suck, sorry about this @SuperJMN. I am so embarrassed to admit how much time I’ve spent on this, not to mention that I have several other projects/issues that I am juggling right now. I have circled a “home base” contingency plan, however, and for sure will have myself back online over the weekend.
Can you put this on a repo somewhere, by chance? I can eyeball it from here out of a tablet. 😛 I am wary of zip files and usually have a sandbox environment to handle those, when I have an environment, that is. 😅