System.Xml.Ref.Equal C# (CSharp) Méthode

Equal() public static méthode

public static Equal ( string strA, string strB ) : bool
strA string
strB string
Résultat bool
        public static bool Equal(string strA, string strB) {
#if DEBUG
            // We can't use Debug.Assert in XmlReader.
            if(((object) strA != (object) strB) && String.Equals(strA, strB)) {
                throw new Exception("ASSERT: String atomization failure str='" + strA + "'");
            }
#endif
            return (object) strA == (object) strB;
        }
    }

Usage Example

Exemple #1
0
 private int GetAttributeIndexWithoutPrefix(string name)
 {
     name = this.coreReaderNameTable.Get(name);
     if (name != null)
     {
         for (int i = 0; i < this.attributeCount; i++)
         {
             ValidatingReaderNodeData data = this.attributeEvents[i];
             if (Ref.Equal(data.LocalName, name) && (data.Prefix.Length == 0))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
All Usage Examples Of System.Xml.Ref::Equal