System.DateTimeParse.ParseSign C# (CSharp) Method

ParseSign() private static method

private static ParseSign ( __DTString &str, bool &result ) : bool
str __DTString
result bool
return bool
        private static bool ParseSign(ref __DTString str, ref bool result) {
            if (!str.GetNext()) {
                // A sign symbol ('+' or '-') is expected. However, end of string is encountered.
                return false;
            }
            char ch = str.GetChar();
            if (ch == '+') {
                result = true;
                return (true);
            } else if (ch == '-') {
                result = false;
                return (true);
            }
            // A sign symbol ('+' or '-') is expected.
            return false;
        }