How to determine read/write status of a property
chris Burgess <[email protected]> Mon, 25 Feb 2008 11:02:53 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
How do I discover if a property is read only or read/write at runtime
(other than trying to write to it)?
e.g.
If:
Public ReadOnly Property Name() As String
Get
Return _name
End Get
End Property
then I want the textbox on the form to be read only.
If:
Private _name As String
Public Property Name() As String
Get
Return _name
End Get
Set(ByVal value As String)
_name = value
End Set
End Property
then I want the textbox to be read/write.
Thanks,
Chris
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com