public string ConversieLaSir_PentruFisier() { string sNote = string.Empty; if (note != null) { sNote = string.Join(SEPARATOR_AFISARE, note); } string s = string.Format("{1}{0}{2}{0}{3}{0}{4}{0}{5}{0}{6}{0}{7}", SEPARATOR_PRINCIPAL_FISIER, IdStudent.ToString(), (Nume ?? " NECUNOSCUT "), (Prenume ?? " NECUNOSCUT "), ProgramSTD, DisciplineAsString, sNote, AnStudiu); return(s); }
public bool Equals(AbsentViewModel other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(IdStudent.Equals(other.IdStudent)); }
/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns>Boolean true if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(object obj) { if (obj == null) { return(false); } Result result = obj as Result; if (result == null) { return(false); } return(IdExam.Equals(result.IdExam) && IdStudent.Equals(result.IdStudent) && Mark.Equals(result.Mark)); }
/// <summary> /// Get a hash code for the current object. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { return(Mark.GetHashCode() * 4 + IdExam.GetHashCode() + IdStudent.GetHashCode()); }
public override int GetHashCode() { return(IdStudent.GetHashCode()); }