Skip to content

Commit a8e45bc

Browse files
committed
Exclude SpecialName methods from BhoMMethodList
This excludes: Property.Get and .set Event.Add and .Remove
1 parent 88d79af commit a8e45bc

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)