Skip to content

Extensions

Marvin E edited this page Dec 25, 2025 · 9 revisions

DateTimeExtensions (Unfinished)

Very useful DateTime extension methods for acquiring collections of dates related to a Calendar.

DayOfWeekExtensions

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.

StringsExtensions

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.

Clone this wiki locally