Mono.Cecil.Cil.CodeReader.ReadMethodBody C# (CSharp) Method

ReadMethodBody() public method

public ReadMethodBody ( MethodDefinition method ) : MethodBody
method MethodDefinition
return MethodBody
        public MethodBody ReadMethodBody(MethodDefinition method)
        {
            var position = MoveTo (method);
            this.body = new MethodBody (method);

            ReadMethodBody ();

            MoveBackTo (position);
            return this.body;
        }

Same methods

CodeReader::ReadMethodBody ( ) : void

Usage Example

		public static MethodBody ReadMethodBody (MethodDefinition method, MetadataReader metadata)
		{
			var reader = new CodeReader (method, metadata);
			reader.body = new MethodBody (method);

			reader.ReadMethodBody ();

			return reader.body;
		}
All Usage Examples Of Mono.Cecil.Cil.CodeReader::ReadMethodBody