“object” here should refer to the “Object” class. As with all class identifiers in the .NET framework, it is supposed to be capitalised although not case sensitive. But I realise in c# it is not capitalised by default. Why is that? Is it because C# is modelled after Java which had some sort of non capitalised object class? I can’t remember Java syntax already.
Share
objectis just a C# keyword that refers to theSystem.Objectclass. In just the same way,stringis a keyword that refers to theSystem.Stringclass. You can use the capitalized and non-capitalized versions interchangably, but it helps to highlight that these two classes are treated “specially” by the C# language (in thatobjectis the default class that all classes inherit from, andstringis the type of “xyz” constant expressions).Also, C# is case-sensitive.
EventArgsis a different class toeventargs(say).