PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Managed­Resource­Introduction­Aspect Class / Managed­Resource­Introduction­Aspect Constructor / Managed­Resource­Introduction­Aspect Constructor (String, Func(Byte[]))

ManagedResourceIntroductionAspect Constructor (String, Func<Byte[]>)

Initializes a new ManagedResourceIntroductionAspect by passing a delegate for late evaluation of the resource content.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public ManagedResourceIntroductionAspect(
	string name,
	Func<byte[]> dataProvider
)

Parameters

name
Type: System.String
Name of the managed resource.
dataProvider
Type: System.Func<Byte[]>
A method that returns the data to be introduced. If the method returns null, the aspect will be ignored and no managed resource will be introduced. .
See Also