YamlDotNet
YamlDotNet copied to clipboard
YamlDotNet is a .NET library for YAML
Hi, I try to generate an empty line using ChainedObjectGraphVisitor, but does not works, any idea how to accomplish this? I also tried to use `[YamlMember(Description = "\nGeneral configuration")]` but...
Fix issue #959 When using reflection, get the first property that matches the name. This will be on the most derived type. When looking for custom attributes, don't search up...
**Describe the bug** We are upgrading from 11.2.1 to 16.0.0. Aside from a handful of function signature breaking changes which were easy to deal with, we have found a functionality...
Both the main YamlDotNet and the StaticGenerator projects had NuGet package information split between project properties and metadata in the .nuspec file. More confusingly, the projects weren't linked to the...
In the provided serialization benchmark, there's an allocation of a `StringLookAheadBuffer` and a `CharacterAnalyzer` for each serialized entity: | Type | Allocations | |---------------------------------------------------------------------------------|-------------| | \| - YamlDotNet.Core.StringLookAheadBuffer | 40,018...
Several types accept an `IEnumerable`, and then repeatedly traverse the list searching for a converter that accepts the type to be serialized. Traversing an IEnumerable with LINQ results in an...
The `CachedTypeInspector` creates a closure in order to capture the method parameters. This results in 2 allocations per object serialized. I switched to using the `ConcurrentDictionary.GetOrAdd()` method that takes a...
Because the project no longer targets `netstandard1.3`, we can replace the custom implementation inside `ReflectionExtensions.GetAllCustomAttributes()` with `Attribute.GetCustomAttributes()`. In addition to simpler code, in the provided benchmark this eliminates 4 `List`...
`ReflectionUtility.GetImplementedInterfaces` allocated an iterator object for every call to GetImplementedInterfaces. This results in an allocation per object serialized in the benchmark. I refactored the implementation to avoid the iterator by...
**Describe the bug** When running the deserialization example from the README when published for Linux64 (in WSL) a get following exception: ``` Exception during deserialization at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser, Type, SerializerState, IValueDeserializer)...