RecurrenceRuleHumanizerExtensions Class

Provides extension methods for converting recurrence rules to human-readable text.

public static class RecurrenceRuleHumanizerExtensions

Methods

NameDescription
GetHumanText(RecurrenceRule)Converts this recurrence rule to human-readable text using the current UI culture.
GetHumanText(RecurrenceRule, CultureInfo?)Converts this recurrence rule to human-readable text using the specified culture.

GetHumanText overloads

GetHumanText(RecurrenceRule)

RecurrenceRuleHumanizerExtensions.cs

Converts this recurrence rule to human-readable text using the current UI culture.

public static string? GetHumanText(this RecurrenceRule rrule)
Parameters
rrule RecurrenceRule
The recurrence rule to convert.
Returns

string? A human-readable string representation of the recurrence rule, or null when the language of the culture is not supported or when the rule derives from RecurrenceRule outside of this library.

Remarks

The language is read from the culture name (fr-CA is French), including in invariant globalization mode. The invariant culture is English.

GetHumanText(RecurrenceRule, CultureInfo?)

RecurrenceRuleHumanizerExtensions.cs

Converts this recurrence rule to human-readable text using the specified culture.

public static string? GetHumanText(this RecurrenceRule rrule, CultureInfo? cultureInfo)
Parameters
rrule RecurrenceRule
The recurrence rule to convert.
cultureInfo CultureInfo?
The culture to use for formatting, or null to use the current UI culture.
Returns

string? A human-readable string representation of the recurrence rule, or null when the language of the culture is not supported or when the rule derives from RecurrenceRule outside of this library.

Remarks

The language is read from the culture name (fr-CA is French), including in invariant globalization mode. The invariant culture is English.