Hi all :wave:
can any one tell me that how to make read only property??
Printable View
Hi all :wave:
can any one tell me that how to make read only property??
Just type "public readonly property MyProperty as string" and press Enter.
This I think but sir I face this question in the interview there was four option
1)Use Let Statement
2)Use Get Statement
3)Use Set Statement
4)Use Set and Set Statement
in this condition what is the solution??
What is the answer option 2??VB Code:
Public ReadOnly Property Shakti() As String Get End Get End Property
:confused:
Do you see any "Let" or "Set" in that property declaration?
Thanks I got the solution but what is the use of Let ?? :wave:
"Let" was a VB6 thing that isn't used in VB.NET.
Thanks JMC but you are not fat and lazy :bigyello: