public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, XmlLinqReaderLogInfoType InfoType) { if (ReaderLog != null) { ReaderLog.Write(Element, XAttribute, null, (int)InfoType); } }
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); }