+ 2

How to recognize by only looking the name whether it is a class or an interface?

30th Mar 2017, 12:24 PM
Akash A
Akash A - avatar
2 Respostas
+ 12
It was a common convention to use the uppercase letter I as a prefix to name interfaces. I think this convention is kind of deprecated, because you just have to hover the mouse over a name to see its type when using an ide.
30th Mar 2017, 3:54 PM
Tashi N
Tashi N - avatar
0
In C#, Class names are written in "Capital Letters". Interfaces names are written with beginning of the character is capital "I" so we can know it is interface. For e.g. public class Class{} public interface IInterface{}
30th Mar 2017, 9:28 PM
Yhal Htet Aung
Yhal Htet Aung - avatar