net 2.0 basic concept. overview of microsoft.net framework is a software framework that can be...

17
.Net 2.0 basic concept

Upload: gwendolyn-bishop

Post on 27-Dec-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.Net 2.0 basic concept

Page 2: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

Overview of Microsoft .Net Framework

• is a software framework that can be installed on computers running Microsoft Windows operating systems.

• It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework

Page 3: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.NET framework on windows

Page 4: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.NET framework Technologies Principal design features

Interoperability Common Runtime Engine

Common Language Runtime (CLR) Language Independence Base Class Library

Common Functions: File Reading and Writing Graphics Rendering Database Interaction XML Document Manipulation

Page 5: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.NET Framework Advantages• Consistent Programming Model

• Direct Support for Security• Simplified Development Efforts

Page 6: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.NET framework

Simplified Deployment Tools for Deployment Conforms to Security Requirements

Security Portability

Page 7: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

Common Language Infrastructure (CLI)

Page 8: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

Definition Common Language Infrastructure (CLI)

The Core aspect of .NET framework Assemblies

Stored in Portable Executable, DLL and EXE files. Composed of text name, version number, culture and

public key token Sample Assemblies in web.config:

<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

Metadata It denotes the attribute of CIL or it describes itself.

Security

Page 9: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

Definition

Class library Organize in namespace

Memory management It has Garbage Collector (GC)

Page 10: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.NET Framework Versions .NET Framework 1.0

This is the first release of the .NET Framework, released on 13 February 2002 and available for Windows 98, Me, NT 4.0, 2000, and XP.

.NET Framework 1.1 This is the first major .NET Framework upgrade. was published on 3 April

2003. .NET Framework 2.0

Released with Visual Studio 2005, Microsoft SQL Server 2005, and BizTalk 2006.

.NET Framework 3.0 formerly called WinFX,[20] was released on 21 November 2006. It includes a

new set of managed code APIs that are an integral part of Windows Vista and Windows Server 2008 operating systems. It is also available for Windows XP SP2 and Windows Server 2003 as a download. There are no major architectural changes included with this release; .NET Framework 3.0 uses the Common Language Runtime of .NET Framework 2.0.[21] Unlike the previous major .NET releases there was no .NET Compact Framework release made as a counterpart of this version.

Page 11: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

.NET Framework Versions

• .NET Framework 3.5– Version 3.5 of the .NET Framework was released on 19

November 2007, but it is not included with Windows Server 2008. As with .NET Framework 3.0, version 3.5 uses the CLR of version 2.0. In addition, it installs .NET Framework 2.0 SP1, (installs .NET Framework 2.0 SP2 with 3.5 SP1) and .NET Framework 3.0 SP1 (installs .NET Framework 3.0 SP2 with 3.5 SP1), which adds some methods and properties to the BCL classes in version 2.0 which are required for version 3.5 features such as Language Integrated Query (LINQ). These changes do not affect applications written for version 2.0

Page 12: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

• Using C# 2.0

Page 13: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

Overview of the C# Language C# is an object-oriented programming language developed by

Microsoft Corporation as part of their .NET initiative in response to the success of Sun Microsystems' Java programming language.

Majority of the syntax are almost the same with Java, C and C++.

Page 14: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

C# Language Reference and Syntax

• Variable Declaration:Format:<DataType> <Variable Name>;

Sample:

int x;

int y = 0;

MyClass myClass = new MyClass();

Page 15: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

C# Language Reference and Syntax

• Function/Subroutine declaration:

public string GetName()

{

}

public Void ProcessFile()

{

}

Page 16: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

C# Language Reference and Syntax• Conditionals:

Simple:if (condition) { // condition is true

}

Complex:if (condition)

{ // condition is true

} else {

// condition is false }

Page 17: Net 2.0 basic concept. Overview of Microsoft.Net Framework is a software framework that can be installed on computers running Microsoft Windows operating

Welcome to