I saw some get set method to set values. Can anyone tell me the purpose of this?
public string HTTP_USER_NAME { get { return UserNam
Properties are just accessors over fields. They allow to do certain operations (if needed), and provide controlled access to fields.
If you want to know when to use Properties, and when to use Only fields, Check the link Properties vs Fields – Why Does it Matter? (Jonathan Aneja)