BHoM / BHoM/BHoM_Engine

Reflection_Engine: IsAssignableFromIncludeGenerics in not restrictive enough

Open
#1,971 0 comments 0 reactions 1 assignee Claimed by @IsakNaslundBh View on GitHub
type:bug
Dominant language
C#
Stars
30
Forks
13
Avg merge
7d 10h
Merged PRs (30d)
5

Description

#### Description:

The `IsAssignableFromIncludeGenerics` does not limit the types enough. For example, `BH.oM.Structure.Element.Opening` would return true to being assignable to a `BH.oM.Analytical.IOpening`.

#### Test file(s):

https://burohappold.sharepoint.com/:f:/s/BHoM/ElSgfXMtsNRNsXJjzS5tKNsBuW2b_2QOL2iYdp8yjrqesg?e=TkZPkT

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.