J
Joe Fallon
When I have a class like the one below I can use Intellisense to get and set
the property.
===========================
Dim mClass as New MyClass
mClass.SomeProp = "joe"
===========================
Public Class MyClass
Private mSomeProp as String
Public Property SomeProp() As String
Get
Return mSomeProp
End Get
Set(ByVal Value As String)
mSomeProp = Value
End Set
End Property
End Class
===========================
I have a method that takes the name of the Property as a String.
mSomeOtherClass.MyMethod("SomeProp")
What I can't figure out is how to get the string "SomeProp" in intellisense.
mClass.SomeProp is going to return "joe" not "SomeProp".
I want to avoid manually looking up the names and typing them if I can
retrieve them using intellsense.
Is this even possible?
Hope that makes some kind of sense.
Any help pointing me in the right direction is appreciated.
Thanks!
the property.
===========================
Dim mClass as New MyClass
mClass.SomeProp = "joe"
===========================
Public Class MyClass
Private mSomeProp as String
Public Property SomeProp() As String
Get
Return mSomeProp
End Get
Set(ByVal Value As String)
mSomeProp = Value
End Set
End Property
End Class
===========================
I have a method that takes the name of the Property as a String.
mSomeOtherClass.MyMethod("SomeProp")
What I can't figure out is how to get the string "SomeProp" in intellisense.
mClass.SomeProp is going to return "joe" not "SomeProp".
I want to avoid manually looking up the names and typing them if I can
retrieve them using intellsense.
Is this even possible?
Hope that makes some kind of sense.
Any help pointing me in the right direction is appreciated.
Thanks!