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