private static void Main() { Student student = new Student("Peter", 22); student.onChangeProperty+=student_onChangeProperty; student.Name = "Pesho"; student.Age = 10; }
static void Main() { Student student = new Student("Peter", 22); student.PropertyChanged +=student_PropertyChanged; student.Name = "Misho"; student.Age = 35; student.Age = 30; student.Name = "Gosho"; }