SmartFormat icon indicating copy to clipboard operation
SmartFormat copied to clipboard

feature: ReflectionSource and DictionarySource

Open axunonb opened this issue 7 months ago • 1 comments

Closes #425

Changes to ReflectionSource

  • Modified ReflectionSource.TypeCache to be static, shared across all instances.
  • Implemented a control mechanism for the size of ReflectionSource.TypeCache. When the cache exceeds the maximum size limit, it now removes the oldest entry first, adhering to a First-In-First-Out (FIFO) strategy.
  • Enhanced documentation for CaseSensitivityType.CaseInsensitive: Clarified that in scenarios where multiple members share the same name but differ in case, the first encountered member will be selected.

Updates to DictionarySource

  • Correction: Ensured that generic dictionaries and dynamic objects respect the case sensitivity settings.
  • Added to the documentation: Specified that the cache for IReadOnlyDictionary is deliberately scoped to the instance level.

axunonb avatar Jun 29 '24 14:06 axunonb