Namespace: MrSquirrely.Fun.Letters
Class: ExtMethods
A C# extension library that enables a fluent, property-based API for string construction. Instead of typing string literals, you can "chain" characters and symbols together as properties.
- Fluent Chaining: Append characters using dot notation (e.g.,
"Start".d.o.t). - Full Alphabet Support: Includes all uppercase (
.A-.Z) and lowercase (.a-.z) letters. - Symbol Mapping: Maps special keyboard characters to descriptive text properties (e.g.,
!becomes.exclamation). - Safe Escaping: Automatically handles C# string escaping for complex characters like quotes, backslashes, and curly braces.
Import the namespace to enable the extensions on any string object.
using MrSquirrely.Fun.Letters;
public void WriteFluently()
{
// Traditional: "Hello World!"
// Fluent:
string text = "H".e.l.l.o.space.W.o.r.l.d.exclamation;
// Result: "Hello World!"
}