OutParser 1.1.1
dotnet add package OutParser --version 1.1.1
NuGet\Install-Package OutParser -Version 1.1.1
<PackageReference Include="OutParser" Version="1.1.1" />
<PackageVersion Include="OutParser" Version="1.1.1" />
<PackageReference Include="OutParser" />
paket add OutParser --version 1.1.1
#r "nuget: OutParser, 1.1.1"
#:package OutParser@1.1.1
#addin nuget:?package=OutParser&version=1.1.1
#tool nuget:?package=OutParser&version=1.1.1
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);
.
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.