I created one web user control with property named “ReadonlyField” with boolean datatype. I am able to use in my web pages and now I wanted to add a description to that property so that I don’t need to explain each time to my team member what is that property’s intention.
I got following snippet in c# but didnt find any equivalent in vb.net and also not sure whether it will work or not.
[Description("My Description")]
public int MyIntProperty
{
get {..}
set {..}
}
A literal translation in VB 10
If this is for other programmers you may want to offer Intellisense support via XML comments. This is the standard way of doing it in both VB and C#.
VB