Inheritance: System.Collections.CaseInsensitiveComparer, IEqualityComparer
コード例 #1
0
 public CodeIdentifiers(bool caseSensitive) {
     if (caseSensitive) {
         identifiers = new Hashtable();
         reservedIdentifiers = new Hashtable();
     }
     else {
         IEqualityComparer comparer = new CaseInsensitiveKeyComparer();
         identifiers = new Hashtable(comparer);
         reservedIdentifiers = new Hashtable(comparer);
     }
     
     list = new ArrayList();
 }
 public CodeIdentifiers(bool caseSensitive)
 {
     if (caseSensitive)
     {
         this.identifiers = new Hashtable();
         this.reservedIdentifiers = new Hashtable();
     }
     else
     {
         IEqualityComparer equalityComparer = new CaseInsensitiveKeyComparer();
         this.identifiers = new Hashtable(equalityComparer);
         this.reservedIdentifiers = new Hashtable(equalityComparer);
     }
     this.list = new ArrayList();
 }
コード例 #3
0
 public CodeIdentifiers(bool caseSensitive)
 {
     if (caseSensitive)
     {
         this.identifiers         = new Hashtable();
         this.reservedIdentifiers = new Hashtable();
     }
     else
     {
         IEqualityComparer equalityComparer = new CaseInsensitiveKeyComparer();
         this.identifiers         = new Hashtable(equalityComparer);
         this.reservedIdentifiers = new Hashtable(equalityComparer);
     }
     this.list = new ArrayList();
 }
コード例 #4
0
        public CodeIdentifiers(bool caseSensitive)
        {
            if (caseSensitive)
            {
                identifiers         = new Hashtable();
                reservedIdentifiers = new Hashtable();
            }
            else
            {
                IEqualityComparer comparer = new CaseInsensitiveKeyComparer();
                identifiers         = new Hashtable(comparer);
                reservedIdentifiers = new Hashtable(comparer);
            }

            list = new ArrayList();
        }