| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.EXTENSIONS | |
|||||
Code Reference
» Cat.String.Extensions Assembly » Cat.String.Extensions Namespace
StringExtensions Class
Extension methods for System.String.
public static class StringExtensions
Inheritance System.Object → StringExtensions
| Methods | |
|---|---|
| CreateRegex(this string, RegexOptions) | Compiles a regular expression with a two-second matching timeout, so a pathological pattern can’t hang the caller. |
| FindBraceIndex(string, char, int, int) | Finds the index of the next unescaped occurrence of brace, treating a doubled brace as an escape. |
| NamedFormat(this string, object[]) | Formats a named message template, for example "User {UserId} logged in", by converting each named placeholder to a positional one and passing the result to System.String.Format(System.String,System.Object[]). |