Skip to main content
Filter by
Sorted by
Tagged with
8 votes
2 answers
4k views

In my C# XML Comment's <return> comment, I would like the output (I'm using Sandcastle) to specify the Type that is returned, but I am unable to find out how to do that. Psuedo Example: ///<...
Jed's user avatar
  • 10.9k
1 vote
1 answer
918 views

In Visual Studio 2010 we can Comment selected text via Ctrl+E,C - This prefixes selected lines with the double-slash. Is there a way to select text and have VS2010 prefix the selected lines with a ...
Jed's user avatar
  • 10.9k
0 votes
1 answer
315 views

I just downloaded the trial for this application and it doesn't seem to work. I went through the Quick Setup guide and it all looked great. Now when I place my cursor on a member of any type and press ...
Shane LeBlanc's user avatar
0 votes
1 answer
140 views

How can I instruct XQuery to copy these SSI directives (HTML comments) from an XQuery file (.xq) to the output html file. <!--#set var="tab4" value="true" --> <!--#include virtual="/common/...
TechAurelian's user avatar
  • 5,861
7 votes
1 answer
2k views

I'm having trouble finding out how to do this and the Visual Studio SDK Reference is not very helpful either. I'm trying to figure out how to get a NormalizedSnapshotSpanCollection of XML comments. I ...
michael's user avatar
  • 15.4k
1 vote
1 answer
1k views

We have several projects that use runtime T4 Templates. The T4 Template files (.tt) produce generated .cs files with the same name. These contain a TransformText() method and a ToStringHelper() method ...
MgSam's user avatar
  • 12.9k
6 votes
2 answers
2k views

In Visual Studio 2010 is there a way to get Intellisense on the Interface that a method implements if that method does not have any XML comments of its own? I suppose something like this would be ...
Peladao's user avatar
  • 4,090
2 votes
1 answer
709 views

I want to write a wrapper class for the set of existing classes. When I go to the definition of existing class it shows meta-data file with comments like // Summary: // This is Test ...
Atul Sureka's user avatar
  • 3,332
10 votes
1 answer
2k views

Is it normal I can't see xml comments from external libraries? For example I have an external library with xml comments on methods. After making a reference to this library I was hoping that xml ...
bAN's user avatar
  • 13.9k
16 votes
2 answers
6k views

When typing code, I really like the intellisense feature of Visual Studio 2010 (Professional), especially that I am able to look up XML comments of types in use. (See Documentation from Microsoft). ...
Marcel's user avatar
  • 15.8k
6 votes
1 answer
1k views

I have generic exception class like this: public class DuplicateException<TEntity> : Exception { public TEntity Entity { get; set; } } And I have non-generic method which might throw ...
Snowbear's user avatar
  • 17.3k
6 votes
3 answers
705 views

We are a Microsoft shop, concentrated on using C#. We have several projects, including websites, Windows services, and class libraries, that incorporate XML comments. I'm looking to generate MSDN-...
JOpuckman's user avatar
  • 1,386
-1 votes
2 answers
2k views

Is it possible to automatically remove code comments in Visual Studio files before committing to source control, or is it possible to virtually have comments in files but physically store those in ...
BuzzBubba's user avatar
  • 733
1 vote
3 answers
2k views

Is it valid to use a double-asterisk to indicate a line-comment in XML? I see this a lot in the XML files I've been assigned to parse. Example: </someClosingTag> ** This is my line comment in ...
Jim Fell's user avatar
  • 14.4k
1 vote
3 answers
205 views

I'm using the settings editor in Visual Studio 2010 to add/edit/remove my settings from the section of my .NET 4 web.config file. Here's a (pretty vague) example extract to illustrate the bit I mean:...
m-smith's user avatar
  • 3,131
6 votes
1 answer
863 views

I am building help file for my library using Sandcastle Help File Builder. The library has three versions (.NET, Silverlight and Windows Phone 7) built from the same code base. I would like to add ...
Bobrovsky's user avatar
  • 14.3k
254 votes
8 answers
153k views

I have a project with over 500 Missing XML Comment warnings. I know I can remove the XML Comment feature, or paste empty comment snippets everywhere, but I'd prefer a generic solution where I can ...
Nivid Dholakia's user avatar
2 votes
3 answers
885 views

In C# xml comments, what is the difference between the tags below? 1. <c> 2. <code>
Pankaj's user avatar
  • 10.2k
4 votes
3 answers
1k views

I need to parse a file containing xml comments. Specifically it's a c# file using the MS /// convention. From this I'd need to pull out foobar, or /// foobar would be acceptable, too. (Note - this ...
some bits flipped's user avatar
6 votes
3 answers
2k views

I'd like to have a single command to auto-linewrap the XML-style comments in .NET. Example: /// <summary> /// This comment line should be /// on one line, and other lines in this <summary&...
Contango's user avatar
  • 81k
1 vote
1 answer
104 views

I'm creating a library (C#, .Net), but I need to distribute it to customers in multiple countries. When you add XML comments to your classes, intellisense picks up the comments out of the assembly ...
Verax's user avatar
  • 2,569
2 votes
2 answers
645 views

I have inherited an API which doesn't have proper comments, and I am working on changing that. Anyone know if there is some sort of mechanism to add a default XML comments to all the members of a ...
VoodooChild's user avatar
  • 9,804
9 votes
1 answer
4k views

Is there a way to specify what language is being used in the <code> tag used within an <example> tag in XML comments? I am using Sandcastle Help File Builder to test building ...
Amanda Kitson's user avatar
5 votes
3 answers
2k views

Basically, in the MSDN online help I often run into a "NOTE" section, but cannot for the life of me figure out how to get that same output. Apparently there is no <note> tag. Does anyone know ...
myermian's user avatar
  • 32.6k
3 votes
1 answer
174 views

ETA: Visual Studio 2010 VB Express edition exhibits the same behaviour. ETA: Visual Studio 2010 C# Express edition does NOT exhibit the same behaviour. In VisualStudio 2008 VB Express edition, I ...
Jules's user avatar
  • 4,349
12 votes
3 answers
15k views

When specifying summary tag comments, is there a way with the <param> tag to note that a parameter is optional, ie. the client can supply a value or null, such as: <param name="Mime" ...
cweston's user avatar
  • 11.8k
1 vote
1 answer
1k views

I know how to use the <include> keyword from my code to refer to a member in an external comments file. Something like: <include file="Comments.xml" path="Docs/ClassName/Members[@name='DoIt']...
Jules's user avatar
  • 4,349
15 votes
2 answers
5k views

I'm trying to put newlines in my XML Comments in VB.Net. I've read two other posts about C#, XML multiline comments in C# - what am I doing wrong? Adding line breaks to comments for Intellisense ...
Kratz's user avatar
  • 4,340
5 votes
4 answers
2k views

I have writen a method such as: /// <summary> /// A method having xml-comments /// This comment could be very long /// </summary> /// <param name="input">Input parameter</param&...
Tu Tran's user avatar
  • 1,997
0 votes
1 answer
54 views

I'm trying to create documentation for my code and I'm using xml-comments for it. When a class is documented like the following: /// <summary> /// Main presentation window /// </summary> ...
Bildsoe's user avatar
  • 1,350
4 votes
1 answer
384 views

I have a Visual Studio C# solution with 3 different projects in it. In each of the projects I've commented all the code using xml-comments. If I want the comments build into xml, I have to specify a ...
Bildsoe's user avatar
  • 1,350
3 votes
2 answers
450 views

If i have the following function: void ReadData(Action<DataContext> action) {} how can i reference it in seealso construct? <seealso cref="ReadData(Action<DataContext>)"/> ...
UserControl's user avatar
  • 15.3k
6 votes
2 answers
2k views

As the name states, I have no idea how to reference a dictionary indexer. Any help here? :) FYI, I've tried: <see cref="Item"/> <see cref="Item(Int32)"/> //Highly doubted this would work....
myermian's user avatar
  • 32.6k
1 vote
2 answers
329 views

Well, the title asks it all. I have the Sandcastle Help File Builder GUI. I can generate help files, but I was wondering if there was a faster way of seeing the results aside from recompiling the ...
myermian's user avatar
  • 32.6k
1 vote
2 answers
360 views

Related to my previous question. If I define an interface I'll comment its members. I then don't comment the implementing class's implementation unless there is a reason the original comment is no ...
Ian's user avatar
  • 4,919
1 vote
2 answers
158 views

When you create an XML comment in C# and collapse it you only see: <Summary>... But in VB you could potentially see Initializes the fubble to the watzer. This is actually the second line. ...
deanvmc's user avatar
  • 6,215
4 votes
3 answers
10k views

I am using XmlDocument to parse xml file, but it seems that XmlDocument is always reading xml comments as a xml nodes: My C# code XmlDocument xml = new XmlDocument(); xml.Load(filename); foreach (...
icn's user avatar
  • 18k
9 votes
1 answer
2k views

Here's an example: public void DoSomething(String param1, String param2) { if (param1 == null) throw new ArgumentNullException("param1"); if (param2 == null) throw new ArgumentNullException("...
myermian's user avatar
  • 32.6k
1 vote
0 answers
208 views

Possible Duplicate: XML Comments not appearing in WCF Service Thanks to WCFExtras, the XML comments for WCF methods appears in generated .wsdl file. Now the problem is that the XML comments doesn'...
Cargo's user avatar
  • 185
0 votes
3 answers
289 views

In Visual Studio, xml comments can be added to methods/classes to provide documentation. See http://msdn.microsoft.com/en-us/magazine/cc302121.aspx. Visual Studio generates files from these xml ...
Yuf's user avatar
  • 620
2 votes
2 answers
927 views

Following these guidelines for vsdoc documentation, I've been unable to get intellisense to work properly for an array of a given type. Here is some code that demos the problem function MyType() { ...
Allen Rice's user avatar
  • 19.5k
1 vote
1 answer
657 views

having an issue that I can't seem to find a direct answer to. I'm in the late stages of building a game engine with a few friends and at this point, we're looking to streamline the comments to make ...
DaveStance's user avatar
1 vote
0 answers
888 views

Basically, I have the following: <see cref="NotifyCollectionChangedEventArgs"/> see tag in my XML Comments. ReSharper states that it is an ambiguous reference and suggests for me to give it as ...
michael's user avatar
  • 15.4k
3 votes
0 answers
185 views

Possible Duplicate: How to make a cref to method overloads in a <seealso> tag in C#? How can I XML comment my code so that I point to something like this instead of each individual method? ...
michael's user avatar
  • 15.4k
6 votes
2 answers
943 views

I understand that if you /// above a class, field, method, or property Visual Studio will start establishing XML-style comments for you. However, where can I go to add XML comments for my namespaces ...
michael's user avatar
  • 15.4k
7 votes
2 answers
1k views

Code: public interface IFoo { void Bar(); } public class FooClass : IFoo { /// <summary> ... </summary> /// <seealso cref="?"/> //How do you reference the IFoo.Bar() ...
myermian's user avatar
  • 32.6k
25 votes
3 answers
5k views

Basically, when is it truly necessary (if at all) to use a fully qualified xml see reference: <see cref="T:MyNamespace.Sub.MyType"/> //Option 1 <see cref="T:MyType"> //Option 2 Also, what ...
myermian's user avatar
  • 32.6k
25 votes
1 answer
5k views

Is there a standard way that the tools used to generate the API documents handle having XML Style comments on partial classes? Basically, how should one comment a partial class/method so that the ...
myermian's user avatar
  • 32.6k
4 votes
1 answer
239 views

I have the following and I'm not sure how to properly reference this in my XML commenting: public static class FooExtensions { public static Nullable<T> FooX<T>(this Nullable<T> ...
michael's user avatar
  • 15.4k
14 votes
3 answers
7k views

I am interested in where I should apply my XML comments. Should I put a more generic XML comment in the interface and a more descriptive one on the implementing class? Like this: public interface ...
ChevCast's user avatar
  • 59.4k

1
3 4
5
6 7