c# - Ordering of reflection requests in dotnet -


When I call GetProperties () on one type, properties are ordered because they were written in the source code Are there. It is very easy but my question is, if it is a guaranteed behavior or it can change based on the runtime version and the environment, does anyone know anything about this?

No, you can not assume the order will be the same

: Excerpt from :

The GetProperties method does not return properties in a specific order, such as alphabetical or announcement order. Your code should not depend on the order in which the properties are returned because this order changes.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -