In c#, the keywords Object
and object
can be used interchangeable.
Other fundamental types work the same way: String
/string
, Double
/ double
, ...
Is there any convention for using one or the other?
Which of these is recommended:
object x = new object();
Object x = new Object();
object x = new Object();
What about:
object.ReferenceEquals(a,b);
Object.ReferenceEquals(a,b);
I ask mainly because lower-case new object()
just looks wrong to me, yet that is the suggestion I get from Visual studio when I auto-complete Object x = new ...