473,506 Members | 17,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML documentation problem

I have a class which kind of represent something akin to a node in a tree
like data structure.

I have some method like that:

class Element
{
IList<int> GetElementPath(); // get the path from the root

Element this[int index] { } // get children

Element this[IList<int> path] {} // descend the hierarchy with given
indexes
}

Now I try to add some XML comment to GetElementPath()

/// <returns>The path from the root to this element, to use with
/// <see cref="this[IList<T>]"/></returns>

That doesn't work...
And I have some problem to understand the XML documentation specification.

Could someone shed some light for me? Thanks! :D

Jun 18 '06 #1
2 1533
The '<' and '>' characters are illegal in XML. The convention in the Visual
Studio.Net XML documentation is to use curly brackets in their places, e.g.

<see cref="this[IList{T}]"/>

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uw**************@TK2MSFTNGP03.phx.gbl...
I have a class which kind of represent something akin to a node in a tree
like data structure.

I have some method like that:

class Element
{
IList<int> GetElementPath(); // get the path from the root

Element this[int index] { } // get children

Element this[IList<int> path] {} // descend the hierarchy with given
indexes
}

Now I try to add some XML comment to GetElementPath()

/// <returns>The path from the root to this element, to use with
/// <see cref="this[IList<T>]"/></returns>

That doesn't work...
And I have some problem to understand the XML documentation specification.

Could someone shed some light for me? Thanks! :D

Jun 18 '06 #2
Thanks Kevin!

In fact I was enable to find it by myself because there a documentation bug
I was missing.
It should not have been <see cref="this[IList{T}]"/> but <see
cref="this[IList{int}]"/>

"Kevin Spencer" <uc*@ftc.gov> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
The '<' and '>' characters are illegal in XML. The convention in the
Visual Studio.Net XML documentation is to use curly brackets in their
places, e.g.

<see cref="this[IList{T}]"/>

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uw**************@TK2MSFTNGP03.phx.gbl...
I have a class which kind of represent something akin to a node in a tree
like data structure.

I have some method like that:

class Element
{
IList<int> GetElementPath(); // get the path from the root

Element this[int index] { } // get children

Element this[IList<int> path] {} // descend the hierarchy with given
indexes
}

Now I try to add some XML comment to GetElementPath()

/// <returns>The path from the root to this element, to use with
/// <see cref="this[IList<T>]"/></returns>

That doesn't work...
And I have some problem to understand the XML documentation
specification.

Could someone shed some light for me? Thanks! :D


Jun 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
3243
by: Daniel R. Smorey Jr. | last post by:
I'm looking for a good place for Python documentation. I'm really lost on why it's so hard to find anything when it comes to me looking up a particular function in Python. My example would be the...
0
1360
by: TDM | last post by:
Hello all, I suspect I created my own problem as I had a need to install an older version of MSDN Library so now my .NET Documentation is broken. When I run : Start/All Programs/Microsoft...
0
1262
by: Terry Hancock | last post by:
I've been trying to use "happydoc" to document a source tree that I'm working on. It does pretty much what I want, except: Version 2.1: Creates a weird directory structure for the HTML pages...
0
243
by: TDM | last post by:
Hello all, I suspect I created my own problem as I had a need to install an older version of MSDN Library so now my .NET Documentation is broken. When I run : Start/All Programs/Microsoft...
97
4286
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.