Example #1
0
        static public Int64 ReadElementContentAsInt64(XmlDictionaryReader reader)
        {
            reader.ReadFullStartElement();
            Int64 i = reader.ReadContentAsLong();

            reader.ReadEndElement();
            return(i);
        }
        public static long ReadElementContentAsInt64(XmlDictionaryReader reader)
        {
            reader.ReadFullStartElement();
            long num = reader.ReadContentAsLong();

            reader.ReadEndElement();
            return(num);
        }
        public static long ReadSequenceNumber(XmlDictionaryReader reader, bool allowZero)
        {
            long num = reader.ReadContentAsLong();

            if ((num < 0L) || ((num == 0L) && !allowZero))
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(System.ServiceModel.SR.GetString("InvalidSequenceNumber", new object[] { num })));
            }
            return(num);
        }