The Global Open University Nagaland: Special Tips & Tricks
The Global Open University Nagaland: Special Tips & Tricks
ASP.NET
Agenda
Part I - Fundamentals
Programming Models Design Goals and Architecture CLR Services Visual Studio 2005
.NET Framework
RAD, Composition, Delegation Subclassing, Power, Expressiveness Stateless, Code embedded in HTML pages
VB Forms
MFC/ATL
ASP
Windows API
Organization
Code organized in hierarchical namespaces and
classes
Component Oriented
Properties, methods, events, and attributes are first
.NET Framework
Form form = new Form(); form.Text = "Main Window"; form.Show();
Agenda
Part I - Fundamentals
Programming Models Design Goals and Architecture CLR Services
Architectural Overview
Framework
Common Language Runtime
Base Classes
IL to native code compilers
Execution Support
Security
Source Code
Language Compiler
Assembly
Metadata
Code (IL)
JIT Compiler
Languages
All languages are first class players You can leverage your existing skills
Set of features guaranteed to be in all languages VB, C++, C#, J#, JScript
We are providing
APL, COBOL, Pascal, Eiffel, Haskell, ML, Oberon, Perl, Python, Scheme, Smalltalk
Agenda
Part I - Fundamentals
Programming Models Design Goals and Architecture CLR Services
Component-Based Programming
Type Safety
Type safety ensures that objects are used the way they were intended to be used
Prevents an objects state from being corrupted
Code is easier to write because there is no question as to which component is responsible to free an object
When passed a buffer, who frees it: caller or callee?
Metadata
members the type defines (also known as late binding) Components can be written/used by different languages
Metadata
(and code)
Profiler
Schema Generator
Proxy Generator
XML encoding
(SDL or SUDS)
Class Loader
IL to native conversion
Assembly Resolver
First reference to Assembly
CPU
Standardization
Rotor (SSCLI)
Shared-Source version of the CLR+BCL+C# compiler Ports available: Windows, FreeBSD, OSX, etc Real product code offers real world learning http://sscli.org
Developer Roadmap
Visual Studio 2005 Yukon Visual Studio Orcas Longhorn
Orcas release
Whidbey release SQL Server integration Improved IDE productivity and community support Extended support for XML Web services Office programmability
Improved performance
Agenda
Part I - Fundamentals
Design Goals Architecture CLR Services
Agenda
Part I - Fundamentals
Design Goals Architecture CLR Services
CLR similar to native code Reduce marginal cost of additional managed processes Reduce startup time and working set
NGen
Compiles IL code to native code, saving results to disk
Advantages: no need to recompile IL to native code, and
class layout already set so better startup time Whidbey: Significant reductions in the amount of private, non-shareable working set OS: no-Jit plan, all managed code will be NGened
TryParse
CLR Security