ReadMethodBody() public method

public ReadMethodBody ( MethodDefinition method ) : MethodBody
method MethodDefinition
return MethodBody
Example #1
0
		public static MethodBody ReadMethodBody (MethodDefinition method, MetadataReader metadata)
		{
			var reader = new CodeReader (method, metadata);
			reader.body = new MethodBody (method);

			reader.ReadMethodBody ();

			return reader.body;
		}
Example #2
0
        public static MethodBody ReadMethodBody(MethodDefinition method, MetadataReader metadata)
        {
            var reader = new CodeReader(method, metadata);

            reader.body = new MethodBody(method);

            reader.ReadMethodBody();

            return(reader.body);
        }
Example #3
0
        public static void FromBytes(MethodDefinition method, byte[] bytes)
        {
            CodeReader cr = new CodeReader(method, bytes);

            method.Body = cr.ReadMethodBody(method);
        }
 public static void FromBytes(MethodDefinition method, byte[] bytes)
 {
     CodeReader cr = new CodeReader(method, bytes);
     method.Body = cr.ReadMethodBody(method);
 }