Re: Difference between <summary> and <value> tags
From: Bruce Wood (brucewood_at_canada.com)
Date: 01/25/05
- Next message: Cor Ligthert: "Re: Variable in a label name?"
- Previous message: Brian Brown: "Re: Error accessing sql server"
- In reply to: Edward Diener: "Re: Difference between <summary> and <value> tags"
- Messages sorted by: [ date ] [ thread ]
Date: 25 Jan 2005 11:13:45 -0800
In commenting my code today I also noticed that a great use of the
<value> clause is to indicate what value comes back when the property
returns "nothing" in semantic terms.
For example, a property that returns a collection of "selected items":
what does it do if nothing is selected? Does it return an empty
collection, or a null reference? I use the <value> clause to document
this behaviour, which is more common than the true / false example I
gave above.
However, important information that would help the caller understand
how to use the property, such as units of measure, should be in the
<summary> section, as this is what appears in Intellisense as a tool
tip when the user mouses over your property name.
- Next message: Cor Ligthert: "Re: Variable in a label name?"
- Previous message: Brian Brown: "Re: Error accessing sql server"
- In reply to: Edward Diener: "Re: Difference between <summary> and <value> tags"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|