3 ms·
C# permits it but it's not completely intuitive [1]. As to why, it has some benefits, like letting all types (value or otherwise) implement IComparable, IEquata
by taspeotis 9y ago
C# permits it but it's not completely intuitive [1]. As to why, it has some benefits, like letting all types (value or otherwise) implement IComparable, IEquatable, IFormattable etc.
[1] https://blogs.msdn.microsoft.com/abhinaba/2005/10/05/c-structs-and-interface/ https://blogs.msdn.microsoft.com/abhinaba/2005/10/05/c-struc...