Skip to content

A fun/stupid library adding extension methods for every letter

License

Notifications You must be signed in to change notification settings

MrSquirrely/Letter-Methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluent Letters Extension

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.

Features

  • 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.

Usage

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!"
}

About

A fun/stupid library adding extension methods for every letter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages