Hi Ajikoe,
Did you generate the xml file out when you build you application?
A very good guide. Please download this.
http://www.gotdotnet.com/team/csharp/learn/whitepapers/XMLDocs.doc
Hope it helps you
--
Regards,
Chua Wen Ching
:
Hello,
I tried to write down this example from help file:
public class MyClass
{
/// <summary>
/// The GetZero method.
/// </summary>
/// <example> This sample shows how to call the GetZero method.
/// <code>
/// class MyClass
/// {
/// public static int Main()
/// {
/// return GetZero();
/// }
/// }
/// </code>
/// </example>
public static int GetZero()
{
return 0;
}
/// text for Main
public static void Main ()
{
}
}
And I tried to use object browser to find out if I can see the example but still I can't
Pujo
:
Hi ajikoe,
Sorry for the late reply. I can't remember where i post this.
Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.
Make sure it is the same file name with the Project example:
Project1.exe
Project1.xml
Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.
Good Luck! Correct me if i am wrong.
--
Regards,
Chua Wen Ching
:
Hello Chua Wen Ching,
I tried "param" tag is working for documenting the method/function:
if the method is function which return value.
But if it is void so there is no description for the void type.
for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?
thanks
pujo
:
Hi ajikoe,
From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:
Assuming:
/// <summary>
/// The main entry point for the application.
/// </summary>
/// <remarks>Just a sample app!</remarks>
[STAThread]
static void Main(string[] args)
{
}
1) Inside VS.NET, go to Tools, then select Build Comments Web Page.
2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.
3) Use the default settings, and press Ok.
4) You will see a generated comment file.
5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).
Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.
Even though you can <example> xml element in there.
Please correct me if i am wrong! Cheers.
--
Regards,
Chua Wen Ching
:
Hello,
Have you tried using value and example?
How it looks in HTML format?
I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.
Sincerely Yours,
pujo
:
Hi ajikoe,
The most common xml doc syntax if you vs.net doc generation is
<summary>
<remarks>
But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
http://ndoc.sourceforge.net/
Hope it helps. Cheers.
--
Regards,
Chua Wen Ching
:
Hello,
I used Visual C# Standard Edition.
I want to comment my program using xml commentary method,
I don't know why if I use value and example tag, it is not working / showed in the html result.
for example I have Property
///<value>this is in description</value>
///<example>this is in Example</example>
public int A{
get{
return 27;
}
}
Note: it works for "remark" and "summary" tag
Can anyone help me?
Thanks
Pujo