© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
4 replies
Egil Hansen

Invoke explicitly implemented static interface method

Some native types have explicitly implemented methods from e.g.
IParsable<TSelf>
IParsable<TSelf>
on them, how can I call these?
For example,
static char ISpanParsable<char>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => ...
static char ISpanParsable<char>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => ...
in
char
char
:
https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Char.cs,1948
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

❔ Static interface methods
C#CC# / help
3y ago
✅ Make method implemented in interface accessible from implementing type
C#CC# / help
3y ago
Calling static method of interface via it's type
C#CC# / help
16mo ago
Concern over inheritance with static interface methods
C#CC# / help
2y ago