SkillAgentSearch skills...

OutParser

A C# string parser based on simple templates using source generators.

Install / Use

/learn @AntonBergaker/OutParser
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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);.

View on GitHub
GitHub Stars56
CategoryDevelopment
Updated22d ago
Forks1

Languages

C#

Security Score

85/100

Audited on Mar 14, 2026

No findings