KEMBAR78
.NET and C# Introduction | PPTX
AGENDA
• Microsoft .NET Platform and Visual Studio

• .NET Framework

• Introduction to C#

• OOPS component of C#

• Assemblies and Modules

• Sample Applications
.NET Platform
Influential Factors
                 OOP          JVM




      GUI
                       .NET            Web




     component-based
         design               n-tier design
Visual Studio=>”Everything including
               IDE”
.NET Framework
E
X
E
C
U
T
I
O
N
Code Conversion
C#
• Developed specifically for .NET

• Enable programmers to migrate from C/C++ and Java easily

• Event-driven, fully OO, visual programming language

• Process of rapidly creating an application using an IDE is called Rapid
 Application Development (RAD)

• Language Interoperability and Reusability

• Windows Desktop, Windows Phone and Web Application & Services
C# Components
• Namespaces
• Classes
• Methods and Properties
• Delegates and Event Handler
• Interfaces
• Exception Handling
• Data Types
• Arrays
Data Types
   C# Type   .NET Framework type
bool         System.Boolean
byte         System.Byte
sbyte        System.SByte
char         System.Char
decimal      System.Decimal
double       System.Double
float        System.Single
int          System.Int32
uint         System.UInt32
long         System.Int64
ulong        System.UInt64
object       System.Object
short        System.Int16
ushort       System.UInt16
string       System.String
Array
• Declaration

   • int[] table;    //not int table[]

   • int[] number;
   number=new int[10];
   number=new int[20];

   • Single Dimensional Arrays       :   int[] numbers;
   • Multi Dimensional Arrays        :   int[,] numbers;
   • Jagged Arrays                   :   int[][] numbers;
Assemblies
• A logical collection of one or more EXEs and DLLs containing an
  application’s code and resources

• It contains
   • Codes in MSIL
   • Manifest (A metadata description of the code and resources)
THANK YOU

.NET and C# Introduction

  • 2.
    AGENDA • Microsoft .NETPlatform and Visual Studio • .NET Framework • Introduction to C# • OOPS component of C# • Assemblies and Modules • Sample Applications
  • 3.
    .NET Platform Influential Factors OOP JVM GUI .NET Web component-based design n-tier design
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
    C# • Developed specificallyfor .NET • Enable programmers to migrate from C/C++ and Java easily • Event-driven, fully OO, visual programming language • Process of rapidly creating an application using an IDE is called Rapid Application Development (RAD) • Language Interoperability and Reusability • Windows Desktop, Windows Phone and Web Application & Services
  • 9.
    C# Components • Namespaces •Classes • Methods and Properties • Delegates and Event Handler • Interfaces • Exception Handling • Data Types • Arrays
  • 10.
    Data Types C# Type .NET Framework type bool System.Boolean byte System.Byte sbyte System.SByte char System.Char decimal System.Decimal double System.Double float System.Single int System.Int32 uint System.UInt32 long System.Int64 ulong System.UInt64 object System.Object short System.Int16 ushort System.UInt16 string System.String
  • 11.
    Array • Declaration • int[] table; //not int table[] • int[] number; number=new int[10]; number=new int[20]; • Single Dimensional Arrays : int[] numbers; • Multi Dimensional Arrays : int[,] numbers; • Jagged Arrays : int[][] numbers;
  • 12.
    Assemblies • A logicalcollection of one or more EXEs and DLLs containing an application’s code and resources • It contains • Codes in MSIL • Manifest (A metadata description of the code and resources)
  • 13.