© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
7 replies
thegu5

Error in Json Source Generation (ambiguous operator)

I'm trying to serialize a list of asmresolver's
TypeDefinitions
TypeDefinitions
to json. This includes its Utf8String type:
https://github.com/Washi1337/AsmResolver/blob/78ce89adebcc7e5dbeb1d4a1a35afcd513fb87a1/src/AsmResolver/Utf8String.cs

the generated c# is throwing an error here:
image.png
GitHub
AsmResolver/src/AsmResolver/Utf8String.cs at 78ce89adebcc7e5dbeb1d4...
A library for creating, reading and editing PE files and .NET modules. - Washi1337/AsmResolver
AsmResolver/src/AsmResolver/Utf8String.cs at 78ce89adebcc7e5dbeb1d4...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ ✅ Using generics that implement IEqualityOperators results in ambiguous call to the == operator
C#CC# / help
3y ago
System.Text.Json Source Generators
C#CC# / help
3y ago
❔ system.text.json source generator in net standard
C#CC# / help
4y ago
❔ Nonsense Ambiguous Reference
C#CC# / help
3y ago