RecurrenceRuleHumanizerExtensions Class
Provides extension methods for converting recurrence rules to human-readable text.
public static class RecurrenceRuleHumanizerExtensionsMethods
| Name | Description |
|---|---|
| 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.csConverts this recurrence rule to human-readable text using the current UI culture.
public static string? GetHumanText(this RecurrenceRule rrule)Parameters
rruleRecurrenceRule- 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.csConverts this recurrence rule to human-readable text using the specified culture.
public static string? GetHumanText(this RecurrenceRule rrule, CultureInfo? cultureInfo)Parameters
rruleRecurrenceRule- The recurrence rule to convert.
cultureInfoCultureInfo?- The culture to use for formatting, or
nullto 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.