CodeBrix.YamlParse.MitLicenseForever 1.0.252.1219

dotnet add package CodeBrix.YamlParse.MitLicenseForever --version 1.0.252.1219
                    
NuGet\Install-Package CodeBrix.YamlParse.MitLicenseForever -Version 1.0.252.1219
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeBrix.YamlParse.MitLicenseForever" Version="1.0.252.1219" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.YamlParse.MitLicenseForever" Version="1.0.252.1219" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.YamlParse.MitLicenseForever" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeBrix.YamlParse.MitLicenseForever --version 1.0.252.1219
                    
#r "nuget: CodeBrix.YamlParse.MitLicenseForever, 1.0.252.1219"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeBrix.YamlParse.MitLicenseForever@1.0.252.1219
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeBrix.YamlParse.MitLicenseForever&version=1.0.252.1219
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.YamlParse.MitLicenseForever&version=1.0.252.1219
                    
Install as a Cake Tool

CodeBrix.YamlParse

A fully managed, cross-platform YAML library for .NET. It provides low-level parsing and emitting of YAML, a high-level representation model similar to XmlDocument, and a serialization library that reads and writes objects from and to YAML streams. CodeBrix.YamlParse has no dependencies other than .NET, and is provided as a .NET 10 library and associated CodeBrix.YamlParse.MitLicenseForever NuGet package.

CodeBrix.YamlParse supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.

Installation

dotnet add package CodeBrix.YamlParse.MitLicenseForever

Note that the NuGet package ID and the namespace are different - there is no package named plain CodeBrix.YamlParse:

  • NuGet package ID: CodeBrix.YamlParse.MitLicenseForever
  • Assembly and primary namespace: CodeBrix.YamlParse - i.e. using CodeBrix.YamlParse.Serialization;

XML documentation (IntelliSense) ships alongside the assembly.

The package has no NuGet dependencies at all - nothing beyond .NET itself is pulled in.

CodeBrix.YamlParse supports:

  • Object serialization — convert .NET objects to YAML with Serializer / SerializerBuilder.
  • Object deserialization — convert YAML to strongly-typed .NET objects with Deserializer / DeserializerBuilder.
  • A high-level representation model — load, inspect, modify, and save YAML documents with YamlStream, YamlDocument, YamlScalarNode, YamlSequenceNode, and YamlMappingNode.
  • Low-level parsing and emitting — stream-based YAML processing with Parser, Scanner, and Emitter.
  • Naming conventions — camelCase, PascalCase, hyphenated, underscored, and lower-case property naming.
  • Custom type converters, type inspectors, node deserializers, and YAML schemas for full control over the (de)serialization pipeline.

Sample Code

Serialize a .NET object to YAML

using CodeBrix.YamlParse.Serialization;
using CodeBrix.YamlParse.Serialization.NamingConventions;

var person = new { Name = "Inanna", City = "Uruk" };

var serializer = new SerializerBuilder()
    .WithNamingConvention(CamelCaseNamingConvention.Instance)
    .Build();

string yaml = serializer.Serialize(person);
// name: Inanna
// city: Uruk

Deserialize YAML into a .NET object

using System.Collections.Generic;
using CodeBrix.YamlParse.Serialization;
using CodeBrix.YamlParse.Serialization.NamingConventions;

var deserializer = new DeserializerBuilder()
    .WithNamingConvention(CamelCaseNamingConvention.Instance)
    .Build();

var result = deserializer.Deserialize<Dictionary<string, string>>("name: Inanna\ncity: Uruk\n");

Walk the representation model

using System.IO;
using CodeBrix.YamlParse.RepresentationModel;

var yaml = new YamlStream();
yaml.Load(new StringReader("- one\n- two\n- three\n"));

var root = (YamlSequenceNode)yaml.Documents[0].RootNode;
foreach (var item in root.Children)
{
    System.Console.WriteLine(((YamlScalarNode)item).Value);
}

Documentation

The NuGet package includes AGENT-README.txt, a complete API reference and usage guide written for AI coding agents - point your agent at that file when it is writing code against this library.

Additional sample code and usage examples are available in the CodeBrix.YamlParse.Tests project: https://github.com/ellisnet/CodeBrix.YamlParse/tree/main/tests/CodeBrix.YamlParse.Tests

License

CodeBrix.YamlParse is licensed under the MIT License - see the LICENSE file.

For licensing and provenance information about the open source code included in this package - the copyright notices and license texts of everything it is built from - see THIRD-PARTY-NOTICES.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.252.1219 93 9/9/2026
1.0.242.1115 97 8/30/2026
1.0.179.189 134 6/28/2026