C#C
C#10mo ago
Egil Hansen

Invoke explicitly implemented static interface method

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