GupShup Study
 
  
C# - Console Applications Study Notes Download
Pankaj Yadav

C# - Console Applications Study Notes Download

Pankaj Yadav | 23-Feb-2016 |
C Sharp , Introduction , C# Program Elements , Object Oriented Concepts , Class and Object , Using .NET Base Classes ,

Hi friends, here Pankaj Yadav uploaded notes for C# with title C# - Console Applications Study Notes Download. You can download this lecture notes, ebook by clicking on the below file name or icon.

1. Introduction ............................................................................................................... 7
1.1 A New Platform? ....................................................................................................... 7
1.2 System Requirements................................................................................................ 7
1.3 Purpose of these Study Notes ..................................................................................... 7
1.4 Who can use these Study Notes? ................................................................................ 7
1.5 Updates to this document........................................................................................... 7
1.6 Recommended Sites on C# ........................................................................................ 7
1.7 My Workshops on C#................................................................................................. 8
1.8 Satish Talim?............................................................................................................ 8
1.9 Acknowledgements.................................................................................................... 8
2. C# Program Elements............................................................................................... 10
2.1 Overview of the .NET................................................................................................10
2.2 C# and Java............................................................................................................11
2.3 Our first C# Program – Hello, world............................................................................11
2.4 Naming Guidelines ...................................................................................................15
2.4.1 Namespaces ......................................................................................................15
2.4.2 Classes..............................................................................................................15
2.4.3 Methods ............................................................................................................15
2.4.4 Method Arguments .............................................................................................16
2.4.5 Interfaces..........................................................................................................16
2.4.6 Class members...................................................................................................16
2.5 Automatic memory management ...............................................................................16
2.6 Comments ..............................................................................................................16
2.7 Blocks.....................................................................................................................19
2.8 Separation ..............................................................................................................19
2.9 Whitespace .............................................................................................................19
2.10 Keywords (74) .......................................................................................................19
2.11 Constants – const / readonly ...................................................................................20
2.12 Variables ...............................................................................................................20
2.13 Naming constants and variables ...............................................................................21
2.14 Escape sequences ..................................................................................................21
2.15 Statements and Expressions ....................................................................................22
2.15.1 Empty statement ..............................................................................................22
2.16 Types....................................................................................................................22
2.17 Predefined types ....................................................................................................25
2.18 Operators..............................................................................................................30
2.18.1 checked and unchecked operators.......................................................................33
2.19 Operator overloading ..............................................................................................34
2.20 Program Control .....................................................................................................35
2.20.1 The if statement ...............................................................................................35
2.20.2 The switch statement ........................................................................................35
2.20.3 The while statement..........................................................................................37
2.20.4 The do statement .............................................................................................37
2.20.5 The for statement .............................................................................................37
2.20.6 The foreach statement .....................................................................................38
2.21 Console I/O ...........................................................................................................38
2.21.1 Console Input...................................................................................................38
2.21.2 Console Output.................................................................................................38
2.22 Array types............................................................................................................38
2.23 Calling methods – ref / out ......................................................................................43
2.23.1 Method Overloading ..........................................................................................44
2.23.2 Variable Method Parameters - params .................................................................45
2.24 Handling Exceptions ...............................................................................................45
2.25 Namespaces ..........................................................................................................48
2.26 Namespaces and Assemblies....................................................................................51
2.27 Summary of Key Concepts.......................................................................................52
3. Object Oriented Concepts ......................................................................................... 56
3.1 What is an Object? ...................................................................................................56
3.2 The Benefit of Encapsulation......................................................................................57
3.3 What are Messages?.................................................................................................57
3.4 What are Classes?....................................................................................................58
3.5 What is Inheritance?.................................................................................................59
4. Class and Object ....................................................................................................... 61
4.1 Class Declaration .....................................................................................................61
4.1.1 Class modifiers...................................................................................................62
4.1.1.1 Abstract classes ........................................................................................63
4.1.1.2 Sealed classes ...........................................................................................63
4.1.1.3 Inner Classes ...............................................................................................64
4.1.2 Class base specification .......................................................................................65
4.1.2.1 Base classes..............................................................................................65
4.1.2.2 Internal class ............................................................................................66
4.1.2.3 Interface implementations .............................................................................66
4.1.3 Class body.........................................................................................................66
4.1.3.1 Class members .............................................................................................67
4.1.3.2 Signature.....................................................................................................68
4.1.3.3 Constructors.................................................................................................68
4.1.3.4 Calling Base Class Constructors ......................................................................71
4.1.3.5 Static Constructors........................................................................................71
4.1.3.6 Destructors ..................................................................................................73
4.1.3.7 Inheritance - Single.......................................................................................74
4.1.3.8 Accessing Base Class Members .......................................................................74
4.1.3.9 The this Reference.......................................................................................75
4.1.3.10 The new modifier ....................................................................................75
4.1.3.11 Casting between Types ................................................................................76
4.1.3.12 Access modifiers .........................................................................................77
4.1.3.13 Restrictions on Using Accessibility Levels........................................................78
4.1.3.14 Accessibility Domain ....................................................................................78
4.1.3.15 Virtual methods.......................................................................................79
4.1.3.16 Override methods....................................................................................80
4.2 Interfaces ...............................................................................................................81
4.3 Structs....................................................................................................................83
4.4 Enums ....................................................................................................................83
4.5 Properties ...............................................................................................................84
4.6 Assignment .............................................................................................................85
4.7 Summary of Key Concepts ........................................................................................88
5. Using .NET Base Classes ........................................................................................... 90
5.1 The WinCV Tool .......................................................................................................90
5.2 StringBuilder class....................................................................................................90
5.3 File and Folder operations .........................................................................................91
5.3.1 Finding out information about a File......................................................................91
5.3.2 Listing Files in a Folder ........................................................................................91
5.3.3 Copying and Deleting Files...................................................................................92
5.3.4 Reading Text Files ..............................................................................................92
5.3.5 Writing Text Files................................................................................................93
5.3.6 Reading Binary Files............................................................................................93
5.3.7 Writing Binary Files.............................................................................................93
5.4 Networking..............................................................................................................94
5.4.1 HTTP.................................................................................................................94
5.4.2 Generic Request/Response Architecture.................................................................95

    Attachment Lists

    If download doesn't start in application like IDM then press Alt + click on download button to start download
  • C#.pdf (Size: 501.1KB) Dowland
Share With Friends :  

No any Comment yet!