SlideShare a Scribd company logo
Introduction C#


            tnngo2@gmail.com
Pitfalls of C/C++

       Difficult for beginners to learn
       Cannot test code until it is compiled
       Difficult to debug without expensive debugging tools
       Takes longer time to develop
       Database connectivity is complicated
       Problems in modification of data
       Difficulty in implementation
       Do not contain any framework
Need for a New Language

      Simple, powerful tool for building interoperable, scalable, robust
      applications.

      Complete object-oriented architecture powerful component-oriented
      development

      Allow access to many features previously available only in C++

      Familiarity to programmers coming from C or C++

      Write application target both desktop and mobile.
Purpose of C#

      .NET Framework is a massive expandable library.

      C# is a high level language which let programmers focus on the main
      problem rather than dealing with things like portability, serialization
      …

      C# provides a simple, efficient, productive, object-oriented language.
Why .NET?

     Application architecture has changed.



     INTERNET world

     Compete JAVA
Why .NET?

     Bill toilet
.Net Framework

     Language-neutral component library
              Code Modules
                       Organized
                       Specialized
     Execution environment
                       CTS
                       CLR

     Provide consistent object-oriented programming environment

     Minimize software deployment and versioning conflicts by providing a code-
     execution environment

     Promote safe execution of code by providing a code-execution environment

     Provides a consistent developer experience across varying types of
     application such as Window-based app and Web-based app.
.Net Framework Components

     Common Language Runtime (CLR)
            Memory management
            Code execution
            Error handling
            Code safety verification
            Garbage collection

     .NET Framework Class Library (FCL)
              comprehensive object-oriented collection of reusable type.
Architecture of .NET Framework
Other components of .NET Framework
Other components of .NET Framework




     Common Language Specification (CLS)
            set of rules that any .NET language should follow to create
            application that are interoperable with other languages

     Common Type System (CTS)
            describes how data types are declared
Microsoft Intermediate Language (MSIL)

      The code written in a .NET compatible language is compiled, the
      output code is in the form of MSIL.

      MSIL is composed of a specific set of instructions that indicate how
      the code should be executed
Common Language Runtime (CLR)

     When a code is executed for the first time, the MSIL code is
     converted to a code native to the operating system. This is done at
     runtime by the Just-In-Time (JIT) compiler in CLR.

     CLR is virtual machine component that is used to convert the MSIL
     code to the machine language code.
Basic features of C#

      Object-oriented

      Type-safety Checking
              | Uninitialized variables cannot be used.
      Garbage Collection

      Standardization by ECMA (European Computer Manufacturers)

      Generic Types and Methods
Applications of C#

      Gaming applications

      Large-scale enterprise applications

      Mobile applications for pocket PCs, PDAs and cell phones

      Simple standalone desktop applications such as Library Management

      Complex distributed applications
Advantages of C#

      Cross Language Support

      Common Internet Protocols
              XML, SOAP
      Simple Deployment
              A assembly is self-describing collection of code and
              resource
      XML Documentation
              Comments can be place in XML format and then used to
              document the code.
Memory Management

     In C, C++, the allocation and de-allocation of memory is done
     manually. It is time-consuming and difficult.

     The C# language provides the feature of allocating and releasing
     memory using automatic memory management.

     No need to write code to allocate or to release memory.

     Increase the code quality and enhances the performance and the
     productivity.
Garbage Collection

      Automatic memory management is done with the help of a garbage
      collector

      Garbage collection is the automatic reclaiming of memory from
      objects that are no longer in scope.

      Two steps:
       - Determine which obj
               will not be access in the future.
       - Reclaim the storage used by those.
Visual Studio 2010

      Visual Studio 2010 Ultimate

      Visual Studio 2010 Premium

      Visual Studio 2010 Professional

      Visual Studio 2010 Express Products

      Visual Studio Team Foundation Server 2010
Visual Studio 2010 Comparison

More Related Content

What's hot (17)

PPTX
.Net
Saurabh Kachhia
 
PPT
Introduction to .net
Karthika Parthasarathy
 
PPT
Csharp dot net
Ekam Baram
 
PPTX
Overview of .Net Framework 4.5
Bhushan Mulmule
 
PPTX
02 intro to programming in .net (part 2)
Felisha Hosein
 
PPT
Introduction .NET Framework
javadib
 
PPT
Introducation to C#
musrath mohammad
 
PPTX
Net Fundamentals
Ali Taki
 
PPTX
Presentation1
kpkcsc
 
PPT
.Net framework
Viv EK
 
PPTX
Java vs .net
Tech_MX
 
PPT
.Net overview
madydud
 
PDF
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
citizenmatt
 
PPT
Modified.net overview
Faisal Aziz
 
DOCX
New microsoft office word document
SIVAJISADHANA
 
PPT
Net framework
mayankingeniar
 
PPTX
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
yazad dumasia
 
Introduction to .net
Karthika Parthasarathy
 
Csharp dot net
Ekam Baram
 
Overview of .Net Framework 4.5
Bhushan Mulmule
 
02 intro to programming in .net (part 2)
Felisha Hosein
 
Introduction .NET Framework
javadib
 
Introducation to C#
musrath mohammad
 
Net Fundamentals
Ali Taki
 
Presentation1
kpkcsc
 
.Net framework
Viv EK
 
Java vs .net
Tech_MX
 
.Net overview
madydud
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
citizenmatt
 
Modified.net overview
Faisal Aziz
 
New microsoft office word document
SIVAJISADHANA
 
Net framework
mayankingeniar
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
yazad dumasia
 

Viewers also liked (20)

PDF
Anexo 12 pc 66707 alimentação (1)
Miguel Rosario
 
DOC
Compiler design file
Urvashi Tyagi
 
PPT
Аюрведические комплексы ТРАДО
Елена Шальнова
 
PPT
Респиблисс сироп
Елена Шальнова
 
PPTX
Bronte, hardy
ms_faris
 
PPT
09 searching[1]
Kamal Shrish
 
PDF
Kudavi happy valentines day
Tom Currier
 
PDF
Stepping Towards Self Sufficiency: An Indigenous Economic Development Plan fo...
Wayne Dunn
 
PPTX
How 2 write proposal 1- 6
Adham Yousef
 
PPTX
Aef4 16
Les Davy
 
PDF
How to Search Twitter
Vicky Ludas Orlofsky
 
PPTX
Friends United Ministries 2011
Kelly Kellum
 
PDF
The Changing Resource Development Paradigm: Maximizing Sustainable Local Be...
Wayne Dunn
 
PDF
affTA02 - BAB II
Muhammad Affandes
 
PDF
Pemrograman berbasis Objek
Robby Firmansyah
 
PDF
Software development company
Creative Technosoft Systems
 
PPT
Studio appartment in taj expressway 7428424386
Adore Global Pvt. Ltd
 
PDF
affTA10 - LampiranB
Muhammad Affandes
 
PPT
1 21
Les Davy
 
PDF
Looking for the best Marketing of 2013? Well, it's not in here...
Carmichael Billingsley
 
Anexo 12 pc 66707 alimentação (1)
Miguel Rosario
 
Compiler design file
Urvashi Tyagi
 
Аюрведические комплексы ТРАДО
Елена Шальнова
 
Респиблисс сироп
Елена Шальнова
 
Bronte, hardy
ms_faris
 
09 searching[1]
Kamal Shrish
 
Kudavi happy valentines day
Tom Currier
 
Stepping Towards Self Sufficiency: An Indigenous Economic Development Plan fo...
Wayne Dunn
 
How 2 write proposal 1- 6
Adham Yousef
 
Aef4 16
Les Davy
 
How to Search Twitter
Vicky Ludas Orlofsky
 
Friends United Ministries 2011
Kelly Kellum
 
The Changing Resource Development Paradigm: Maximizing Sustainable Local Be...
Wayne Dunn
 
affTA02 - BAB II
Muhammad Affandes
 
Pemrograman berbasis Objek
Robby Firmansyah
 
Software development company
Creative Technosoft Systems
 
Studio appartment in taj expressway 7428424386
Adore Global Pvt. Ltd
 
affTA10 - LampiranB
Muhammad Affandes
 
1 21
Les Davy
 
Looking for the best Marketing of 2013? Well, it's not in here...
Carmichael Billingsley
 
Ad

Similar to 1 get started with c# (20)

PPSX
Introduction to .net framework
Arun Prasad
 
PPT
Session gwjanhdienjsgek2nwgei2792jej 1.ppt
r86308281
 
PPT
ASP.NET Session 1
Sisir Ghosh
 
PPTX
Introduction to .NET by QuontraSolutions
QUONTRASOLUTIONS
 
PPTX
Introduction to .net FrameWork by QuontraSolutions
Quontra Solutions
 
PPT
Microsoft dot net framework
Instantenigma
 
PPTX
dot net technology
Imran Khan
 
PPT
Concepts of Asp.Net
vidyamittal
 
PPTX
Introduction to vb.net
suraj pandey
 
PPTX
Dotnet1
Sudhriti Gupta
 
PPTX
.Net Framwork Architecture And components
syedArr
 
PDF
Unit6
Abha Damani
 
PDF
Dot net
public
 
PPT
Net framework
jhsri
 
DOCX
1 what is microsoft .net framework
Islamia Univeristy Bahawalpur Bahawalnagar
 
PPT
Introdot Netc Sharp En
Gregory Renard
 
PPT
Introduction to C# Language and Applications.ppt
Riannel Tecson
 
PPT
Microsoft.Net
Vishwa Mohan
 
PPSX
Introductionto .netframework by Priyanka Pinglikar
PriyankaPinglikar
 
DOCX
1.0
SIVAJISADHANA
 
Introduction to .net framework
Arun Prasad
 
Session gwjanhdienjsgek2nwgei2792jej 1.ppt
r86308281
 
ASP.NET Session 1
Sisir Ghosh
 
Introduction to .NET by QuontraSolutions
QUONTRASOLUTIONS
 
Introduction to .net FrameWork by QuontraSolutions
Quontra Solutions
 
Microsoft dot net framework
Instantenigma
 
dot net technology
Imran Khan
 
Concepts of Asp.Net
vidyamittal
 
Introduction to vb.net
suraj pandey
 
.Net Framwork Architecture And components
syedArr
 
Dot net
public
 
Net framework
jhsri
 
1 what is microsoft .net framework
Islamia Univeristy Bahawalpur Bahawalnagar
 
Introdot Netc Sharp En
Gregory Renard
 
Introduction to C# Language and Applications.ppt
Riannel Tecson
 
Microsoft.Net
Vishwa Mohan
 
Introductionto .netframework by Priyanka Pinglikar
PriyankaPinglikar
 
Ad

More from Tuan Ngo (20)

PDF
Introduction of cg program for portal 20120424 en
Tuan Ngo
 
PDF
Net framework
Tuan Ngo
 
PDF
15 anonymous methods, partial types and nullable types
Tuan Ngo
 
PDF
14 generics and iterators
Tuan Ngo
 
PDF
13 collections
Tuan Ngo
 
PDF
11 exception handling
Tuan Ngo
 
PDF
12 events and delegates
Tuan Ngo
 
PDF
9 properties & indexers
Tuan Ngo
 
PDF
10 namespace
Tuan Ngo
 
PDF
8 abstract classes and interfaces
Tuan Ngo
 
PDF
7 inheritance and polymorphism
Tuan Ngo
 
PDF
5 arrays
Tuan Ngo
 
PDF
6 class and methods
Tuan Ngo
 
PDF
3 statements and operators
Tuan Ngo
 
PDF
4 c# programming constructs
Tuan Ngo
 
PDF
2 variables and data types
Tuan Ngo
 
PDF
Jdbc 7
Tuan Ngo
 
PDF
Jdbc 6
Tuan Ngo
 
PDF
Jdbc 3
Tuan Ngo
 
PDF
Jdbc 2
Tuan Ngo
 
Introduction of cg program for portal 20120424 en
Tuan Ngo
 
Net framework
Tuan Ngo
 
15 anonymous methods, partial types and nullable types
Tuan Ngo
 
14 generics and iterators
Tuan Ngo
 
13 collections
Tuan Ngo
 
11 exception handling
Tuan Ngo
 
12 events and delegates
Tuan Ngo
 
9 properties & indexers
Tuan Ngo
 
10 namespace
Tuan Ngo
 
8 abstract classes and interfaces
Tuan Ngo
 
7 inheritance and polymorphism
Tuan Ngo
 
5 arrays
Tuan Ngo
 
6 class and methods
Tuan Ngo
 
3 statements and operators
Tuan Ngo
 
4 c# programming constructs
Tuan Ngo
 
2 variables and data types
Tuan Ngo
 
Jdbc 7
Tuan Ngo
 
Jdbc 6
Tuan Ngo
 
Jdbc 3
Tuan Ngo
 
Jdbc 2
Tuan Ngo
 

Recently uploaded (20)

PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Designing Production-Ready AI Agents
Kunal Rai
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Biography of Daniel Podor.pdf
Daniel Podor
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Designing Production-Ready AI Agents
Kunal Rai
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 

1 get started with c#

  • 2. Pitfalls of C/C++ Difficult for beginners to learn Cannot test code until it is compiled Difficult to debug without expensive debugging tools Takes longer time to develop Database connectivity is complicated Problems in modification of data Difficulty in implementation Do not contain any framework
  • 3. Need for a New Language Simple, powerful tool for building interoperable, scalable, robust applications. Complete object-oriented architecture powerful component-oriented development Allow access to many features previously available only in C++ Familiarity to programmers coming from C or C++ Write application target both desktop and mobile.
  • 4. Purpose of C# .NET Framework is a massive expandable library. C# is a high level language which let programmers focus on the main problem rather than dealing with things like portability, serialization … C# provides a simple, efficient, productive, object-oriented language.
  • 5. Why .NET? Application architecture has changed. INTERNET world Compete JAVA
  • 6. Why .NET? Bill toilet
  • 7. .Net Framework Language-neutral component library Code Modules Organized Specialized Execution environment CTS CLR Provide consistent object-oriented programming environment Minimize software deployment and versioning conflicts by providing a code- execution environment Promote safe execution of code by providing a code-execution environment Provides a consistent developer experience across varying types of application such as Window-based app and Web-based app.
  • 8. .Net Framework Components Common Language Runtime (CLR) Memory management Code execution Error handling Code safety verification Garbage collection .NET Framework Class Library (FCL) comprehensive object-oriented collection of reusable type.
  • 10. Other components of .NET Framework
  • 11. Other components of .NET Framework Common Language Specification (CLS) set of rules that any .NET language should follow to create application that are interoperable with other languages Common Type System (CTS) describes how data types are declared
  • 12. Microsoft Intermediate Language (MSIL) The code written in a .NET compatible language is compiled, the output code is in the form of MSIL. MSIL is composed of a specific set of instructions that indicate how the code should be executed
  • 13. Common Language Runtime (CLR) When a code is executed for the first time, the MSIL code is converted to a code native to the operating system. This is done at runtime by the Just-In-Time (JIT) compiler in CLR. CLR is virtual machine component that is used to convert the MSIL code to the machine language code.
  • 14. Basic features of C# Object-oriented Type-safety Checking | Uninitialized variables cannot be used. Garbage Collection Standardization by ECMA (European Computer Manufacturers) Generic Types and Methods
  • 15. Applications of C# Gaming applications Large-scale enterprise applications Mobile applications for pocket PCs, PDAs and cell phones Simple standalone desktop applications such as Library Management Complex distributed applications
  • 16. Advantages of C# Cross Language Support Common Internet Protocols XML, SOAP Simple Deployment A assembly is self-describing collection of code and resource XML Documentation Comments can be place in XML format and then used to document the code.
  • 17. Memory Management In C, C++, the allocation and de-allocation of memory is done manually. It is time-consuming and difficult. The C# language provides the feature of allocating and releasing memory using automatic memory management. No need to write code to allocate or to release memory. Increase the code quality and enhances the performance and the productivity.
  • 18. Garbage Collection Automatic memory management is done with the help of a garbage collector Garbage collection is the automatic reclaiming of memory from objects that are no longer in scope. Two steps: - Determine which obj will not be access in the future. - Reclaim the storage used by those.
  • 19. Visual Studio 2010 Visual Studio 2010 Ultimate Visual Studio 2010 Premium Visual Studio 2010 Professional Visual Studio 2010 Express Products Visual Studio Team Foundation Server 2010
  • 20. Visual Studio 2010 Comparison