however the other solution doesn't! accidentally i tried exactly the TypesAreEquivalent method in the beginning and just the way you suggested.
it turns out that:
if (!TypeHelper.TypesAreEquivalent(node.MethodDefinition.Type, node.MethodDefinition.Type.PlatformType.SystemVoid))
if (!TypeHelper.TypesAreEquivalent(node.MethodDefinition.Type, FHost.PlatformType.SystemVoid))
is there a difference in between the different PlatformType properties? i thought of ITypeRefernce.PlatformType as a shortcut to
Host.PlatformType for if the host isn't at hand.
I have only one host which is created like:
FHost = new PeReader.DefaultHost();