System.Runtime.Serialization.XmlSerializableServices.IsValidAttribute C# (CSharp) Method

IsValidAttribute() private static method

private static IsValidAttribute ( XmlReader xmlReader ) : bool
xmlReader System.Xml.XmlReader
return bool
        private static bool IsValidAttribute(XmlReader xmlReader)
        {
            return xmlReader.NamespaceURI != Globals.SerializationNamespace &&
                                   xmlReader.NamespaceURI != Globals.SchemaInstanceNamespace &&
                                   xmlReader.Prefix != "xmlns" &&
                                   xmlReader.LocalName != "xmlns";
        }