Weave the current advice into a given join point, i.e. inject code.

Namespace:  PostSharp.CodeWeaver
Assembly:  PostSharp.Core (in PostSharp.Core.dll)

Syntax

Visual Basic (Declaration)
Sub Weave ( _
	context As WeavingContext, _
	block As InstructionBlock _
)
C#
void Weave(
	WeavingContext context,
	InstructionBlock block
)
Visual C++
void Weave(
	WeavingContext^ context, 
	InstructionBlock^ block
)

Parameters

context
Type: PostSharp.CodeWeaver..::.WeavingContext
Context.
block
Type: PostSharp.CodeModel..::.InstructionBlock
Block where the code has to be injected.

See Also