MethodInvocationExpression CreateMethodInvocation(ClassDefinition cd, string name)
{
IMethod method = (IMethod)((Method)cd.Members[name]).Entity;
return CodeBuilder.CreateMethodInvocation(
CodeBuilder.CreateSelfReference(method.DeclaringType),
method);
}