internal int[] GetCodePages(int[] codePagePriorityList, FallbackExceptions fallbackExceptions, bool onlyValidCodePages)
 {
     if (codePagePriorityList != null)
     {
         for (int i = 0; i < codePagePriorityList.Length; i++)
         {
             if (!CodePageDetect.IsCodePageDetectable(codePagePriorityList[i], false))
             {
                 throw new ArgumentException(GlobalizationStrings.PriorityListIncludesNonDetectableCodePage, "codePagePriorityList");
             }
         }
     }
     return(this.detector.GetCodePages(codePagePriorityList, fallbackExceptions > FallbackExceptions.None, fallbackExceptions > FallbackExceptions.Common, onlyValidCodePages));
 }
 internal static bool IsCodePageDetectable(int cpid, bool onlyValid)
 {
     return(CodePageDetect.IsCodePageDetectable(cpid, onlyValid));
 }