Exemplo n.º 1
0
 public string ToString()
 {
     return($"STUDENT: {Environment.NewLine}" +
            $"Index: {Index.ToString()}, {Environment.NewLine}" +
            $"Imie:  { FirstName.ToString() }, Naziwsko: {LastName.ToString()},{Environment.NewLine}" +
            $"Data Urodzenia: {Birthdate.ToString()},{Environment.NewLine}" +
            $"Email: {Email.ToString()},{Environment.NewLine}" +
            $"Imie Matki: {MothersName.ToString()}, Imie Ojca: {FathersName.ToString()}, {Environment.NewLine}" +
            $"Kierunek Studiów: {StudiesName.ToString()}, Tryb: {StudiesType.ToString()}{Environment.NewLine}" +
            $"##########################################################################  {Environment.NewLine }  {Environment.NewLine }"
            );
 }
Exemplo n.º 2
0
 override public int GetHashCode()
 {
     return(FName.GetHashCode() + LName.GetHashCode() + Studies.GetHashCode() + Id.GetHashCode() + BirthDate.GetHashCode() + Email.GetHashCode() + MothersName.GetHashCode() + FathersName.GetHashCode());
 }