/// <summary> /// Called when <see cref="DocNode"/> is updated. /// </summary> protected internal virtual void OnDocNodeUpdate() { if (DocNode != null) { Description = NDocumentApi.GetTag(DocNode, DocTag.Summary); Remarks = NDocumentApi.GetTag(DocNode, DocTag.Remarks); } }
/// <summary> /// Called when <see cref="DocNode"/> is updated. /// </summary> protected internal virtual void OnDocNodeUpdate() { if (DocNode != null) { Description = NDocumentApi.GetTag(DocNode, DocTag.Summary); Remarks = NDocumentApi.GetTag(DocNode, DocTag.Remarks); UnManagedApi = NDocumentApi.GetTag(DocNode, "unmanaged"); UnManagedShortApi = NDocumentApi.GetTag(DocNode, "unmanaged-short"); MsdnId = NDocumentApi.GetTag(DocNode, "msdn-id"); } }
protected internal override void OnDocNodeUpdate() { base.OnDocNodeUpdate(); ReturnDescription = NDocumentApi.GetTag(DocNode, "returns"); // Update DocNode for parameters foreach (var parameter in Parameters) { parameter.DocNode = DocNode; } }
/// <summary> /// Loads the xml documentation from the specified path.. /// </summary> /// <param name="path">The path to a xml doc file.</param> /// <returns>A NDocumentApi or null if failed to read</returns> public static NDocumentApi Load(string path) { NDocumentApi doc = null; if (File.Exists(path)) { try { var xmlDoc = new XmlDocument(); xmlDoc.Load(path); doc = new NDocumentApi { Document = xmlDoc }; doc.Initialize(); } catch (Exception ex) { } } return doc; }
/// <summary> /// Loads the xml documentation from the specified path.. /// </summary> /// <param name="path">The path to a xml doc file.</param> /// <returns>A NDocumentApi or null if failed to read</returns> public static NDocumentApi Load(string path) { NDocumentApi doc = null; if (File.Exists(path)) { try { var xmlDoc = new XmlDocument(); xmlDoc.Load(path); doc = new NDocumentApi { Document = xmlDoc }; doc.Initialize(); } catch (Exception ex) { } } return(doc); }
/// <summary> /// Initializes a new instance of the <see cref="NAssemblySource"/> class. /// </summary> /// <param name="assembly">The assembly.</param> /// <param name="document">The document.</param> public NAssemblySource(object assembly, NDocumentApi document) { Assembly = assembly; Document = document; }
protected internal override void OnDocNodeUpdate() { base.OnDocNodeUpdate(); ValueDescription = NDocumentApi.GetTag(DocNode, "value"); }