/// <summary>
 /// Adds the declaration.
 /// </summary>
 /// <param name="tableDeclarationProvider">The table declaration provider.</param>
 /// <param name="tableName">Name of the table.</param>
 /// <param name="element">The element.</param>
 private static void AddDeclaration(string tableName, XElement element, string src, HashSet <Declaration> res)
 {
     try
     {
         Declaration declaration = XmlDocumentationLoader.CreateDeclaration(element, src);
         res.Add(declaration);
     }
     catch (ArgumentException)
     {
         // Enum.Parse could not parse the declaration type, there's nothing we can do.
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="xmlPath"></param>
 internal void AddPredefinedDeclarationsFromXML(string xmlPath)
 {
     _predefinedDeclarations.UnionWith(XmlDocumentationLoader.LoadXml(xmlPath));
 }