Ferrous API Reference

All Types / Ferrous

class ConsumesSelfAttribute

public sealed class ConsumesSelfAttribute : Attribute

Marks an instance method as consuming this (the receiver) during a state transition. Used by Ferrous.Ownership and Ferrous.States to enforce linear typestate protocols.