How is a property designated as read-only?

Showing Answers 1 - 2 of 2 Answers

Binda Joshi

  • Mar 10th, 2005
 

In VB.NET:Public ReadOnly Property PropertyName As ReturnType Get ?Your Property Implementation goes in hereEnd GetEnd Property

  Was this answer useful?  Yes

samiksc

  • Jan 16th, 2006
 

In C# if you specify a get accessor but do not specify a set accessor for a property it becomes a read only property.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions