Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: ReflectionSource and DictionarySource (#426)
* Initial commit * Make ReflectionSource.TypeCache static * Control size of ReflectionSource.TypeCache, remove oldest item first * dynamics in DictionarySource also use case-sensitivity setting * Cache for IReadOnlyDictionary has instance scope * Remove cache insertion tracker for NET6_0_OR_GREATER Only before NETCore3.1, the dictionary is not ordered by insertion order. * Add explicit EqualityComparer for creating the TypeCache dictionary * Add comment about handling case-sensitivity * Add test for: When there are multiple members with the same name but different case, the first member is used * Add unit test for dynamics (ExpandoObject) case-insensitive * refactor: Less cognitive complexity * for DictionarySource * for ReflectionSource * chore: Fix indent
- Loading branch information