SlideShare ist ein Scribd-Unternehmen logo
1 von 23
The choice of real engineers…

Prepared & Presented by :-
    Prageeth Sandakalum, Microsoft Student Champ
Microsoft .NET Framework
     What is a “framework”
     An overview of the .NET Virtual Machine
     Inside the .NET framework
     .NET framework language support
     .NET framework class library
     C# Language Vs Java
     Completely new features in C#
     Before you begin
     Writing the first C# code
     Visual Studio Fun…
C# .NET Language
     Access modifiers, Conditions, Loops
     Object Oriented Programming in C#
          Classes and Objects
          Inheritance
          Polymorphism
          Encapsulation
     Value Types Vs Reference Type
     C# special language features
        Enumerations, Nullable Types, Partial Classes, Operator
         Overloading
     Windows Forms
.NET ??
We have many. Why another 1?




                               .NET Framework (3.5)
                           All in 1 solution for a programmer…
A framework a set of ideas, principles, agreements, or rules that
provides the basis or outline for something intended to be more
fully developed at a later stage
                                             - MSN Encarta -

A software framework is a re-usable design for a software
system (or subsystem).
A software framework may include support programs, code
libraries, a scripting language, or other software to help develop
and glue together the different components of a software
project.
                                              - Wikipedia -
 Language neutral.
 many languages with a common class library
 Provides a runtime and a set of common libraries for writing
  and executing written programs in any compliant language.
 The runtime is called the .NET CLR (Common Language
  Runtime) – similar to the Java Runtime.
 CLR Provides the functionality to
    Activate objects, perform security Checks, Memory Allocation,
     Execution, etc…
VB      C++      C#        J#        …                         Secure, integrated class
                                                                libraries
      Common Language Specification
                                                                   Unifies programming
                                                                    models across languages




                                           Visual Studio .NET
       ASP .NET
                                 Windows
Web Forms Web Services                                              Enables cross-language
                                  Forms                         
 Mobile Internet Toolkit
                                                                    integration
            ADO .NET and XML                                       Factored for extensibility
            Base Class Library                                     Designed for tools
                                                                   Create frameworks on top
        Common Language Runtime                                     of the high level .NET
                                                                    framework
            Operating System


ASP.NET                                     Common Language Runtime
  High-productivity environment             Executes code, maintains
   for building and running                   security, handles component
   Web services                               “plumbing” and dependencies
 Common Language Specification.
   First class support for all CLS compliant languages.
 Microsoft provided languages.
   Visual Basic®, C#, C++, J#, JScript®.
 3rd-party provided languages
    APL, Cobol, Component Pascal, Eiffel, Fortran, Haskell, Mercury,
     Oberon, Oz, Perl, Python, RPG, Scheme, Smalltalk, Standard ML,
     Ruby, Delphi and the list is growing!
Spans All Programming Languages.
   Enables cross-language inheritance and debugging.
   Integrates well with tools.
Is Object-Oriented and Consistent.
    Enhances developer productivity by reducing the number of APIs
     to learn.
Has a Built-In Common Type System.
Is Extensible.
   Makes it easy to add or modify framework features.
Is Secure.
   Allows creation of secure applications.
As in Java
   Object-Orientation with single inheritance
   Interfaces
   Exceptions
   Threads
   Packaging
   Garbage Collection
   Reflection
   Dynamic loading of code
   …
   References and output parameters
   Objects on the stack (structs)
   Attributes
   Indexers
   Partial Types
   Loosely Typed Variables
   Enumerations
   Operator Overloading
   Nullable types
   Lambda Expressions
 …
   Dynamic Link Libraries
   Adding references
   Adding Projects
   Structuring the Code
   Using the .DLLs
   Namespaces
   Adding files to the projects
   Aliases
   Adding arguments
   Console.Read()
Let’s start Coding
and take a tour in
Visual Studio..!
C#.NET Language Features
The Finest roadmap in application development
 Access Modifiers
    Private, Public, protected
    Internal, internal protected
 Variable declaration
    Static, Constant, Var
 IF – ELSE – ELSE IF
 Switch-Case
 Arrays
 Loops
    For, While, Do-While, Foreach
Write a small program to take 3 numbers using command line
arguments and insert into the array. Then add these
numbers. If the total is larger than 100 print a message…
 Declaring classes
 Creating Object
 Inheritance
    Sealed Classes, Interfaces
 Polymorphism
    Overriding, Overloading
 Encapsulation
    Properties
 Special Keywords
    params, ref
Write a program to create an Animal super class and create a
Cat, Dog classes which extends it… Use properties to
initialize the number of legs each animal has.




Write a program to test the ref variable and the params
keyword
Structs
  Value type representation of classes
  Ideal for Light weight objects or heavily used objects
     Polygon, Rectangle classes
     Fraction class in a mathematical project


Enumerations
Nullable Types
Partial Classes
Operator Overloading
Create a struct for complex numbers.. Use operator
overloading to implement the multiplication
Let’s create a simple Windows
Based Client Application in
C#.NET using Visual Studio..!
Thank You !!!

Contact me for further clarification
     Prageeth Sandakalum
     Prageeth.itfac@live.com

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Programming in c#
Programming in c#Programming in c#
Programming in c#
 
Manas
ManasManas
Manas
 
Namespaces in C#
Namespaces in C#Namespaces in C#
Namespaces in C#
 
Asp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentationAsp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentation
 
Overview of microsoft dot net platforms
Overview of microsoft dot net platformsOverview of microsoft dot net platforms
Overview of microsoft dot net platforms
 
ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
 
.Net language support
.Net language support.Net language support
.Net language support
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Architecture of net framework
Architecture of net frameworkArchitecture of net framework
Architecture of net framework
 
.Net introduction
.Net introduction.Net introduction
.Net introduction
 
C# - Part 1
C# - Part 1C# - Part 1
C# - Part 1
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
 
.Net overview by cetpa
.Net overview by cetpa.Net overview by cetpa
.Net overview by cetpa
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - English
 
Net overview
Net overviewNet overview
Net overview
 
What is dotnet (.NET) ?
What is dotnet (.NET) ?What is dotnet (.NET) ?
What is dotnet (.NET) ?
 
Architecture in .net
Architecture in .netArchitecture in .net
Architecture in .net
 
Net overview
Net overviewNet overview
Net overview
 
Net Framework overview
Net Framework overviewNet Framework overview
Net Framework overview
 

Andere mochten auch

Academy PRO: ASP .NET Core
Academy PRO: ASP .NET Core Academy PRO: ASP .NET Core
Academy PRO: ASP .NET Core Binary Studio
 
Explorando o novo .NET multiplataforma: ASP.NET Core, .NET Core e EF Core
Explorando o novo .NET multiplataforma:ASP.NET Core, .NET Core e EF CoreExplorando o novo .NET multiplataforma:ASP.NET Core, .NET Core e EF Core
Explorando o novo .NET multiplataforma: ASP.NET Core, .NET Core e EF CoreRogério Moraes de Carvalho
 
ASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvem
ASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvemASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvem
ASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvemRogério Moraes de Carvalho
 
Introduction to .NET Core
Introduction to .NET CoreIntroduction to .NET Core
Introduction to .NET CoreMarco Parenzan
 
Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Vangos Pterneas
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET PlatformAlex Thissen
 

Andere mochten auch (8)

Academy PRO: ASP .NET Core
Academy PRO: ASP .NET Core Academy PRO: ASP .NET Core
Academy PRO: ASP .NET Core
 
ASP .NET Core MVC
ASP .NET Core MVCASP .NET Core MVC
ASP .NET Core MVC
 
Explorando o novo .NET multiplataforma: ASP.NET Core, .NET Core e EF Core
Explorando o novo .NET multiplataforma:ASP.NET Core, .NET Core e EF CoreExplorando o novo .NET multiplataforma:ASP.NET Core, .NET Core e EF Core
Explorando o novo .NET multiplataforma: ASP.NET Core, .NET Core e EF Core
 
ASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvem
ASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvemASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvem
ASP.NET Core, .NET Core e EF Core: multiplataforma e otimizados para a nuvem
 
Introduction to .NET Core
Introduction to .NET CoreIntroduction to .NET Core
Introduction to .NET Core
 
Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET Platform
 

Ähnlich wie Introduction to .NET with C# @ university of wayamba

Ähnlich wie Introduction to .NET with C# @ university of wayamba (20)

Net framework
Net frameworkNet framework
Net framework
 
Visual studio
Visual studioVisual studio
Visual studio
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
.net framework
.net framework.net framework
.net framework
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.Net
 
Synapse india sharing info on dotnet framework part1
Synapse india sharing info on dotnet framework part1Synapse india sharing info on dotnet framework part1
Synapse india sharing info on dotnet framework part1
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
.Net Overview -- Training (Lesson 1)
.Net Overview -- Training (Lesson 1).Net Overview -- Training (Lesson 1)
.Net Overview -- Training (Lesson 1)
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net Overview
.Net Overview.Net Overview
.Net Overview
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Dot net
Dot netDot net
Dot net
 
Chapter1
Chapter1Chapter1
Chapter1
 
Cetpa infotech is the best advanced .net training institute in Delhi NCR
Cetpa infotech is the best advanced .net training institute in Delhi NCRCetpa infotech is the best advanced .net training institute in Delhi NCR
Cetpa infotech is the best advanced .net training institute in Delhi NCR
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworks
 
.Net framework
.Net framework.Net framework
.Net framework
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 

Introduction to .NET with C# @ university of wayamba

  • 1. The choice of real engineers… Prepared & Presented by :- Prageeth Sandakalum, Microsoft Student Champ
  • 2. Microsoft .NET Framework  What is a “framework”  An overview of the .NET Virtual Machine  Inside the .NET framework  .NET framework language support  .NET framework class library  C# Language Vs Java  Completely new features in C#  Before you begin  Writing the first C# code  Visual Studio Fun…
  • 3. C# .NET Language  Access modifiers, Conditions, Loops  Object Oriented Programming in C#  Classes and Objects  Inheritance  Polymorphism  Encapsulation  Value Types Vs Reference Type  C# special language features  Enumerations, Nullable Types, Partial Classes, Operator Overloading  Windows Forms
  • 4. .NET ?? We have many. Why another 1? .NET Framework (3.5) All in 1 solution for a programmer…
  • 5. A framework a set of ideas, principles, agreements, or rules that provides the basis or outline for something intended to be more fully developed at a later stage - MSN Encarta - A software framework is a re-usable design for a software system (or subsystem). A software framework may include support programs, code libraries, a scripting language, or other software to help develop and glue together the different components of a software project. - Wikipedia -
  • 6.  Language neutral.  many languages with a common class library  Provides a runtime and a set of common libraries for writing and executing written programs in any compliant language.  The runtime is called the .NET CLR (Common Language Runtime) – similar to the Java Runtime.  CLR Provides the functionality to  Activate objects, perform security Checks, Memory Allocation, Execution, etc…
  • 7. VB C++ C# J# … Secure, integrated class libraries Common Language Specification  Unifies programming models across languages Visual Studio .NET ASP .NET Windows Web Forms Web Services Enables cross-language Forms  Mobile Internet Toolkit integration ADO .NET and XML  Factored for extensibility Base Class Library  Designed for tools  Create frameworks on top Common Language Runtime of the high level .NET framework Operating System ASP.NET Common Language Runtime  High-productivity environment  Executes code, maintains for building and running security, handles component Web services “plumbing” and dependencies
  • 8.  Common Language Specification. First class support for all CLS compliant languages.  Microsoft provided languages. Visual Basic®, C#, C++, J#, JScript®.  3rd-party provided languages  APL, Cobol, Component Pascal, Eiffel, Fortran, Haskell, Mercury, Oberon, Oz, Perl, Python, RPG, Scheme, Smalltalk, Standard ML, Ruby, Delphi and the list is growing!
  • 9. Spans All Programming Languages. Enables cross-language inheritance and debugging. Integrates well with tools. Is Object-Oriented and Consistent.  Enhances developer productivity by reducing the number of APIs to learn. Has a Built-In Common Type System. Is Extensible. Makes it easy to add or modify framework features. Is Secure. Allows creation of secure applications.
  • 10. As in Java Object-Orientation with single inheritance Interfaces Exceptions Threads Packaging Garbage Collection Reflection Dynamic loading of code …
  • 11. References and output parameters  Objects on the stack (structs)  Attributes  Indexers  Partial Types  Loosely Typed Variables  Enumerations  Operator Overloading  Nullable types  Lambda Expressions  …
  • 12. Dynamic Link Libraries  Adding references  Adding Projects  Structuring the Code  Using the .DLLs  Namespaces  Adding files to the projects  Aliases  Adding arguments  Console.Read()
  • 13. Let’s start Coding and take a tour in Visual Studio..!
  • 14. C#.NET Language Features The Finest roadmap in application development
  • 15.  Access Modifiers  Private, Public, protected  Internal, internal protected  Variable declaration  Static, Constant, Var  IF – ELSE – ELSE IF  Switch-Case  Arrays  Loops  For, While, Do-While, Foreach
  • 16. Write a small program to take 3 numbers using command line arguments and insert into the array. Then add these numbers. If the total is larger than 100 print a message…
  • 17.  Declaring classes  Creating Object  Inheritance  Sealed Classes, Interfaces  Polymorphism  Overriding, Overloading  Encapsulation  Properties  Special Keywords  params, ref
  • 18. Write a program to create an Animal super class and create a Cat, Dog classes which extends it… Use properties to initialize the number of legs each animal has. Write a program to test the ref variable and the params keyword
  • 19.
  • 20. Structs  Value type representation of classes  Ideal for Light weight objects or heavily used objects  Polygon, Rectangle classes  Fraction class in a mathematical project Enumerations Nullable Types Partial Classes Operator Overloading
  • 21. Create a struct for complex numbers.. Use operator overloading to implement the multiplication
  • 22. Let’s create a simple Windows Based Client Application in C#.NET using Visual Studio..!
  • 23. Thank You !!! Contact me for further clarification Prageeth Sandakalum Prageeth.itfac@live.com