Skip to content

StudentResult.GetHashWithoutLastUpdate returns List<int?> instead of int #165

@lorenzocorallo

Description

@lorenzocorallo

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;
}
}

Metadata

Metadata

Labels

choreNo visual changes for the end user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions