PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Weaver Namespace / Method­Body­Restructure­Extensions Class / Method­Body­Restructure­Extensions Methods / Method­Body­Restructure­Extensions.​Create­Method­Body­Restructurer Method

MethodBodyRestructureExtensions.CreateMethodBodyRestructurer Method

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeWeaver.MethodBodyRestructureExtensions.CreateMethodBodyRestructurer(PostSharp.Sdk.CodeModel.MethodDefDeclaration,PostSharp.Sdk.CodeWeaver.MethodBodyRestructureOptions)"]

Namespace:  PostSharp.Sdk.CodeWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public static IMethodBodyRestructurer<IMethodBodyRestructureResult> CreateMethodBodyRestructurer(
	this MethodDefDeclaration method,
	MethodBodyRestructureOptions options
)

Parameters

method
Type: PostSharp.Sdk.CodeModel.MethodDefDeclaration

[Missing <param name="method"/> documentation for "M:PostSharp.Sdk.CodeWeaver.MethodBodyRestructureExtensions.CreateMethodBodyRestructurer(PostSharp.Sdk.CodeModel.MethodDefDeclaration,PostSharp.Sdk.CodeWeaver.MethodBodyRestructureOptions)"]

options
Type: PostSharp.Sdk.CodeWeaver.MethodBodyRestructureOptions

[Missing <param name="options"/> documentation for "M:PostSharp.Sdk.CodeWeaver.MethodBodyRestructureExtensions.CreateMethodBodyRestructurer(PostSharp.Sdk.CodeModel.MethodDefDeclaration,PostSharp.Sdk.CodeWeaver.MethodBodyRestructureOptions)"]

Return Value

Type: IMethodBodyRestructurer<IMethodBodyRestructureResult>

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeWeaver.MethodBodyRestructureExtensions.CreateMethodBodyRestructurer(PostSharp.Sdk.CodeModel.MethodDefDeclaration,PostSharp.Sdk.CodeWeaver.MethodBodyRestructureOptions)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MethodDefDeclaration. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also