コード例 #1
0
 public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, XmlLinqReaderLogInfoType InfoType)
 {
     if (ReaderLog != null)
     {
         ReaderLog.Write(Element, XAttribute, null, (int)InfoType);
     }
 }
コード例 #2
0
        public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute Attribute,  string Text, bool Critical)
        {
            if (ReaderLog != null)
            {
                ReaderLog.Write(Element, Attribute, Text, (int)XmlLinqReaderLogInfoType.UnknownError);
            }

            if (Critical && (ReaderLog == null || !ReaderLog.ContinueOnException))
                throw new XmlLinqReaderException(Text);
        }