I have written the vb .net code below..
The question is of how to typecast the property to a datatype..
A class which has a property of type an API
Class A
Public property Work() As ipdWork.Work
Get
Return Work
End Get
Set(Value As ipdWork.Work)
Work= Value
End Set
Class B
Now in my class B i need to have to typecast a return value to the type property
ie,
Dim polltype As Object
polltype = Ctype(Object , Work) ' Here is the confusion
ie, i want to convert the polltype to a type of property. I dont need to directly access ipdWork.Work
Coz since its an API, it would trble the whole application if thy change the API in future.
So i need to access it via the property....
I think the question is clear now..
Any confusion?? If so i will clarify it more...
Thanks in advance.
The question is of how to typecast the property to a datatype..
A class which has a property of type an API
Class A
Public property Work() As ipdWork.Work
Get
Return Work
End Get
Set(Value As ipdWork.Work)
Work= Value
End Set
Class B
Now in my class B i need to have to typecast a return value to the type property
ie,
Dim polltype As Object
polltype = Ctype(Object , Work) ' Here is the confusion
ie, i want to convert the polltype to a type of property. I dont need to directly access ipdWork.Work
Coz since its an API, it would trble the whole application if thy change the API in future.
So i need to access it via the property....
I think the question is clear now..
Any confusion?? If so i will clarify it more...
Thanks in advance.