public override MatchResult Matches(FileInfo file, Dictionary <Type, IFileCache> fileCaches, CancellationToken token)
        {
            MatchResultType     resultType  = MatchResultType.NotApplicable;
            DetectedLineEndings lineEndings = DetectedLineEndings.NotApplicable;

            try
            {
                using (StreamReader reader = new StreamReader(file.FullName))
                {
                    lineEndings = TextUtil.GetLineEndings(reader, false, token);
                }
                if (lineEndings == m_Parameters.LineEndings)
                {
                    resultType = MatchResultType.Yes;
                }
                else
                {
                    resultType = MatchResultType.No;
                }
            }
            catch (Exception ex)
            {
            }
            return(new MatchResult(resultType, lineEndings.ToString()));
        }
        public override string[] GetValues(FileInfo file, Dictionary <Type, IFileCache> fileCaches, CancellationToken token)
        {
            DetectedLineEndings lineEndings = DetectedLineEndings.NotApplicable;
            string value = "N/A";

            try
            {
                using (StreamReader reader = new StreamReader(file.FullName))
                {
                    lineEndings = TextUtil.GetLineEndings(reader, false, token);
                }
                value = lineEndings.ToString();
            }
            catch (Exception ex)
            {
            }
            return(new string[] { value });
        }