Emulating Inline Functions Grasshopper C# Component/Plugin

Hi guys, just wondering if this can be done in a Grasshopper component, I tried to apply it to a void function with no luck (I didn’t get any errors, but also no output from the algorithm I was testing). Is the problem a Grasshopper architecture thing or am I just doing something wrong? @DavidRutten

I was doing something similar to:

// The full attribute usage is in mscorlib.dll,
// so should not need to include extra references
using System.Runtime.CompilerServices; 

...

[MethodImpl(MethodImplOptions.AggressiveInlining)]
void MyMethod(...)

Thanks!