internal void ResolveMethod()
{
// if we've still got the builder object, we need to replace it with the real thing before we can call it
if(method is MethodBuilder)
{
method = method.Module.ResolveMethod(((MethodBuilder)method).GetToken().Token);
}
if(method is ConstructorBuilder)
{
method = method.Module.ResolveMethod(((ConstructorBuilder)method).GetToken().Token);
}
}