c# constructor chaining

Consider this sample:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class  {
string _studengType = "";
string _id = "";
string _fName = "";
string _lName = "";

public (string id) : this(id, "", ""){

}

public (stirng id, string fName) : this(id, fName, ""){

}

public (string id, string fName, string lName){

_studentType = "<student_type>";

_id = id;
_fName = fName;
_lName = lName;
}
}

通过this,调用第三个构造参数,可以复用id赋值的这个语句:
_id = id;

这样就不用每个构造函数都写这个逻辑,只需要用那个有最多参数构造函数即可