Merge pull request #93779 from hayahane/fix_get_property_cs

[C#] Fix `get_property_list` get wrong order of properties
This commit is contained in:
Rémi Verschelde 2024-09-13 11:21:37 +02:00
commit 40d8d82b85
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 1 deletions

View File

@ -1524,9 +1524,10 @@ void CSharpInstance::get_property_list(List<PropertyInfo> *p_properties) const {
} }
} }
props.reverse();
for (PropertyInfo &prop : props) { for (PropertyInfo &prop : props) {
validate_property(prop); validate_property(prop);
p_properties->push_back(prop); p_properties->push_front(prop);
} }
} }