- /// A ConditionalWeakTable is preferable to a Dictionary because a Dictionary will keep
- /// orphaned references to an forever, unless manually pruned.
- /// is used as a thin wrapper around bool because ConditionalWeakTable requires a reference type as both a key and a value.
- /// was chosen over because it is a common ancestor between (which is required for logic)
- /// and (which is required for serialization via ).
- /// This collection is thread-safe according to the
- /// documentation,
- /// but the BindableBools are not unless leased.
- ///
- private static readonly ConditionalWeakTable