Table of Contents

Class MokkitCaptureAttribute

Namespace
Mokkit
Assembly
Mokkit.dll

Marks a partial arrange-extension method whose body Mokkit's source generator supplies. The method must be declared in a partial class and have an out Capture<T> or out Trapture<T> parameter. When the arrange runs, the generator sets that capture to new T(...), forwarding the method's remaining parameters positionally to T's constructor. Methods without this marker keep their hand-written bodies, so generated and manual arranges coexist.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class MokkitCaptureAttribute : Attribute

Inheritance

Inherited Members