SlideShare a Scribd company logo
Introduction to .NET
       Frank McCown
         TechLunch
   Old Dominion University
       March 28, 2007
Before .NET
 Windows GUI development: Win32 API,
  MFC, Visual Basic
 Web development: ASP
 Java – “Write once, run anywhere.”
 Embrace and extend: Visual J++
.NET Framework
 First developed by Microsoft in 2000
 Current version (3.0) released in Nov 2006
 Targets primarily Windows OS, but Mono
  Project (headed by Novell) supports Linux,
  Unix, FreeBSD, Mac OS X, Solaris
 Primary languages: C#, Visual Basic
  .NET, C++/CLI, and J#
 Third-party languages: Ada, COBOL,
  LISP, Perl, Ruby, and many more
http://en.wikipedia.org/wiki/Image:Overview_of_the_Common_Language_Infrastructure.png
Comparison to Java

              compile                 execute
 Hello.java             Hello.class             JVM



Source code             Byte code



              compile                 execute
 Hello.vb               Hello.exe               CLR



Source code                CIL
Hello, VB.NET!
                                .method public static void Main() cil
                                managed
Module Hello                    {
  Sub Main()                      .entrypoint
    Console.WriteLine("Hello,     .custom instance void
      VB.NET!")                 [mscorlib]System.STAThreadAttribute::.ctor(
  End Sub                       ) = ( 01 00 00 00 )
End Module                        // Code size    14 (0xe)
                                  .maxstack 8
                                  IL_0000: nop
                                  IL_0001: ldstr    "Hello VB.NET!"
ildasm Hello.exe                  IL_0006: call     void
                                [mscorlib]System.Console::WriteLine(string)
                                  IL_000b: nop
                                  IL_000c: nop
                                  IL_000d: ret
                                } // end of method Hello::Main
Helpful Resources
 Comparison of Java vs. C#
http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java
http://www.harding.edu/fmccown/java1_5_csharp_comparison.html
 Comparison of VB.NET vs. C#
http://en.wikipedia.org/wiki/Comparison_of_C_sharp_and_Visual_Basic_.NET
http://www.harding.edu/fmccown/vbnet_csharp_comparison.html

More Related Content

Viewers also liked (20)

PPTX
Antenna
Naveen Sihag
 
PPT
Civright
Naveen Sihag
 
PPT
Attitudes
Naveen Sihag
 
PPTX
5 g
Naveen Sihag
 
PPTX
Usb
Naveen Sihag
 
PPTX
Gautam
Naveen Sihag
 
PPT
Efective computing
Naveen Sihag
 
PPT
Biodiesel
Naveen Sihag
 
PPT
Civilndisobedience
Naveen Sihag
 
PPS
Info on india
Naveen Sihag
 
PPT
Moblie technology
Naveen Sihag
 
PPT
Bluetooth 1
Naveen Sihag
 
PPTX
IBS-BIAKM-2013-keynote
Mahboob Hussain
 
PPTX
Crack mcts.com
Naveen Sihag
 
PPT
Iphone
Naveen Sihag
 
PPT
Apple i phone
Naveen Sihag
 
PPT
Automobile
Naveen Sihag
 
PPS
Astronauts (Eng. version)
Luis Ruiz
 
PPT
Artficial intelligence
Naveen Sihag
 
PPTX
Networking
Naveen Sihag
 
Antenna
Naveen Sihag
 
Civright
Naveen Sihag
 
Attitudes
Naveen Sihag
 
Gautam
Naveen Sihag
 
Efective computing
Naveen Sihag
 
Biodiesel
Naveen Sihag
 
Civilndisobedience
Naveen Sihag
 
Info on india
Naveen Sihag
 
Moblie technology
Naveen Sihag
 
Bluetooth 1
Naveen Sihag
 
IBS-BIAKM-2013-keynote
Mahboob Hussain
 
Crack mcts.com
Naveen Sihag
 
Iphone
Naveen Sihag
 
Apple i phone
Naveen Sihag
 
Automobile
Naveen Sihag
 
Astronauts (Eng. version)
Luis Ruiz
 
Artficial intelligence
Naveen Sihag
 
Networking
Naveen Sihag
 

Similar to Introduction to .net (20)

PDF
Intro to .NET and Core C#
Jussi Pohjolainen
 
PDF
Unit -II Introduction to visual programming.pdf
Ujwala Junghare
 
PPT
Introduction to dot net framework by vaishali sahare [katkar]
vaishalisahare123
 
PPT
Introduction to .net
loganathan_acpl
 
PPTX
.Net Framework & Languages Supported by .Net Frmaework
Pranil Dukare
 
PDF
Lecture-1&2.pdf Visual Programming C# .net framework
AbdullahNadeem78
 
PPT
Nakov - .NET Framework Overview - English
Svetlin Nakov
 
PDF
C# for beginners
application developer
 
PPT
Inside .net framework
Faisal Aziz
 
PPT
Intro dotnet
shuklagirish
 
PPT
Intro dotnet
shuklagirish
 
PPT
Intro dotnet
shuklagirish
 
PPT
Intro dotnet
shuklagirish
 
PPTX
.Net
Saurabh Kachhia
 
PPTX
CS4443 - Modern Programming Language - I Lecture (1)
Dilawar Khan
 
PPTX
Welcome to the .Net
Amr Shawky
 
PPTX
Introduction to .NET with C# @ university of wayamba
Prageeth Sandakalum
 
PPTX
01. introduction to-programming
Stoian Kirov
 
Intro to .NET and Core C#
Jussi Pohjolainen
 
Unit -II Introduction to visual programming.pdf
Ujwala Junghare
 
Introduction to dot net framework by vaishali sahare [katkar]
vaishalisahare123
 
Introduction to .net
loganathan_acpl
 
.Net Framework & Languages Supported by .Net Frmaework
Pranil Dukare
 
Lecture-1&2.pdf Visual Programming C# .net framework
AbdullahNadeem78
 
Nakov - .NET Framework Overview - English
Svetlin Nakov
 
C# for beginners
application developer
 
Inside .net framework
Faisal Aziz
 
Intro dotnet
shuklagirish
 
Intro dotnet
shuklagirish
 
Intro dotnet
shuklagirish
 
Intro dotnet
shuklagirish
 
CS4443 - Modern Programming Language - I Lecture (1)
Dilawar Khan
 
Welcome to the .Net
Amr Shawky
 
Introduction to .NET with C# @ university of wayamba
Prageeth Sandakalum
 
01. introduction to-programming
Stoian Kirov
 
Ad

More from Naveen Sihag (20)

PPTX
A P J Abdul Kalam
Naveen Sihag
 
PPT
Rise to power adolf hitler
Naveen Sihag
 
PPTX
Networking
Naveen Sihag
 
PPT
Efective computing
Naveen Sihag
 
PPT
Bluetooth 1
Naveen Sihag
 
PPT
Black holes
Naveen Sihag
 
PPT
Black holes
Naveen Sihag
 
PPTX
Visible light communication
Naveen Sihag
 
PPTX
Variable frequency drives
Naveen Sihag
 
PPT
Transducers
Naveen Sihag
 
PPTX
Touch screen technology
Naveen Sihag
 
PPTX
Solids and semiconductors
Naveen Sihag
 
PPT
Sms &mms
Naveen Sihag
 
PPTX
Robotics and collision detection
Naveen Sihag
 
PPT
Renewable energy
Naveen Sihag
 
PPT
Red tacton
Naveen Sihag
 
PPT
Pulse code modulation
Naveen Sihag
 
PPTX
Paper battery
Naveen Sihag
 
PPT
Osi
Naveen Sihag
 
PPT
Multiplexing
Naveen Sihag
 
A P J Abdul Kalam
Naveen Sihag
 
Rise to power adolf hitler
Naveen Sihag
 
Networking
Naveen Sihag
 
Efective computing
Naveen Sihag
 
Bluetooth 1
Naveen Sihag
 
Black holes
Naveen Sihag
 
Black holes
Naveen Sihag
 
Visible light communication
Naveen Sihag
 
Variable frequency drives
Naveen Sihag
 
Transducers
Naveen Sihag
 
Touch screen technology
Naveen Sihag
 
Solids and semiconductors
Naveen Sihag
 
Sms &mms
Naveen Sihag
 
Robotics and collision detection
Naveen Sihag
 
Renewable energy
Naveen Sihag
 
Red tacton
Naveen Sihag
 
Pulse code modulation
Naveen Sihag
 
Paper battery
Naveen Sihag
 
Multiplexing
Naveen Sihag
 
Ad

Introduction to .net

  • 1. Introduction to .NET Frank McCown TechLunch Old Dominion University March 28, 2007
  • 2. Before .NET  Windows GUI development: Win32 API, MFC, Visual Basic  Web development: ASP  Java – “Write once, run anywhere.”  Embrace and extend: Visual J++
  • 3. .NET Framework  First developed by Microsoft in 2000  Current version (3.0) released in Nov 2006  Targets primarily Windows OS, but Mono Project (headed by Novell) supports Linux, Unix, FreeBSD, Mac OS X, Solaris  Primary languages: C#, Visual Basic .NET, C++/CLI, and J#  Third-party languages: Ada, COBOL, LISP, Perl, Ruby, and many more
  • 5. Comparison to Java compile execute Hello.java Hello.class JVM Source code Byte code compile execute Hello.vb Hello.exe CLR Source code CIL
  • 6. Hello, VB.NET! .method public static void Main() cil managed Module Hello { Sub Main() .entrypoint Console.WriteLine("Hello, .custom instance void VB.NET!") [mscorlib]System.STAThreadAttribute::.ctor( End Sub ) = ( 01 00 00 00 ) End Module // Code size 14 (0xe) .maxstack 8 IL_0000: nop IL_0001: ldstr "Hello VB.NET!" ildasm Hello.exe IL_0006: call void [mscorlib]System.Console::WriteLine(string) IL_000b: nop IL_000c: nop IL_000d: ret } // end of method Hello::Main
  • 7. Helpful Resources  Comparison of Java vs. C# http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java http://www.harding.edu/fmccown/java1_5_csharp_comparison.html  Comparison of VB.NET vs. C# http://en.wikipedia.org/wiki/Comparison_of_C_sharp_and_Visual_Basic_.NET http://www.harding.edu/fmccown/vbnet_csharp_comparison.html

Editor's Notes

  • #3: MFC was introduced in 1992. VB created in 1991. Replaced by VB.NET. MS stopped supporting VB in 2005. ASP first developed in 1996. Used VBScript. “Write once, test everywhere.” – Hooks to OS or hardware specific devices means Java code must be changed.
  • #4: C#'s principal designer and lead architect at Microsoft is Anders Hejlsberg who also developed Turbo Pascal, Borland Delphi, and Visual J++. C++/CLI (Common Language Infrastructure) supersedes managed C++. It contains new syntax that helps clarify if using managed or unmanaged memory. http://en.wikipedia.org/wiki/C%2B%2B/CLI Managed vs. unmanaged code. What is the advantage of running managed code? Of running unmanaged code?
  • #5: CIL is also called MSIL (Microsoft Intermediate Lang)
  • #6: Byte codes are interpreted by the JVM or JITted before being executed. CIL is JITted into object code which is executed by the CLR.