13

NET and C# Introduction

Embed Size (px)

DESCRIPTION

Basic of C# and .NET Framework

Citation preview

Page 1: NET and C# Introduction
Page 2: NET and C# Introduction

AGENDA

• Microsoft .NET Platform and Visual Studio

• .NET Framework

• Introduction to C#

• OOPS component of C#

• Assemblies and Modules

• Sample Applications

Page 3: NET and C# Introduction

.NET Platform

.NET

OOP JVM

GUIWeb

component-based design n-tier design

Influential Factors

Page 4: NET and C# Introduction

Visual Studio=>”Everything including IDE”

Page 5: NET and C# Introduction

.NET Framework

Page 6: NET and C# Introduction

EXECUTION

Page 7: NET and C# Introduction

Code Conversion

Page 8: NET and C# Introduction

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

Page 9: NET and C# Introduction

C# Components

• Namespaces• Classes• Methods and Properties• Delegates and Event Handler• Interfaces• Exception Handling• Data Types• Arrays

Page 10: NET and C# Introduction

Data TypesC# 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.UI nt32 long System.Int64 ulong System.UI nt64 object System.Object short System.Int16 ushort System.UI nt16 string System.String

Page 11: NET and C# Introduction

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;

Page 12: NET and C# Introduction

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)

Page 13: NET and C# Introduction

THANK YOU