-
-
Notifications
You must be signed in to change notification settings - Fork 39
Extensions
Marvin E edited this page Dec 25, 2025
·
9 revisions
Very useful DateTime extension methods for acquiring collections of dates related to a Calendar.
DayOfWeek extension methods for getting different orders of the days of the week.
| Method Name | Return Type | Description |
|---|---|---|
| GetWeekAsFirst | List<DayOfWeek> |
Gets the days of the week using the specified DayOfWeek as the first day of the week. |
| GetWeekAsLast | List<DayOfWeek> |
Gets the days of the week using the specified DayOfWeek as the last day of the week. |
string extension methods making it easier to display calendar content.
| Method Name | Return Type | Description |
|---|---|---|
| TruncateStringToMaxLength | string |
Truncates the string to the specified number of characters. |
| ToTitleCase | string |
Converts the string to title case using the specified CultureInfo. |