Table of Contents

Property RecursionLimit

Namespace
Mapperion.Model
Assembly
Mapperion.dll

RecursionLimit

Gets how many levels deep a map that can reach itself may recurse before the operation fails with RecursionLimitException.

public int RecursionLimit { get; init; }

Property Value

int

Remarks

Only the maps that close a loop with nothing else to stop them are counted, so a configuration whose types cannot recurse pays nothing for this. The ceiling exists so a looping object graph raises an exception the caller can catch instead of a StackOverflowException, which it cannot. Raise it for a graph that really is deeper than this; zero or less removes the ceiling and brings the stack overflow back.