Skip to content

Added support for deserializing to array#2

Merged
aaubry merged 1 commit intoaaubry:masterfrom
roji:master
Oct 14, 2012
Merged

Added support for deserializing to array#2
aaubry merged 1 commit intoaaubry:masterfrom
roji:master

Conversation

@roji
Copy link
Copy Markdown
Contributor

@roji roji commented Oct 14, 2012

Previously sequence deserialization would work for collections only

Previously sequence deserialization would work for collections only
aaubry added a commit that referenced this pull request Oct 14, 2012
Added support for deserializing to array
@aaubry aaubry merged commit 703d47f into aaubry:master Oct 14, 2012
fdcastel added a commit to fdcastel/YamlDotNet that referenced this pull request Mar 26, 2026
The source generator now detects C# 'required' properties and fields and
emits object initializer syntax with 'default!' values instead of bare
'new T()'. This prevents CS9035 compile errors when types have required
members.

Generated code example:
  new MyType() { RequiredProp = default!, RequiredField = default! }

Addresses suggestion aaubry#2 from YAML_DOTNET_SUGGESTIONS.md.
fdcastel added a commit to fdcastel/YamlDotNet that referenced this pull request Mar 26, 2026
The source generator now detects C# 'required' properties and fields and
emits object initializer syntax with 'default!' values instead of bare
'new T()'. This prevents CS9035 compile errors when types have required
members.

Generated code example:
  new MyType() { RequiredProp = default!, RequiredField = default! }

Addresses suggestion aaubry#2 from YAML_DOTNET_SUGGESTIONS.md.
fdcastel added a commit to fdcastel/YamlDotNet that referenced this pull request Mar 28, 2026
The source generator now detects C# 'required' properties and fields and
emits object initializer syntax with 'default!' values instead of bare
'new T()'. This prevents CS9035 compile errors when types have required
members.

Generated code example:
  new MyType() { RequiredProp = default!, RequiredField = default! }

Addresses suggestion aaubry#2 from YAML_DOTNET_SUGGESTIONS.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants