Why didn't MS follow this Java convention when designing C#?

StormRider

Diamond Member
Mar 12, 2000
8,324
2
0
In C#, I noticed that methods are capitalized. Like in Console.WriteLine(). In Java, methods are in lower case like Console.writeLine().

I like the Java way better because it makes it easy to distinguish class members that are functions and those that are objects. If a class contains an object as a member, then that object is capitalized. If class contains a function (method) then that function is lower cased.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Because in C++ it's usually the other way around in a class, lowercase for data members, uppercase for functions / methods.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
so you can implement properties that store their data in a member variable of the same name but with a different case? the Name property could have its value in a member variable called "name".
 

Alternex

Senior member
Oct 9, 1999
531
0
0
You've got bigger problems on your hands if you can't distinguish between a member and a method