LoadDefinition() public static method

public static LoadDefinition ( XmlReader reader, bool skipValidation ) : ICSharpCode.AvalonEdit.Highlighting.Xshd.XshdSyntaxDefinition
reader System.Xml.XmlReader
skipValidation bool
return ICSharpCode.AvalonEdit.Highlighting.Xshd.XshdSyntaxDefinition
コード例 #1
0
ファイル: HighlightingLoader.cs プロジェクト: VE-2016/VE-2016
 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);
     }
 }