c# create object and add properties code example Example: add property c# Person person=new Person("Sam","Lewis")