© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
8 replies
CEO da CloudFlare

✅ Difference between explicit and implicit operators

Hello there.

What's the difference between defining an implicit and explicit operator?

I would like to know the difference between

public static implicit operator JsonValue(JsonArray jarray) => jarray.AsJsonValue();
public static implicit operator JsonValue(JsonArray jarray) => jarray.AsJsonValue();


And

public static explicit operator JsonValue(JsonArray jarray) => jarray.AsJsonValue();
public static explicit operator JsonValue(JsonArray jarray) => jarray.AsJsonValue();
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

Help with Implicit Explicit operators
C#CC# / help
4y ago
❔ Could someone please clarify the difference between Explicit Casting and Converting?
C#CC# / help
3y ago
Difference between string and string?
C#CC# / help
9mo ago