what's is the difference between object vs Object, exception vs Exception

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
Ryan Liu said:
In C#, what's is the difference between object vs Object, exception vs
Exception?

object and System.Object are exactly the same (although you don't need
a "using System;" to use object).

There's no "exception" keyword in C# though.
 
Hi Ryan,

Probably what you're thinking about when talking about 'exception' is
the snippet available in Visual Studio. If you want to see what it
does start typing 'exception', and hit the 'TAB' key a few times to
complete and then also *insert* the snippet (i.e. it will insert some
default code for creating a class that inherits from "Exception").

To be clear, object/Object and exception/Exception are completely
different 'pairs'.

Regards,
Jeroen
 
Back
Top