Showing posts with label How to declare a property in a class. Show all posts
Showing posts with label How to declare a property in a class. Show all posts

Saturday 21 April 2012

How to declare a property in a class


How to declare a property in a class?


int m_PersonID = 0;

public int PersonID
{
get { return m_PersonID; }
set { m_PersonID = value; }
}