Read() private méthode

private Read ( System.Runtime.Serialization.XmlReaderDelegator reader ) : void
reader System.Runtime.Serialization.XmlReaderDelegator
Résultat void
        internal virtual void ReadAttributes(XmlReaderDelegator xmlReader)
#endif
        {
            if (attributes == null)
            {
                attributes = new Attributes();
            }
            attributes.Read(xmlReader);
        }
        protected static bool TryReadNullAtTopLevel(XmlReaderDelegator reader)
        {
            Attributes attributes = new Attributes();

            attributes.Read(reader);
            if (attributes.Ref != Globals.NewObjectId)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.Format(SR.CannotDeserializeRefAtTopLevel, attributes.Ref)));
            }
            if (attributes.XsiNil)
            {
                reader.Skip();
                return(true);
            }
            return(false);
        }
 protected bool TryReadNullAtTopLevel(XmlReaderDelegator reader)
 {
     Attributes attributes = new Attributes();
     attributes.Read(reader);
     if (attributes.Ref != Globals.NewObjectId)
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.Format(SR.CannotDeserializeRefAtTopLevel, attributes.Ref)));
     if (attributes.XsiNil)
     {
         reader.Skip();
         return true;
     }
     return false;
 }