You are on page 1of 22

Introduction to Visual Studio.

NET

Directed by M. Mansoor Majid

Topies

What is .NET? .NET Framework Visual Studio.NET C# Advantage of VB & C# Professional Strength Microsoft IT Academy Certification

What is Microsoft .NET?

.NET represents an advanced new generation of software that will drive the Next Generation Internet. Its purpose is to make information available any time, any place, and on any device. Quick Definition

.NET is an initiative to integrate all Microsoft products with the Next Generation web.

http://www.microsoft.com/net/

Next Generation Internet


Web site Backend App

Mega LooselyService coupled, Service Service services Backend Web connected by site App XMLXML-based Service msgs messages and contracts, Device Service written in many languages Mega Web site Service

.NET Framework

.NET Framework

.NET Framework consists of 3 main parts:


Common Language Runtime Framework Classes/Libraries ASP.NET

http://msdn.microsoft.com/net

The .NET Framework VB C++ C# JScript

Visual Studio.NET

Common Language Specification ASP.NET: Web Services and Web Forms Windows Windows Forms Forms

ADO.NET: Data and XML Base Class Library Common Language Runtime

Common Language Runtime (CLR)

A common runtime for all .NET languages


Common type system Common metadata Intermediate Language (IL) to native code compilers Memory allocation and garbage collection Code execution and security C#, VB, Jscript, Visual C++ from Microsoft

Over 15 languages supported today

Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc.

.NET Framework Libraries

Single consistent set of object oriented class libraries to enable building distributed web applications (Unified Classes) Built using classes arranged across logical hierarchical namespaces

For example: System.Data.SQL

.NET Framework Libraries


Unified Classes
Web Classes (ASP.NET)
Controls, Caching, Security, Session, Configuration etc

Data (ADO.NET)
ADO, SQL,Types etc

Windows Forms
Design, Cmpnt Model etc

XML Classes

Drawing Classes

XSLT, Path, Serialization etc Drawing, Imaging, Text, etc

System Classes
Collections, Diagnostics, Globalization, IO, Security, Threading Serialization, Reflection, Messaging etc

Visual Studio.NET

Visual Studio.NET

Integrated Development Environment

Visual Basic.NET

Many language enhancements Inheritance, Overloading, Free Threading Integration with .NET Framework with managed extensions (classes) New developed language Based on C/C++ with Garbage Collection/Memory Management Pure and Effective Object Oriented Programming Clean Coad

Visual C++

C#

http://msdn.microsoft.com/vstudio

VS.NET Features

Single IDE for all Languages Server Explorer


Event Viewer, Message Queues, Services SQL Databases, Data Connection, Etc.

Integrated IE Browser HTML/XML Editors Solution Explorer Tabbed Documents Dynamic Help Common Forms Editor

VB.NET, C++, and C#

Visual Studio.NET Demo

C#

Intro to C#

Design Goals of C#

Component Orientated Language Durable Software Classes Namespaces No header files

Features

Resources

Microsoft
http://www.microsoft.com/net http://msdn.microsoft.com/net

Programmer Resources
http://www.gotdotnet.com http://www.devx.com

Advantage of VS & C#

Easily understandable. Simple Structure. Medium as well as Enterprise Solution development. Simple deployment. Suitable for individual as well as Group of programmers.

Professional Strength

Console, Desktop as well as ASP programming area awareness and development with deployment understanding Skill related to Software Programming will be Effectively improved. Everyone will be easily handle Software Development Task. Latest SMS Atomization understanding, as well as sound knowledge related to development.

Microsoft IT Academy

Orasoft become a Microsoft IT Academy member and through which you have facilitate lots, details are as follows:

Professional IT Academy Certificate directly from Mircosoft after .Net course. Every one have user name and password of Microsoft IT Academy for online kit and documents.

C# Coding Style

The Main Method is the entry point of a C# console application or window application (Libraries and services do not require a Main Method). When the application is started the Main Method is the first method that is Invoked. C# is case sensitive Language and you should select any line of code with the help of intellisence. Every line of code should be end by semicolon ; Use lower case for programming. Data type of C# is describing in next slide.

Data Type

short: Holds 16-bit signed integers. The smallest possible value for a short variable is -32,768; the largest possible value is 32,767. ushort: Holds 16-bit unsigned integers. The u in ushort stands for unsigned. The smallest possible value of an ushort variable is 0; the largest possible value is 65,535. int: Holds 32-bit signed integers. The smallest possible value of an int variable is -2,147,483,648; the largest possible value is 2,147,483,647. uint: Holds 32-bit unsigned integers. The u in uint stands for unsigned. The smallest possible value of a uint variable is 0; the largest possible value is 4,294,967,295. long: Holds 64-bit signed integers. The smallest possible value of a long variable is 9,223,372,036,854,775,808; the largest possible value is 9,223,372,036,854,775,807. ulong: Holds 64-bit unsigned integers. The u in ulong stands for unsigned. The smallest possible value of a ulong variable is 0; the largest possible value is 18,446,744,073,709,551,615. char: Holds 16-bit Unicode characters. The smallest possible value of a char variable is the Unicode character whose value is 0; the largest possible value is the Unicode character whose value is 65,535. float: Holds a 32-bit signed floating-point value. The smallest possible value of a float type is approximately 1.5 times 10 to the 45th power; the largest possible value is approximately 3.4 times 10 to the 38th power. double: Holds a 64-bit signed floating-point value. The smallest possible value of a double is approximately 5 times 10 to the 324th; the largest possible value is approximately 1.7 times 10 to the 308th. decimal: Holds a 128-bit signed floating-point value. Variables of type decimal are good for financial calculations. The smallest possible value of a decimal type is approximately 1 times 10 to the 28th power; the largest possible value is approximately 7.9 times 10 to the 28th power. bool: Holds one of two possible values, true or false. The use of the bool type is one of the areas in which C# breaks from its C and C++ heritage. In C and C++, the integer value 0 was synonymous with false, and any nonzero value was synonymous with true. In C#, however, the types are not synonymous. You cannot convert an integer variable into an equivalent bool value. If you want to work with a variable that needs to represent a true or false condition, use a bool

You might also like