예제 #1
0
 /// <summary>
 /// Конструктор по умолчанию
 /// </summary>
 public CCodePreProcessingOptions()
 {
     m_DeleteEmptyLines      = true;
     m_DeleteWhiteSpaces     = true;
     m_DeleteComments        = true;
     m_CommentSymbols        = new СCommentSymbols();
     m_PairCommentDictionary = new Dictionary <string, string>();
 }
예제 #2
0
        /// <summary>
        /// Определяет, равны ли два экземпляра
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to Point return false.
            СCommentSymbols p = obj as СCommentSymbols;

            if ((object)p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return((m_MinCommentLength == p.MinCommentLength) && (m_MaxCommentLength == p.MaxCommentLength) &&
                   IsSymbolsListsEquals(p.m_CommentSymbols) && IsCommentCharsEquals(p.m_CommentChars));
        }