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: 2023.0.3.0 (2023.0.3.0)
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. .