every GetHashWithoutLastUpdate returns int except StudentResult's one.
|
public List<int?> GetHashWithoutLastUpdate() |
|
{ |
|
var r = new List<int?> |
|
{ |
|
"StudentResult".GetHashCode(), |
|
BirthDate?.GetHashCode() ?? "BirthDate".GetHashCode(), |
|
EnrollType?.GetHashWithoutLastUpdate() ?? "EnrollType".GetHashCode(), |
|
EnglishCorrectAnswers?.GetHashCode() ?? "EnglishCorrectAnswers".GetHashCode(), |
|
Id?.GetHashCode() ?? "Id".GetHashCode(), |
|
PositionAbsolute?.GetHashCode() ?? "PositionAbsolute".GetHashCode(), |
|
PositionCourse?.GetHashCode() ?? "PositionCourse".GetHashCode(), |
|
Result?.GetHashCode() ?? "Result".GetHashCode() |
|
}; |
|
if (Ofa == null) |
|
r.Add("OfaEmpty".GetHashCode()); |
|
else |
|
r.Add(Ofa.Aggregate("OfaFull".GetHashCode(), |
|
(current, variable) => current ^ variable.Key.GetHashCode() ^ variable.Value.GetHashCode())); |
|
|
|
if (SectionsResults == null) |
|
r.Add("SectionsResultsEmpty".GetHashCode()); |
|
else |
|
r.Add(SectionsResults.Aggregate("SectionsResultsFull".GetHashCode(), |
|
(current, variable) => current ^ variable.Key.GetHashCode() ^ variable.Value.GetHashCode())); |
|
|
|
return r; |
|
} |
|
} |
every
GetHashWithoutLastUpdatereturnsintexceptStudentResult's one.GraduatorieScriptCSharp/PoliNetwork.Graduatorie.Parser/Objects/StudentResult.cs
Lines 25 to 52 in 74ace8f