private static void Main()
        {
            Student student = new Student("Peter", 22);
            student.onChangeProperty+=student_onChangeProperty;

            student.Name = "Pesho";
            student.Age = 10;
        }
示例#2
0
 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";
 }