473,569 Members | 2,438 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 1534
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******** ******@TK2MSFTN GP03.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******** ********@TK2MSF TNGP05.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******** ******@TK2MSFTN GP03.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
3258
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 split() function of the string module. Why can't I just go to www.python.org and click on Search and then type in split and it bring me to the...
0
1364
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 Visual Studio .NET/Microsoft Visual Studio .NET Documentation All I get is a blank IDE with this text :
0
1265
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 it generates -- they embed the full path to the working copy of the sources, which, beyond just being ugly, would be pretty annoying for a...
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 Visual Studio .NET/Microsoft Visual Studio .NET Documentation All I get is a blank IDE with this text :
97
4326
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 doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Meyer Among the treasures available in The...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.