Upload
siraj-memon
View
3.841
Download
0
Embed Size (px)
DESCRIPTION
Basic of C# and .NET Framework
Citation preview
AGENDA
• Microsoft .NET Platform and Visual Studio
• .NET Framework
• Introduction to C#
• OOPS component of C#
• Assemblies and Modules
• Sample Applications
.NET Platform
.NET
OOP JVM
GUIWeb
component-based design n-tier design
Influential Factors
Visual Studio=>”Everything including IDE”
.NET Framework
EXECUTION
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 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
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