Click here to Skip to main content
16,004,901 members
Home / Discussions / C#
   

C#

 
QuestionHow to create a container control Pin
Fairytale24-Nov-01 2:37
Fairytale24-Nov-01 2:37 
AnswerRe: How to create a container control Pin
Makyana17-Dec-01 9:55
Makyana17-Dec-01 9:55 
GeneralRunning an external program Pin
Tariq20-Nov-01 19:25
Tariq20-Nov-01 19:25 
GeneralRe: Running an external program Pin
Andreas Philipson21-Nov-01 4:20
Andreas Philipson21-Nov-01 4:20 
GeneralRe: Running an external program Pin
Tariq21-Nov-01 7:17
Tariq21-Nov-01 7:17 
GeneralRe: Running an external program Pin
Andreas Philipson21-Nov-01 8:19
Andreas Philipson21-Nov-01 8:19 
GeneralGetProcesses(string machinename) method... Pin
20-Nov-01 12:12
suss20-Nov-01 12:12 
GeneralXML in function descriptions doesn't correctly deal with less-than and greater-than Pin
Mike Morearty18-Nov-01 19:47
Mike Morearty18-Nov-01 19:47 
As everyone probably knows, in C# (and probably other .NET languages), you can put comments at the top of any class or function in this format (this example is for a function):

/// <summary>super-duper function</summary>
/// <param name="thing">the first parameter</param>
void MyFunction(string thing)
The great thing is that C# will automatically use these comments when doing tooltips for auto-complete. I love that.

Unfortunately, it seems that auto-complete does not correctly deal with < and > characters when they appear in the XML. For example, if the following XML appears above a function:

/// <summary>If x &lt; y then do something</summary>
...then that is exactly how auto-complete will display the description of the function. It should be doing standard "entity" conversion, e.g. converting &lt; to < and &gt; to > and so on. (You can't just put < into the summary itself, because that's not legal in XML. Try it -- you'll get an error message in the auto-complete tooltip.)

For another example of this, try typing "Directory.GetLogicalDrives(" into a C# file, and observe that the tooltip that comes up says:

Retrieves the names of the logical drives on this computer
in the form "&lt;driver letter&gt;:\".
Oops. Microsoft, please fix the tooltip code?

By the way, Visual Studio's utility for creating HTML documentation (Tools menu, "Build Comment Web Pages..." command) DOES correctly deal with &lt; and &gt; in the XML.

Mike Morearty
mike@morearty.com
http://www.morearty.com
GeneralRe: XML in function descriptions doesn't correctly deal with less-than and greater-than Pin
Paul Watson21-Nov-01 4:57
sitebuilderPaul Watson21-Nov-01 4:57 
GeneralEventLog or System.Diagnostics classes not working.. Pin
16-Nov-01 6:26
suss16-Nov-01 6:26 
GeneralRe: EventLog or System.Diagnostics classes not working.. Pin
Andreas Philipson16-Nov-01 11:57
Andreas Philipson16-Nov-01 11:57 
GeneralRe: EventLog or System.Diagnostics classes not working.. Pin
20-Nov-01 12:15
suss20-Nov-01 12:15 
QuestionHow can show a child window whith the main window Pin
aner_glx15-Nov-01 22:31
aner_glx15-Nov-01 22:31 
GeneralRunning C# Windows Application Pin
Rick Crone15-Nov-01 6:03
Rick Crone15-Nov-01 6:03 
GeneralRe: Running C# Windows Application Pin
Nish Nishant15-Nov-01 13:41
sitebuilderNish Nishant15-Nov-01 13:41 
GeneralURL for .NET redistributable Pin
Nish Nishant15-Nov-01 13:50
sitebuilderNish Nishant15-Nov-01 13:50 
GeneralRe: Running C# Windows Application Pin
Paul Watson17-Nov-01 4:27
sitebuilderPaul Watson17-Nov-01 4:27 
GeneralRe: Running C# Windows Application Pin
5-Dec-01 22:51
suss5-Dec-01 22:51 
GeneralCalling a C++ DLL from C# Pin
Jose Fco Bonnin14-Nov-01 22:16
Jose Fco Bonnin14-Nov-01 22:16 
GeneralRe: Calling a C++ DLL from C# Pin
aner_glx15-Nov-01 22:24
aner_glx15-Nov-01 22:24 
GeneralRe: Calling a C++ DLL from C# Pin
Jose Fco Bonnin16-Nov-01 4:37
Jose Fco Bonnin16-Nov-01 4:37 
GeneralRe: Calling a C++ DLL from C# Pin
aner_glx16-Nov-01 21:39
aner_glx16-Nov-01 21:39 
GeneralWM_COPYDATA Pin
rose33712-Nov-01 19:53
rose33712-Nov-01 19:53 
GeneralC# and COM (Connection Points) Pin
Anders Molin9-Nov-01 5:35
professionalAnders Molin9-Nov-01 5:35 
Generalproblem registering class Pin
dsdsds9-Nov-01 4:13
dsdsds9-Nov-01 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.