Platform | .NET Framework | Mono(Framework Clone) | .NET Core |
---|---|---|---|
Windows | Yes. Some versions are OS components | Yes | Yes |
Mac | No | Yes | Yes |
Linux | No | Yes | Yes |
How did Java programmers not commit suicide using Date() from Java 1-7?
Monica Shiralkar wrote:C# does not have concept of checkered exception
How did Java programmers not commit suicide using Date() from Java 1-7?
Does that mean it supports pass by reference?Monica Shiralkar wrote:. . . . C# has out parameter which is not there in Java.
Isn't that the equivalent of import...?C# has Using statement which is not there in Java.
Campbell Ritchie wrote:Does that mean it supports pass by reference?
Monica Shiralkar wrote:C# has Using statement which is not there in Java.
Monica Shiralkar wrote:In C# private fields have convention to start name with underscore.
C# POCO field has naming convention to use Pascal Case.
Java mostly has similar naming convention across all except for the case of constants.
Wrong. It's convention to start method names with an uppercase letter in C#, whereas in Java you start them with a lowercase letter.
Stephan van Hulst wrote:
Monica Shiralkar wrote:In C# private fields have convention to start name with underscore.
Wrong. Where did you get this?
C# POCO field has naming convention to use Pascal Case.
Wrong. Fields start with a lowercase letter.
Java mostly has similar naming convention across all except for the case of constants.
Wrong. It's convention to start method names with an uppercase letter in C#, whereas in Java you start them with a lowercase letter.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Stephan van Hulst wrote:
Wrong. Fields start with a lowercase letter.
Tim Holloway wrote:I've never heard that it was good practice to start method names with upper case in C#.
I'm not sure I'd used Pascal as a reference. Pascal, if I recall, was case-insensitive with respect to naming.
Monica Shiralkar wrote:For instance the below poco has fields with Pascal Case
Stephan van Hulst wrote:
Monica Shiralkar wrote:In C# private fields have convention to start name with underscore.
Wrong. Where did you get this?
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Stephan van Hulst wrote:Just because you found some people doing it in a Google search doesn't make it convention.
The Microsoft Naming Guidelines are the closest thing you'll get to convention. The latest version doesn't specify any guidelines for private fields, but older versions explicitly discourage the use of underscores for instance fields.
This will take every ounce of my mental strength! All for a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|