System.Xml.Xsl.XsltOld.Keywords.Equals C# (CSharp) Method

Equals() static private method

static private Equals ( string strA, string strB ) : bool
strA string
strB string
return bool
        internal static bool Equals(string strA, string strB) {
            Debug.Assert((object) strA == (object) strB || ! String.Equals(strA, strB), "String atomization failure");
            return (object) strA == (object) strB;
        }

Usage Example

Ejemplo n.º 1
0
        public void CompileAttributes(Compiler compiler)
        {
            NavigatorInput input   = compiler.Input;
            string         element = input.LocalName;

            if (input.MoveToFirstAttribute())
            {
                do
                {
                    if (!Keywords.Equals(input.NamespaceURI, input.Atoms.Empty))
                    {
                        continue;
                    }

                    try {
                        if (CompileAttribute(compiler) == false)
                        {
                            throw XsltException.Create(Res.Xslt_InvalidAttribute, input.LocalName, element);
                        }
                    }catch {
                        if (!compiler.ForwardCompatibility)
                        {
                            throw;
                        }
                        else
                        {
                            // In ForwardCompatibility mode we ignoreing all unknown or incorrect attributes
                            // If it's mandatory attribute we'l notice it absents later.
                        }
                    }
                }while (input.MoveToNextAttribute());
                input.ToParent();
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Keywords::Equals