public RVA WriteMethodBody(MethodDefinition method)
{
var rva = BeginMethod ();
if (IsUnresolved (method)) {
if (method.rva == 0)
return 0;
WriteUnresolvedMethodBody (method);
} else {
if (IsEmptyMethodBody (method.Body))
return 0;
WriteResolvedMethodBody (method);
}
Align (4);
EndMethod ();
return rva;
}