You are on page 1of 21

m  


By
Sam Nasr
May 5, 2006

www.ClevelandDotNet.info
‘ enda
Introductions
What is .Net?
.Net Framework
‘dvanta es of .Net
‘dvanta es of CLR
Visual Studio 2005
.Net Lan ua es
C# vs. VB.Net
Resources
What is .Net?
New pro rammin methodolo y
˜ Multiple Lan ua es (VB.Net, C#, J#, Cobol.Net, etc.)
˜ JIT Compiler

Primary Parts:
.Net Framework
Common Lan ua e Runtime (CLR)

RTM:
˜ 2002 (v1.0)
˜ 2003 (v1.1)
˜ 2005 (v2.0)
.Net Framework
‘ set of approximately 3500 classes.

Classes are divided into namespaces roupin similar classes.

For or anization, each class belon s to only one namespace.

Most classes are lumped into a name space called System


˜ System.Data: DB access
˜ System.XML: readin writin XML
˜ System.Windows.Forms: Forms manipulation
˜ System.Net: network communication.
.Net Framework
Supports Web Standards
˜ HTML
˜ XML
˜ XSLT
˜ SO‘P
˜ WSDL (Web Services)

‘DO.Net: ‘ctiveX Data Objects

‘SP.Net: ‘ctive Server Pa es

ILD‘SM: ‘ tool used to properly display IL in a


human readable format.

.Net Compact Framework (mobile devices)


‘dvanta es of .Net
Write once, run everywhere

Multiple pro rammin lan ua es (20+)

Codin Reduction
˜ Controls
˜ Template projects
˜ IISCassini support

Ease of Deployment

Security Features
˜ Evidence-based security
Evidence-
˜ Code access security
˜ The verification process
˜ Role--based security
Role
˜ Crypto raphy
˜ ‘pplication domains
‘dvanta es of CLR
JIT allows code to run in a protected environment as
mana ed code.

JIT allows the IL code to be hardware independent.

CLR also allows for enforcement of code access


security.

Verification of type safety.

‘ccess to Metadata (enhanced Type Information)


‘dvanta es of CLR
Support for developer services (debu in )

Interoperation between mana ed code and


unmana ed code (COM, DLLs).

Mana ed code environment

Improved memory handlin

Improved ³ arba e collection´


Web ‘pp Benchmark
Distributed Transactions
Web Service Throu hput
Visual Studio 2005
IDE for .Net development

Dotfuscator encryption tools

Cassini (IIS)

‘pplication Testin Center

Team Suite for project mana ement

Express versions (free)

VB6 to VB.Net conversion wizard


.Net Pro rammin Lan ua es

1. Visual Basic.Net ð  


ð 
 
2. C# ð  
3. ‘PL ð  
4. Fortran ð  
ð   
5. Pascal ð   
6. C++ !" #$$ 
7. Haskell !ð %&  
!!   '
8. Perl !  ( 
9. Java Lan ua e ! %)
10.Python
10. Python
11.COBOL
11. COBOL
12.Microsoft
12. Microsoft
JScript
C# vs. VB.Net

Differences lie in:

1. Syntax

2. Object Oriented Features

3. Visual Studio.Net IDE


C# vs. VB.Net
a
et
No ‘uto Case adjust
‘uto case adjust
Requires ³{, }, ;´
No line
Enforces pro rammin
terminators
rules.
Requires ³Be in,
Unsafe Blocks
End´
Documentation
Still intended as
Comments
R‘D tool.
Operator Overloadin
‘llows late
bindin
C# vs. VB.Net

a et
class ‘pp
Class ‘pp
{
static void Main(strin [ ] ar s) Shared Sub Main(ByVal ar s
{ as Strin ( ) )
int intCounter=0; Dim ar as Strin
Dim intCounter as Inte er
foreach (strin ar in ar s)
{
For Each ar in ar s
System.Console.WriteLine(³
Counter:´ + System.Console.Writeline(³
intCounter.ToStrin () + ³=³ Counter: ´ & intCounter &
+ ar );
³=³ & ar )
} end of foreach
Next µFor Each loop
} end of Main()
End Sub µend of Main()
} end of ‘pp{}
Documentation Comments (C#)
summary>
‘ Sample Function to demonstrate C#
summary>
param name=³void´>This function does not receive a
parameter. param>
returns>Void Typereturns>

Void SampleProc()
{
int intCounter1, intCounter2;
Messa eBox.show(³Counter1=´ & intCounter1);
} end of SampleProc
C#VB.Net Myths
VB.Net is intended for use with Microsoft Office.

C# is the latest release of C++.

C# is easier to learn than VB.Net.

To learn C#, one should first learn C++.

C# is more advanced than VB.Net

C# runs faster than VB.Net


C#VB.Net Converters

C# to VB.NET
http:www.aspalliance.comaldotnetexamplestr
anslate.aspx
http:www.kamalpatel.netConvertCSharp2VB.a
spx

VB.Net to C#
http:www.e-iceblue.com
http:www.e-
http:www.vbconversions.com
Developer Resources
Microsoft Developers Network: http:msdn.microsoft.com

.Net Trainin and Events:


http:msdn.microsoft.comnetframeworksupporttrainin default.aspx

Deployin .Net ‘pplications:


http:msdn.microsoft.comlibrarydefault.asp?url=libraryen
http:msdn.microsoft.comlibrarydefault.asp?url=libraryen--
uscp uidehtmlcpcondeployin netframeworkapplications.asp

MSDN Events (VS.Net): http:www.msdnevents.com

TechNet Events (SQL Server):


http:www.technetevents.com

C#VB.Net Special Interest Group:


http:www.ClevelandDotNet.info
Informational Resources
.Net Overview
http:msdn.microsoft.comnetframeworktechnolo yinfooverview

What .Net means to IT Professionals


http:www.microsoft.comnetbusinessit_pros.asp

Case Studies:
˜ Continental ‘irlines
˜ Dollar Rent ‘ Car Systems
˜ U.S. ‘rmy Intelli ence and Security Command
˜ Scandinavian ‘irlines

TS2 Seminars
http:www.ts2seminars.com