© 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
•
27 replies
SirCarter
❔ User-defined implicit type conversion + type pattern match
Hello
, if I have some type
Either<T1, T2>
Either<T1, T2>
that has a left and right variant
, is there a way to get C
# to use an implicit converter so that I can write
:
foobar is T1 value
foobar is T1 value
?
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
Convert enclosing type - implicit enum conversion
C
C# / help
2y ago
✅ CSharpFunctionalExtensions.Result implicit conversion
C
C# / help
2y ago
Json Serializer implicit conversion
C
C# / help
3y ago
✅ Cannot implicit convert type
C
C# / help
3y ago