public static MethodBody ReadMethodBody (MethodDefinition method, MetadataReader metadata) { var reader = new CodeReader (method, metadata); reader.body = new MethodBody (method); reader.ReadMethodBody (); return reader.body; }
public static MethodBody ReadMethodBody(MethodDefinition method, MetadataReader metadata) { var reader = new CodeReader(method, metadata); reader.body = new MethodBody(method); reader.ReadMethodBody(); return(reader.body); }
public static void FromBytes(MethodDefinition method, byte[] bytes) { CodeReader cr = new CodeReader(method, bytes); method.Body = cr.ReadMethodBody(method); }