/// Retrieve the array which contains the month names in genitive form.
/// If this culture does not use the genitive form, the normal month name is returned.
/// </summary>
- private string[] InternalGetGenitiveMonthNames(bool abbreviated)
+ internal string[] InternalGetGenitiveMonthNames(bool abbreviated)
{
if (abbreviated)
{
// Search genitive form.
if ((dtfi.FormatFlags & DateTimeFormatFlags.UseGenitiveMonth) != 0)
{
- int tempResult = str.MatchLongestWords(dtfi.AbbreviatedMonthGenitiveNames, ref maxMatchStrLen);
+ int tempResult = str.MatchLongestWords(dtfi.InternalGetGenitiveMonthNames(abbreviated: true), ref maxMatchStrLen);
// We found a longer match in the genitive month name. Use this as the result.
// tempResult + 1 should be the month value.
// Search genitive form.
if ((dtfi.FormatFlags & DateTimeFormatFlags.UseGenitiveMonth) != 0)
{
- int tempResult = str.MatchLongestWords(dtfi.MonthGenitiveNames, ref maxMatchStrLen);
+ int tempResult = str.MatchLongestWords(dtfi.InternalGetGenitiveMonthNames(abbreviated: false), ref maxMatchStrLen);
// We found a longer match in the genitive month name. Use this as the result.
// The result from MatchLongestWords is 0 ~ length of word array.
// So we increment the result by one to become the month value.