© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
2 replies
PAN1K
Json Serializer implicit conversion
I
'm trying to implement a
GetAsync<T>(CacheKey key)
GetAsync<T>(CacheKey key)
method for Redis
.
The issue is that when T is string the method can
't deserialize the value to string
, as the value is already a string
.
I can do an if check for string type but I wonder if there is another way
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ CSharpFunctionalExtensions.Result implicit conversion
C
C# / help
2y ago
Convert enclosing type - implicit enum conversion
C
C# / help
2y ago
Custom JSON serializer not working
C
C# / help
4y ago
❔ Adding logic into a JSON serializer
C
C# / help
4y ago