Intro Dot Net
Intro Dot Net
Net
By
Sam Nasr
May 5, 2006
www.ClevelandDotNet.info
Agenda
Introductions
What is .Net?
.Net Framework
Advantages of .Net
Advantages of CLR
Visual Studio 2005
.Net Languages
C# vs. VB.Net
Resources
What is .Net?
New programming methodology
Multiple Languages (VB.Net, C#, J#, Cobol.Net, etc.)
JIT Compiler
Primary Parts:
.Net Framework
Common Language Runtime (CLR)
RTM:
2002 (v1.0)
2003 (v1.1)
2005 (v2.0)
.Net Framework
A set of approximately 3500 classes.
Coding Reduction
Controls
Template projects
IIS/Cassini support
Ease of Deployment
Security Features
Evidence-based security
Code access security
The verification process
Role-based security
Cryptography
Application domains
Advantages of CLR
JIT allows code to run in a protected environment as
managed code.
Cassini (IIS)
1. Syntax
C# VB.Net
class App Class App
{
static void Main(string [ ] args) Shared Sub Main(ByVal args
{ as String( ) )
int intCounter=0; Dim arg as String
Dim intCounter as Integer
foreach (string arg in args)
{ For Each arg in args
System.Console.WriteLine(“
Counter:” + System.Console.Writeline(“
intCounter.ToString() + “=“ Counter: ” & intCounter &
+ arg); “=“ & arg)
} //end of foreach Next ‘For Each loop
} //end of Main()
End Sub ‘end of Main()
} //end of App{}
Documentation Comments (C#)
///<summary>
///A Sample Function to demonstrate C#
///</summary>
///<param name=“void”>This function does not receive a
parameter. </param>
///<returns>Void Type</returns>
Void SampleProc()
{
int intCounter1, intCounter2;
MessageBox.show(“Counter1=” & intCounter1);
} //end of SampleProc
C#/VB.Net Myths
VB.Net is intended for use with Microsoft Office.
C# to VB.NET
http://www.aspalliance.com/aldotnet/examples/tr
anslate.aspx
http://www.kamalpatel.net/ConvertCSharp2VB.a
spx
VB.Net to C#
http://www.e-iceblue.com
Developer Resources
Microsoft Developers Network: http://msdn.microsoft.com
Case Studies:
Continental Airlines
Dollar Rent A Car Systems
U.S. Army Intelligence and Security Command
Scandinavian Airlines
TS2 Seminars
http://www.ts2seminars.com/