Page 2 - CSharp/C#
P. 2

Table of Contents


        About                                                                                                  1

        Chapter 1: Getting started with C# Language                                                            2

          Remarks                                                                                              2

          Versions                                                                                             2

          Examples                                                                                             2


            Creating a new console application (Visual Studio)                                                 2
        Explanation                                                                                            3


        Using the command line                                                                                 3

          Creating a new project in Visual Studio (console application) and Running it in Debug mode           5

          Creating a new program using Mono                                                                    9

          Creating a new program using .NET Core                                                              10

          Command Prompt output                                                                               11

            Creating a new query using LinqPad                                                                11

            Creating a new project using Xamarin Studio                                                       15

        Chapter 2: .NET Compiler Platform (Roslyn)                                                           22

          Examples                                                                                            22

            Create workspace from MSBuild project                                                             22

            Syntax tree                                                                                       22

            Semantic model                                                                                    22

        Chapter 3: Access Modifiers                                                                          24

          Remarks                                                                                             24

          Examples                                                                                            24

            public                                                                                            24

            private                                                                                           24

            internal                                                                                          25

            protected                                                                                         25

            protected internal                                                                                26

            Access Modifiers Diagrams                                                                         28
        Chapter 4: Access network shared folder with username and password                                   30


          Introduction                                                                                        30
   1   2   3   4   5   6   7