Fixes #5500, uncompilable code when a .thirft struct named 'System' is present

This commit is contained in:
Jonas Marty 2022-01-20 14:58:23 +01:00 committed by Jens Geyer
parent 7a6829531f
commit fa5c37ab5f

View File

@ -1794,7 +1794,7 @@ void t_netstd_generator::generate_netstd_struct_equals(ostream& out, t_struct* t
}
else
{
out << "System.Object.Equals(";
out << "global::System.Object.Equals(";
}
out << prop_name((*f_iter)) << ", other." << prop_name((*f_iter)) << ")";
if (!field_is_required((*f_iter)))