-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First line added to YAML file #46
Comments
It serializes the type information when it is not provided explicitly when serializing. It depends how you serialized your object. |
I was able to determine why this is happening but don't know how to solve it. I have the following:
The variable result1 doesn't get the line but result2 gets the initial line. Any idea how to solve this but keeping the Serializer on the base class? |
Does anyone has any idea why this happens and how to solve? Thank you. |
That's a different problem to your initial question but I can't reproduce this. On which .NET fwk/version are you using this?
For your initial problem, you need to pass the type to the serializer |
I am using NET Core 2.0.6
Got it ... Didn't notice that constructor. May I leave a suggestion? How about adding the option:
|
I am serializing and object to YML and the first line on my YML file is:
Any idea where this comes from? How to avoid this being added to the YAML file?
The text was updated successfully, but these errors were encountered: