public static LoadDefinition ( |
||
reader | ||
skipValidation | bool | |
리턴 | ICSharpCode.AvalonEdit.Highlighting.Xshd.XshdSyntaxDefinition |
internal static XshdSyntaxDefinition LoadXshd(XmlReader reader, bool skipValidation) { if (reader == null) { throw new ArgumentNullException("reader"); } try { reader.MoveToContent(); if (reader.NamespaceURI == V2Loader.Namespace) { return(V2Loader.LoadDefinition(reader, skipValidation)); } else { return(V1Loader.LoadDefinition(reader, skipValidation)); } } catch (XmlSchemaException ex) { throw WrapException(ex, ex.LineNumber, ex.LinePosition); } catch (XmlException ex) { throw WrapException(ex, ex.LineNumber, ex.LinePosition); } }