MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsICustom­Attribute­Introduction­Aspect
Open sandboxFocus

ICustomAttributeIntroductionAspect Interface

There is no specific aspect class to add a custom attribute in Metalama, but only the advice factory method IntroduceAttribute. Create an aspect class that calls this advice factory method from BuildAspect(IAspectBuilder<T>).

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public interface ICustomAttributeIntroductionAspect : IAspect