编辑代码

using System;
public class Student
{
    //姓名
    string name;
    public string Name
    {
        get {return this.name;}
        set {this name = =value;}
    }
   //年龄
   int age;
   public int Age
   {
       get {return this.age;}
       set{this.age = value;}
   }
}