OutParser 1.1.1

dotnet add package OutParser --version 1.1.1
                    
NuGet\Install-Package OutParser -Version 1.1.1
                    
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="OutParser" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OutParser" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="OutParser" />
                    
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 OutParser --version 1.1.1
                    
#r "nuget: OutParser, 1.1.1"
                    
#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 OutParser@1.1.1
                    
#: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=OutParser&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=OutParser&version=1.1.1
                    
Install as a Cake Tool

OutParser

OutParser is a nuget library enabling simple string parsing following a simple template pattern.

Example usage:

using OutParsing;

string input = "I selected 69";
OutParser.Parse(input, "I selected {value}", out int value);

Console.WriteLine(value); // Prints 69

Usage

Installing

OutParser requires .NET 9.0 as it makes use of Interceptors. The recommended way to add OutParser to your project is to install it from nuget.

Supported types

OutParser supports anything that implements IParseable<T> and ISpanParseable<T>, which includes many common types in .NET. This also means you can use your own types by having them implement either of the two interfaces.

Collections

The parser supports Lists and Arrays. A separator is provided after the colon in the template string, like this: OutParser.Parse("1,2,3", "{numbers:,}", out List<int> values);.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.1.1 182 4/9/2025
1.1.0 128 2/20/2025
1.0.1 90 2/15/2025
1.0.0 89 2/15/2025