473,246 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

How to add struct comments?

I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:

/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
public struct Server
{
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Tracker=@"someserver\CORE_SQL_TEST_1";
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Project=@"someserver\CORE_SQL_TEST_1";
}

None of the above will appear as it does for classes and methods. Is
this a limitation on structs?

Thanks,
Brett

Dec 9 '05 #1
3 1655
Do you get comments displayed for any classes or methods in that particular
assembly?

You need to make sure you have the XML file bearing the same name as the
assembly in order for the comments to appears.

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:

/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
public struct Server
{
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Tracker=@"someserver\CORE_SQL_TEST_1";
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Project=@"someserver\CORE_SQL_TEST_1";
}

None of the above will appear as it does for classes and methods. Is
this a limitation on structs?

Thanks,
Brett

Dec 9 '05 #2
There isn't an XML file there. I just comments on another class and
see they don't come through in projects that are referencing that
class. It also doesn't have an XML file.

I've added the XML file to all of my projects and rebuit each.
However, I still don't see the comments coming through. I think the
problem is more the project not refreshing its DLL references. For one
particular project, it does have the latest version of a DLL, yet the
comments are coming through. Any suggestions?

Thanks,
Brett

Dec 9 '05 #3
Seems I had to delete both my bin and obj folders before the update
came through. That's the only way I see changes in the DLLs.

Dec 10 '05 #4

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

Similar topics

5
by: jimjim | last post by:
Hello, Any help will be much appreciatted. My problem is as follows: I declare as global variables: typedef struct _Node{ ..; ..;}Node; Node *Graph; in a function called initiallise(), I...
12
by: Dennis Schulz | last post by:
hi alle, ich bin blutiger C Anfänger und hier ist mein Versuch ein Strukt in eine Datei zu schreiben, bzw anzuhängen. Leider wird die datei zwar angelegt aber nichts reingeschrieben. Besonders...
15
by: dutchgoldtony | last post by:
Hi all, I was just wondering if this is possible. I'm trying to implement a viterbi decoder in C and am creating an array of nodes (the struct), and an array of pointers to nodes (the member...
10
by: emma middlebrook | last post by:
Hi I discovered that if you declare a structure (and not 'new()' it) you can then separately initialize its members and the compiler counts those separate statements as a full initialization....
20
by: ma0001yu | last post by:
Hi, all. I feel confuse about below struct definition: typedef struct TAG { comments.... }; What my confusion is: is typedef extra??why we not just use
5
by: Bill Pursell | last post by:
Suppose I have a structure with many members, and I pass a pointer to that structure to a function. I'd like the prototype of the function to specify that it will only be changing certain members...
28
by: Bill | last post by:
Hello All, I am trying to pass a struct to a function. How would that best be accomplished? Thanks, Bill
12
by: Milux | last post by:
Hi All, This question has to do with interface design. Suppose I have an translation tool. It can translates structs from type "general" to other types and then does some processing. Example:...
10
by: Raman | last post by:
Hi All, Is it valid: struct test{ }; I mean, Can we have a struct containing no members? Is this a an
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.