06.HighQualityMethodsHomework/RefactorCSharpPart2Exam/11. CSharp-Part-2-Exam/CSharp-Part-2-Exam/CATaclysm/CATaclysm.cs
/// <summary>
/// Check if a character matches any special character described in the assignment
/// </summary>
/// <param name="character">Character to check</param>
/// <returns>True or false</returns>
Check if a character matches any special character described in the assignment
Check if a character matches any special character described in the assignment
private static bool CheckSymbolForSpecialCases(char character)
        {
            if ((!(character == '>' || character == ')' || character == '(' || character == '[' || character == '.')) ||
                character == '?')
            {
                return true;
            }
            return false;
        }
private static bool CheckSymbolForSpecialCases ( char character ) { if ( ( ! ( character == ' ' || character == ' ' || character == ' ' || character == ' ' || character == ' ' ) ) || character == ' ' ) { return true ; } return false ; }
Check if a character matches any special character described in the assignment
Check if a character matches any special character described in the assignment
True or false
True or false
character
char
Character to check
Character to check