Skip to content

Commit

Permalink
Refactor AddDependencyKeys to be a generic method
Browse files Browse the repository at this point in the history
Updated AddDependencyKeys method signature from
`private static void AddDependencyKeys(object value, HashSet<string> dependencyKeys)`
to
`private static void AddDependencyKeys<T>(T value, HashSet<string> dependencyKeys)`.

This change enhances flexibility and type safety by allowing the method to accept any type specified at the time of the method call.
  • Loading branch information
brandonhenricks committed Jan 10, 2025
1 parent d5df139 commit f53db98
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public sealed class CacheDependencyBuilder : ICacheDependencyBuilder
}


private static void AddDependencyKeys(object value, HashSet<string> dependencyKeys)
private static void AddDependencyKeys<T>(T value, HashSet<string> dependencyKeys)
{

switch (value)
{
case null:
Expand Down

0 comments on commit f53db98

Please sign in to comment.