System.DateTimeParse.MatchAbbreviatedTimeMark C# (CSharp) Method

MatchAbbreviatedTimeMark() private static method

private static MatchAbbreviatedTimeMark ( __DTString &str, DateTimeFormatInfo dtfi, TM &result ) : bool
str __DTString
dtfi DateTimeFormatInfo
result TM
return bool
        private static bool MatchAbbreviatedTimeMark(ref __DTString str, DateTimeFormatInfo dtfi, ref TM result) {
            if (str.GetNext())
            {
                if (str.GetChar() == dtfi.AMDesignator[0]) {
                    result = TM.AM;
                    return (true);
                }
                if (str.GetChar() == dtfi.PMDesignator[0]) {
                    result = TM.PM;
                    return (true);
                }
            }
            return false;
        }