question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implicit typing fails to serialize

See original GitHub issue

Hello!

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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SuperJMNcommented, Jan 18, 2019

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!

1reaction
Mike-E-angelocommented, Jan 18, 2019

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. 😅

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found