/// <summary> /// Determines whether the specified <see cref="T:System.Object"></see> is equal to the current <see cref="T:System.Object"></see>. /// </summary> /// <param name="obj">The <see cref="T:System.Object"></see> to compare with the current <see cref="T:System.Object"></see>.</param> /// <returns> /// true if the specified <see cref="T:System.Object"></see> is equal to the current <see cref="T:System.Object"></see>; otherwise, false. /// </returns> public override bool Equals(object obj) { QuotationInfo qi = obj as QuotationInfo; if (qi == null) { return(false); } return(mQuotationMark.Equals(qi.mQuotationMark) && mEscapeCodes.Equals(qi.mEscapeCodes)); }
/// <summary> /// Parse the command line arguments. /// </summary> protected void ParseCommandLine() { // Create the parser to handle the command line arguments. See the properties to determine valid command line arguments. CommandLineParser parser = new CommandLineParser(this); // We need to replace the existing quotation information because if we don't it replaces network address such as "\\computer" // with "\computer" because it escapes the escape character. QuotationInfo quotationInfo = new QuotationInfo('\"'); quotationInfo.AddEscapeCode('\"', '\"'); parser.AddQuotation(quotationInfo); // Parse the command line arguments. The parser will call Properties for each command line argument it finds with a matching // attribute. parser.Parse(); }