public StudentStruct(int age, int mass) { this = new StudentStruct(age) {_mass = mass}; }
/// <summary> /// Статический метод который выводит возраст /// </summary> /// <param name="studentStruct">the <see cref="StudentStruct"/></param> public static void WriteAge(StudentStruct studentStruct) { Console.WriteLine("Age is:" + studentStruct._age); }
public StudentStruct(int age) { this= new StudentStruct(); _age = age; }