Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflection_Engine - Issue 703 - Fix Depth of Arrays in UnderlyingType #1124

Merged

Conversation

epignatelli
Copy link
Member

@epignatelli epignatelli commented Jul 30, 2019

Issues addressed by this PR

Closes #703
Engine.Reflection.Query.UnderlyingType currently returns the wrong depth for array types, this pr solves it.

Note: a multidimensional array (int[,]) has depth of 1. A jagged array (int[][]) has depth equals to its nesting levels (2 in this case).

Test files

https://burohappold.sharepoint.com/:f:/s/BHoM/EjmxIfvj4WNBvi9qWzVvunoBwjYJX03lohJTTu8WHAxAhA?e=5F10sa

Changelog

  • Update the Engine.Reflection.Query.UnderlyingType to return the correct depth for the Array type.

Copy link
Member

@adecler adecler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me both from test in the UI and from the code perspective.

@adecler adecler merged commit 35742ea into master Aug 3, 2019
@adecler adecler deleted the Reflection_Engine-Issue#703-UnderlyingTypeArrayDepth branch August 3, 2019 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity:critical No workaround exists. Essential to continue type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reflection_Engine: UnderlyingType returns wrong depth for arrays
2 participants