-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Problem with nullable dictionary #109
Comments
Also everything works fine when a manully format it based on gen code |
I tried it at hand and the following samples worked. [YamlObject]
public partial class DictionaryMember
{
public Dictionary<string, object?>? Data { get; set; }
} Can you give me the specific code that reproduces the problem? |
Did you enable nullability? We have it in error mode |
Ah, maybe I understand the problem. If Data = __Data__ Ok, I've fixed in #110. |
Yes I think that is the problem, in our case we get compilation error since we treat that warn as error. |
Also can you add HashSet/Set ? To resolvers? |
#111 I was just working on. I'll release it soon. |
Hi, i am trying to move from YamlDotNet to VYaml, but i am getting an hard time.
Currently it forces me to manually create formatters instead of using YamlObject annotation.
When i have
Dictionary<string, object?>? data;
it seems to not work, i got compilling errorCS8619
, looking at the pre gen code it creates internal varvar __Data__ = default(global::System.Collections.Generic.Dictionary<string, object>)
instead of the requested type.The problem seems to be
Dictionary<string, object>
instead ofDictionary<string, object?>
The text was updated successfully, but these errors were encountered: