c# add property to class code example Example: add property c# Person person=new Person("Sam","Lewis")