Skip to content

Commit f84c5ea

Browse files
authored
BHoM_Engine: Exclude SpecialName methods from BhoMMethodList (#3464)
2 parents 6d9e37d + a8e45bc commit f84c5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BHoM_Engine/Compute/ExtractAssembly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private static void ExtractMethods(Assembly asm)
164164
// Get only the BHoM methods
165165
if (!type.IsInterface && type.IsAbstract)
166166
{
167-
foreach (MethodInfo info in type.GetMethods(bindingBHoM).Where(x => x.IsLegal()))
167+
foreach (MethodInfo info in type.GetMethods(bindingBHoM).Where(x => x.IsLegal() && !x.IsSpecialName))
168168
{
169169
Global.BHoMMethodList.Add(info);
170170
}

0 commit comments

Comments
 (0)