System.Object

All types in C# inherit from a common base class, including our class. This common base class is system.object and it has a lot to offer. System.object offers many excellent examples of how every class can take advantage of polymophism and overriding method.

Literature: https://msdn.microsoft.com/en-us/library/system.object(v=vs.110).aspx

System.object provides 8 method, we will learn through it one-by-one.

  • The pink cube means it is a method.
  • S means it is a static. It cann't be called on an instance of the class, only the class itself.
  • Little yellow key means protected.
  • All the methods except GetType is virtual method, so they can be overriden in subclasses.

results matching ""

    No results matching ""