コード例 #1
0
ファイル: NReference.cs プロジェクト: yankejustin/SharpDoc
 /// <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
ファイル: NDocumentApi.cs プロジェクト: modulexcite/SharpDoc
        /// <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
ファイル: NDocumentApi.cs プロジェクト: yankejustin/SharpDoc
        /// <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
ファイル: NAssemblySource.cs プロジェクト: Ziriax/SharpDX
 /// <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
ファイル: NProperty.cs プロジェクト: yankejustin/SharpDoc
 protected internal override void OnDocNodeUpdate()
 {
     base.OnDocNodeUpdate();
     ValueDescription = NDocumentApi.GetTag(DocNode, "value");
 }