# External State Reach-In

> Reading or writing an object's internal state from outside to snapshot it, breaking its encapsulation.

Record: `lexicon:external-state-reach-in`
Kind: anti-pattern
Layer: [Design Patterns Core](https://banes-lab.com/records/layer/design-patterns-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-external-state-reach-in

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Exposed Internal Representation](https://banes-lab.com/records/lexicon/exposed-internal-representation.md) and before [Flat State Explosion](https://banes-lab.com/records/lexicon/flat-state-explosion.md).

## Category

- [Behavioral Patterns](https://banes-lab.com/records/lexicon-category/behavioral-patterns.md)

## Negated by

- [Memento Pattern](https://banes-lab.com/records/architecture/memento-pattern.md)

## Linked from

- [Behavioral Patterns](https://banes-lab.com/ontology/principles/architecture-category-behavioral-patterns.md)
