Skip to content

Commit c763ad5

Browse files
docs: Update Readme (#102)
1 parent 00996bd commit c763ad5

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,28 @@
5151
## Security
5252

5353
- ClaimsPrincipalExtensions: Extension methods to get a user ID and roles.
54+
- `GetUserId`
55+
- `GetRoles`
5456

5557
## Extensions
5658

57-
- StringExtensions: Extension methods to slugify a string and to validate a string is a valid url.
58-
- HttpExtensions: Extension methods to validate a Uri by attempting to make a GET request to it.
59+
- StringExtensions: Extension methods for `System.String`
60+
- `ValidateUrlString`: Extension method to validate a URL string by checking to make sure the string is formatted correctly.
61+
- `CreateUrlSlug`: Extension method modify a string so that it is URL compatible
62+
- HttpExtensions: Extension methods for `System.Net.Http.HttpClient`
63+
`ValidateUri`: Extension methods to validate a Uri by attempting to make a GET request to it.
64+
- SystemLinqExtensions
65+
- `WhereNotNull`: Extension method to allow return of non-null value from a null object.
66+
- Sample:
67+
68+
```csharp
69+
List<string?> listWithSomeNullValues = ["this", null, "is", null, "my", null, "favorite", null];
70+
List<string> listWithoutNullValues = listWithSomeNullValues.WhereNotNull().ToList();
71+
// returns ["this", "is", "my", "favorite"]
72+
```
73+
74+
- On:
75+
- `System.Linq.Generic.IEnumerable<T>`
5976

6077
## Contributing
6178

0 commit comments

Comments
 (0)