SlideShare ist ein Scribd-Unternehmen logo
1 von 35
C# Programming and  .NET Concepts By S. Nandagopalan www.bitignou.com [email_address]
Books for Reference ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Chapter - 1 ,[object Object],S. Nandagopalan, B I T
Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Understanding the  previous state of affairs ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Previous state of affairs… ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
.NET Solution ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
.NET Framework S. Nandagopalan, B I T Operating System Common Language Runtime Base Class Library ADO.NET and XML Common Language Specification Visual Studio.NET ASP.NET Web Forms  Web Services Windows Forms VB C++ C# JScript J#
Building Blocks of .NET ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
CLR  (Common Language Runtime) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Base Class Libraries ,[object Object],[object Object],S. Nandagopalan, B I T Common Language Runtime CTS CLS Base Class Libraries Threading Data Access File IO XML/SOAP GUI
C# ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Understanding Assemblies ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Assembly ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T C# source code C# .NET Compiler Assembly Metadata IL + =
Assembly… ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Example of CIL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
CIL of Add() Method ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Manifest ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T External Assembly
CIL to Execution ,[object Object],S. Nandagopalan, B I T CIL JIT Desktop Pocket PC Server
Common Type System (CTS) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
CTS Class Type ,[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
CTS Class Characteristics ,[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Intrinsic CTS Data Types S. Nandagopalan, B I T .NET Base Type C# Type System.Byte Byte System.SByte sbyte System.Int16 short System.Int32 int System.Int64 long System.UInt64 ulong System.Single float System.Double double System.Object object System.String string System.Boolean bool
Common Language Specification  (CLS) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
CLS Compliance S. Nandagopalan, B I T C# Type CLS Compliance byte Yes sbyte No short Yes int Yes long Yes ulong No float Yes double Yes object Yes string Yes char Yes bool Yes
Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
CLR .NET  Source  Code Base Class Libraries (mscorlib.dll) .NET Execution Engine Class Loader Jitter Platform  Specific code Execute .NET Compiler DLL or EXE (CIL) mscoree.dll mscoree.dll MicroSoft Common  Object Runtime Execution Engine
.NET Namespace ,[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Example in C# ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T System Namespace Console class in System Namespace
Example in VB .NET ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Example in Managed C++ ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S. Nandagopalan, B I T
Sample .NET namespaces S. Nandagopalan, B I T System primitive types, garbage collection, etc System.Collections Container objects: ArrayList, Queue, etc. System.Data System.Data.Common System.Data.OleDb System.Data.SqlClient For Database manipulations  ADO .NET System.IO file IO, buffering, etc. System.Drawing System.Drawing.2D GDI+ primitives, bitmaps, fonts, icons, etc. System.Threading Threads
Demo ,[object Object],[object Object],[object Object],S. Nandagopalan, B I T
[object Object],S. Nandagopalan, B I T

Weitere ähnliche Inhalte

Was ist angesagt?

Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layermekind
 
Handheld operting system
Handheld operting systemHandheld operting system
Handheld operting systemAj Maurya
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptxAcad
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architectureYisal Khan
 
Transport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networksTransport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networksRushin Shah
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programmingsonalikharade3
 
Io t system management with
Io t system management withIo t system management with
Io t system management withxyxz
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link controlVishal kakade
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory MultiprocessorsSalvatore La Bua
 
Design issues for the layers
Design issues for the layersDesign issues for the layers
Design issues for the layersjayaprakash
 
Congestion avoidance in TCP
Congestion avoidance in TCPCongestion avoidance in TCP
Congestion avoidance in TCPselvakumar_b1985
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycleutsav_shah
 

Was ist angesagt? (20)

Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
 
TinyOS
TinyOSTinyOS
TinyOS
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 
Handheld operting system
Handheld operting systemHandheld operting system
Handheld operting system
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptx
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Client Server Computing : unit 1
Client Server Computing : unit 1Client Server Computing : unit 1
Client Server Computing : unit 1
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 
Resource management
Resource managementResource management
Resource management
 
Transport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networksTransport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networks
 
Transport layer
Transport layerTransport layer
Transport layer
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
 
Io t system management with
Io t system management withIo t system management with
Io t system management with
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link control
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
 
Design issues for the layers
Design issues for the layersDesign issues for the layers
Design issues for the layers
 
Congestion avoidance in TCP
Congestion avoidance in TCPCongestion avoidance in TCP
Congestion avoidance in TCP
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 

Andere mochten auch

Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To DotnetSAMIR BHOGAYTA
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)
Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)
Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)Akhil Mittal
 
Lesson 2 Understanding Types And Usage In Dot Net
Lesson 2    Understanding Types And Usage In Dot NetLesson 2    Understanding Types And Usage In Dot Net
Lesson 2 Understanding Types And Usage In Dot Netnbaveja
 
Fluent interface in c#
Fluent interface in c#Fluent interface in c#
Fluent interface in c#Dror Helper
 
Lesson 1 Understanding Dot Net Framework
Lesson 1   Understanding Dot Net FrameworkLesson 1   Understanding Dot Net Framework
Lesson 1 Understanding Dot Net Frameworknbaveja
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)citizenmatt
 
Introduction to asp .net
Introduction to asp .netIntroduction to asp .net
Introduction to asp .netumesh patil
 
dot net technology
dot net technologydot net technology
dot net technologyImran Khan
 
Microsoft .NET Platform
Microsoft .NET PlatformMicrosoft .NET Platform
Microsoft .NET PlatformPeter R. Egli
 
C# Tutorial MSM_Murach chapter-15-slides
C# Tutorial MSM_Murach chapter-15-slidesC# Tutorial MSM_Murach chapter-15-slides
C# Tutorial MSM_Murach chapter-15-slidesSami Mut
 
Overview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyOverview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyPeter R. Egli
 
Dotnet framework
Dotnet frameworkDotnet framework
Dotnet frameworkNitu Pandey
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishSvetlin Nakov
 

Andere mochten auch (20)

Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To Dotnet
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
.Net Session Overview
.Net Session Overview.Net Session Overview
.Net Session Overview
 
Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)
Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)
Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)
 
Basic c#
Basic c#Basic c#
Basic c#
 
Lesson 2 Understanding Types And Usage In Dot Net
Lesson 2    Understanding Types And Usage In Dot NetLesson 2    Understanding Types And Usage In Dot Net
Lesson 2 Understanding Types And Usage In Dot Net
 
Fluent interface in c#
Fluent interface in c#Fluent interface in c#
Fluent interface in c#
 
.Net Assemblies
.Net Assemblies.Net Assemblies
.Net Assemblies
 
Lesson 1 Understanding Dot Net Framework
Lesson 1   Understanding Dot Net FrameworkLesson 1   Understanding Dot Net Framework
Lesson 1 Understanding Dot Net Framework
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
 
PHP Basic & Variables
PHP Basic & VariablesPHP Basic & Variables
PHP Basic & Variables
 
Lesson 3: Variables and Expressions
Lesson 3: Variables and ExpressionsLesson 3: Variables and Expressions
Lesson 3: Variables and Expressions
 
Introduction to asp .net
Introduction to asp .netIntroduction to asp .net
Introduction to asp .net
 
dot net technology
dot net technologydot net technology
dot net technology
 
Microsoft .NET Platform
Microsoft .NET PlatformMicrosoft .NET Platform
Microsoft .NET Platform
 
C# Tutorial MSM_Murach chapter-15-slides
C# Tutorial MSM_Murach chapter-15-slidesC# Tutorial MSM_Murach chapter-15-slides
C# Tutorial MSM_Murach chapter-15-slides
 
Overview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyOverview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technology
 
Dotnet framework
Dotnet frameworkDotnet framework
Dotnet framework
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - English
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 

Ähnlich wie C# and .NET Concepts Explained

Ähnlich wie C# and .NET Concepts Explained (20)

C# Unit 1 notes
C# Unit 1 notesC# Unit 1 notes
C# Unit 1 notes
 
Introduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsIntroduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutions
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
COM Introduction
COM IntroductionCOM Introduction
COM Introduction
 
C#_01_CLROverview.ppt
C#_01_CLROverview.pptC#_01_CLROverview.ppt
C#_01_CLROverview.ppt
 
Presentation1
Presentation1Presentation1
Presentation1
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
Concepts of Asp.Net
Concepts of Asp.NetConcepts of Asp.Net
Concepts of Asp.Net
 
Srgoc dotnet_new
Srgoc dotnet_newSrgoc dotnet_new
Srgoc dotnet_new
 
Basics of c# by sabir
Basics of c# by sabirBasics of c# by sabir
Basics of c# by sabir
 
Intro.net
Intro.netIntro.net
Intro.net
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
 
C sharp
C sharpC sharp
C sharp
 
C#ppt
C#pptC#ppt
C#ppt
 

C# and .NET Concepts Explained

  • 1. C# Programming and .NET Concepts By S. Nandagopalan www.bitignou.com [email_address]
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. .NET Framework S. Nandagopalan, B I T Operating System Common Language Runtime Base Class Library ADO.NET and XML Common Language Specification Visual Studio.NET ASP.NET Web Forms Web Services Windows Forms VB C++ C# JScript J#
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. Intrinsic CTS Data Types S. Nandagopalan, B I T .NET Base Type C# Type System.Byte Byte System.SByte sbyte System.Int16 short System.Int32 int System.Int64 long System.UInt64 ulong System.Single float System.Double double System.Object object System.String string System.Boolean bool
  • 25.
  • 26. CLS Compliance S. Nandagopalan, B I T C# Type CLS Compliance byte Yes sbyte No short Yes int Yes long Yes ulong No float Yes double Yes object Yes string Yes char Yes bool Yes
  • 27.
  • 28. CLR .NET Source Code Base Class Libraries (mscorlib.dll) .NET Execution Engine Class Loader Jitter Platform Specific code Execute .NET Compiler DLL or EXE (CIL) mscoree.dll mscoree.dll MicroSoft Common Object Runtime Execution Engine
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. Sample .NET namespaces S. Nandagopalan, B I T System primitive types, garbage collection, etc System.Collections Container objects: ArrayList, Queue, etc. System.Data System.Data.Common System.Data.OleDb System.Data.SqlClient For Database manipulations ADO .NET System.IO file IO, buffering, etc. System.Drawing System.Drawing.2D GDI+ primitives, bitmaps, fonts, icons, etc. System.Threading Threads
  • 34.
  • 35.