Showing posts with label C# Development Eclectics. Show all posts
Showing posts with label C# Development Eclectics. Show all posts

Saturday, August 12, 2017

Visual Studio 20XX's C# Language Specification

Visual Studio 20XX's C# Language Specification



Visual Studio 2012's C# Language Specification Version is 5.0.
You can download this spec from the Microsoft Developer Network (MSDN). If you've installed Visual Studio 2012, you can also find the spec on your computer in the Program Files (x86)/Microsoft Visual Studio 11.0/VC#/Specifications/1033 folder. However, installations of Visual Studio Express 2012 don't include this file.

The original Visual Studio 2015's C# Language Specification Version is 5.0 (Version 6.0 of the specification had not been approved as a standard at the time of releasing Visual Studio 2015.) The current [Aug 10, 2017] Visual Studio 2015's C# Language Specification Version is 6.0.
Visual Studio 2017's C# Language Specification Version is 7.0.



Copyright ©2017, Software Developer, All rights reserved.
See Contents

Wednesday, August 2, 2017

C# References

C# References
CSharp References

[1] Essential C# 6.0, By: Mark Michaelis; Eric Lippert, Publisher: Addison-Wesley Professional, Pub. Date: September 24, 2015, Print ISBN-13: 978-0-13-414104-6.


 

Copyright ©2017, Software Developer, All rights reserved.
See Contents

Saturday, March 11, 2017

Protected Accessibility Level in Java vs C#

Protected Accessibility Level in Java vs C#

This topic should be discussed in two different sections; one for scenarios where no static members are involved and next for scenarios in which static members are involved. This post is for the scenarios where all members are non-static.

In Java protected is the next least restrictive after public. Protected class members can be accessed by:

   1. All classes/methods that are in the same package.
   2. Sub-classes of the class of the protected members.

In C#, as explained in Default Class Accessibility in C#, protected class members are accessible by sub-classes of the class of the protected members.

To convert Java code of a protected member into C# code, the protected member must be declared as protected internal.

Comparing protected members of Java and C# for scenarios involving static members will be discussed in a next post. 
 

Copyright ©2017, Software Developer, All rights reserved.
See Contents