An open API service indexing awesome lists of open source software.

https://github.com/renanaragao/mask

Extension method for making string masks in CSharp
https://github.com/renanaragao/mask

csharp mask masked string

Last synced: 6 months ago
JSON representation

Extension method for making string masks in CSharp

Awesome Lists containing this project

README

          

# Mask
Extension method for making string masks in CSharp.

### How to install with Nuget ?
```
dotnet add package Mask
```

### How do I use it? ###

```.cs
"11985644568".ToMasked("(AA) AAAAA-AAAA")
```

#### Examples of allowed masks

| mask | example |
| -------------- | -------------- |
| (AA) AAAAA-AAAA | (11 98564-4568 |
| 0000.00 | 2017.22 |
| 999.999.999-99 | 048.457.987-98 |
| SSSS | 2014 |