170 likes | 190 Views
Learn about the basic concepts and advantages of the .NET 2.0 framework including its design features, common functions, security, deployment, and more.
E N D
Overview of Microsoft .Net Framework • is a software framework that can be installed on computers running Microsoft Windowsoperating 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
.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
.NET Framework Advantages • Consistent Programming Model • Direct Support for Security • Simplified Development Efforts
.NET framework • Simplified Deployment • Tools for Deployment • Conforms to Security Requirements • Security • Portability
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
Definition • Class library • Organize in namespace • Memory management • It has Garbage Collector (GC)
.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.
.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
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++.
C# Language Reference and Syntax • Variable Declaration: Format: <DataType> <Variable Name>; Sample: int x; int y = 0; MyClassmyClass = new MyClass();
C# Language Reference and Syntax • Function/Subroutine declaration: public string GetName() { } public Void ProcessFile() { }
C# Language Reference and Syntax • Conditionals: Simple: if (condition) { // condition is true } Complex: if (condition) { // condition is true } else { // condition is false }