Login
Remember
Register
Ask a Question
How to declare a property in a class?
0
votes
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
How to declare a property in a class?
#property-class
#c-property-class
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 6, 2020
by
Robindeniel
int m_PersonID = 0;
public int PersonID
{
get { return m_PersonID; }
set { m_PersonID = value; }
}
...