System.Globalization.DateTimeFormatInfoScanner.EqualStringArrays C# (CSharp) Méthode

EqualStringArrays() private static méthode

private static EqualStringArrays ( string array1, string array2 ) : bool
array1 string
array2 string
Résultat bool
        private static bool EqualStringArrays(string [] array1, string [] array2)
        {
            if (array1.Length != array2.Length)
            {
                return false;
            }
            
            for (int i=0; i<array1.Length; i++)
            {
                if (!array1[i].Equals(array2[i]))
                {
                    return false;
                }
            }

            return true;
        }

Usage Example

Exemple #1
0
 // Token: 0x06002E16 RID: 11798 RVA: 0x000B0C50 File Offset: 0x000AEE50
 internal static FORMATFLAGS GetFormatFlagGenitiveMonth(string[] monthNames, string[] genitveMonthNames, string[] abbrevMonthNames, string[] genetiveAbbrevMonthNames)
 {
     if (DateTimeFormatInfoScanner.EqualStringArrays(monthNames, genitveMonthNames) && DateTimeFormatInfoScanner.EqualStringArrays(abbrevMonthNames, genetiveAbbrevMonthNames))
     {
         return(FORMATFLAGS.None);
     }
     return(FORMATFLAGS.UseGenitiveMonth);
 }