Lucene.Net.Index.SegmentInfo.CheckFileNames C# (CSharp) Method

CheckFileNames() private method

private CheckFileNames ( ICollection files ) : void
files ICollection
return void
        private void CheckFileNames(ICollection<string> files)
        {
            Regex r = IndexFileNames.CODEC_FILE_PATTERN;
            foreach (string file in files)
            {
                if (!r.IsMatch(file))
                {
                    throw new System.ArgumentException("invalid codec filename '" + file + "', must match: " + IndexFileNames.CODEC_FILE_PATTERN.ToString());
                }
            }
        }