Skip to content

Commit

Permalink
Adding context on the IsDynamic check in the ExtractAssembly method
Browse files Browse the repository at this point in the history
  • Loading branch information
adecler authored and Fraser Greenroyd committed Nov 24, 2022
1 parent d5f11a1 commit 670ee62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BHoM_Engine/Compute/ExtractAssembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static partial class Compute
[Input("assembly", "Assembly to be reflected.")]
public static void ExtractAssembly(Assembly assembly)
{
if (assembly == null || assembly.IsDynamic || assembly.ReflectionOnly)
if (assembly == null || assembly.IsDynamic || assembly.ReflectionOnly) // Dynamically compiled assemblies throw an exception on reading the ReflectionOnly property (ex. of dynamic assembly can be found in Blazor apps)
return;

lock (Global.AssemblyReflectionLock)
Expand Down

0 comments on commit 670ee62

Please sign in to comment.