What colon ( : ) means defining a class in c#?

In this case it means that the HomeController inherits the Controller class.

You can read more details about inheritance here, but simply put – inheritance means that everything a Controller is, a HomeController is also. A HomeController is a more finely grained Controller class.

It can also be used for implementation of interfaces http://msdn.microsoft.com/en-us/library/ms173156.aspx

Leave a Comment

techhipbettruvabetnorabahisbahis forumu