コード例 #1
0
ファイル: Class.cs プロジェクト: crypto-rsa/GEx
 /// <summary>
 /// The copy constructor
 /// </summary>
 /// <param name="source">A <see cref="Class"/> instance to copy the data from</param>
 public Class( Class source )
 {
     _name = source._name;
     _headTeacher = source._headTeacher;
     _viceHeadTeacher = source._viceHeadTeacher;
     _chairmanName = source._chairmanName;
     _viceChairman = source._viceChairman;
     _viceViceChairman = source._viceViceChairman;
 }
コード例 #2
0
ファイル: Student.cs プロジェクト: crypto-rsa/GEx
 /// <summary>
 /// The copy constructor
 /// </summary>
 /// <param name="source">A <see cref="Student"/> object to copy the data from</param>
 public Student( Student source )
 {
     _name = source._name;
     _class = source._class;
     _disabilityLevel = source._disabilityLevel;
 }
コード例 #3
0
ファイル: Student.cs プロジェクト: crypto-rsa/GEx
 /// <summary>
 /// Constructs a new student
 /// </summary>
 /// <param name="name">The name of the student</param>
 /// <param name="ownClass">The class the student belongs to</param>
 /// <param name="disabilityLevel">The disability level of the student</param>
 public Student( string name, Class ownClass, DisabilityLevel disabilityLevel = DisabilityLevel.None )
 {
     _name = name;
     _class = ownClass;
     _disabilityLevel = disabilityLevel;
 }