Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 /// <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");
     }
 }
Пример #3
0
        protected internal override void OnDocNodeUpdate()
        {
            base.OnDocNodeUpdate();
            ReturnDescription = NDocumentApi.GetTag(DocNode, "returns");

            // Update DocNode for parameters
            foreach (var parameter in Parameters)
            {
                parameter.DocNode = DocNode;
            }
        }
Пример #4
0
        /// <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;
        }
Пример #5
0
        /// <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);
        }
Пример #6
0
 /// <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;
 }
Пример #7
0
 /// <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;
 }
Пример #8
0
 protected internal override void OnDocNodeUpdate()
 {
     base.OnDocNodeUpdate();
     ValueDescription = NDocumentApi.GetTag(DocNode, "value");
 }