Date post: | 06-Apr-2017 |
Category: |
Engineering |
Upload: | vaishalisahare123 |
View: | 67 times |
Download: | 7 times |
Introduction to .NET Framework
By,Vaishali Sahare (Katkar)
Development Model
Client
Database Client
Internet Explorer
Outlook Express
Cute FTP
MS Excel
MS Word
Server
Database Server
IIS
MS Exchange
Configured IIS
Charting Comp.
Spell Checker
Development Model
Front End
Business Logic
Back EndConnection Tools
Communication Tools Connection Tools
Single Tier - All component on same machine
Two Tier - Any two component on one machine and other one on Another Machine
Multi / Three Tier - All component on different machine
Platform
Working• Operating System
– Different Software • Application• System
Development• Editor (IDE)
– Like TC , VB , VC++• Compilers• Libraries• Tools• Debuggers
• Distribution
Types Of Applications• Console
– Commands• Windows
– Word – Excel
• Component Library– GramerCheck.dll – Rundll32.dll
• Embedded– Mobile Phones
• Distributed Apps.– Network Based
• Web (app.) Based Programs – Banking Applications – E-Commerce Applications
• Gaming Application– Games– Navigation System
• Database Application– ADO, RDO, ODBC
• Real-Time Emb. Apps.– Flight Controller – Engine Controller
•What Is support of language•We need different function for each type For ex. IO, Forms, Web Form, Threading, Socket, 2D Drawing, Exception, OOP, etc.
.Net Framework What Is It
• NET is a framework consisting of common language runtime and a set of .NET base classes which allow us to build distributed, secure, scalable, robust, easily deployable and maintainable applications in a language independent, object-oriented, web enabled, managed way using rich level of integration amongst present technologies.
Simple Start
CTS
VB VC
C#N.
Base ClassLibrary
Compilers
.Net Exe (Debug)
•Test executable•Convert executable in O.S. form•Run executable•Manage application memory •ETC.
RuntimeEnvironment
DevelopmentEnvironment
.Net Exe (Release)
.NetFramework
Language Infrastructure
VB.NetVB.Net C#C# VC++.NetVC++.Net J#.NetJ#.Net JScriptJScript ------
Common Type SystemCommon Type System
•Type declaration •Type management •Object-oriented type model •Defined rules that languages must follow to be interoperable (CLS)
Language Infrastructure
VB.Net C# VC++.Net J#.Net JScript ---
Common Type System
Client-Side Server-Side Mobile-Side
• WinForms • WinForm Controls • Rich Client Apps. • Components • Windows Services
• WebForms • WebForm Controls • WebServices • Mobile WebForms
• Smart Clients • Real-Time Apps.
Base Class Library
VB.Net C# VC++.Net J#.Net JScript ---
Common Type System
Client-Side Server-Side Mobile-Side
Base Class Library
• GDI+• Networking • Threading • Web • Protocols • Messaging
•Serialization • Security • Reflection • Timers • ADO.NET • Windowing
Common Language Runtime
VB.Net C# VC++.Net J#.Net JScript ---
Common Type System
Client-Side Server-Side Mobile-Side
Base Class Library
Common Language Runtime
- Just In Time Comp. - Garbage Collection - Class loading - Secure environment - Handling Exceptions - Application Domains
Platform
VB.Net C# VC++.Net J#.Net JScript ---
Common Type System
Client-Side Server-Side Mobile-Side
Base Class Library
Common Language Runtime
• Transaction support • Message Queuing • Object Pooling • Load Balancing
Windows COM+ Services
• GUI • Multitasking • Event driven model
.Net Framework
VB.Net C# VC++.Net J#.Net JScript ---
Common Type System
Client-Side Server-Side Mobile-Side
Base Class Library
Common Language Runtime
Windows COM+ Services .Net
Fra
mew
ork
Windows 2000 / NT / XP
.Net Program ExecutionVB.Net Code C# Code VC++.Net Code
CompilerCompiler Compiler
IL Exe Or IL Dll
JIT CompilerClass Library
Native CodeGet ExecuteUnder CLR
CPU-independent instructions
CPU-Dependent
While Execution & After Safety Verification
Overall
CLR o.s.
UnmanagedApp.
CustomObjectLib.
ManagedApp.
InternetInformationServer
ASP.Net Run-Time Managed Web
Application
ClassLib.
Let’s Start ProgrammingFile | New | Project
What Is ProjectProject
Resources DB ToolsUser ControlModulesForms
Standalone Image File
Sound File
Help File
Other files
Win Controls
Win. Forms
Web Controls
Web Forms
Procedures
Functions
Methods
Class Modules
ADO, RDO, ODBC, ADO.Net
Crystal ReportData Report
Connection Tools
Reports Tools
Console Modules Imports System Module Module1
Sub Main( )
System.Console.WriteLine ( “First Program" )
End Sub
End Module
Namespace
Required User Defined
Keywords
Class Method OrMember Function Parameter
Auto Generated
Can Be Avoided If Imported
Simple Declaring Variables(Access) (Var.name) (As) [New] (Type) [= InitExpr]
Dim i As Integer = 1Dim S As StringDim St As String = “Hello”
Note : New Keyword Is Use While We Are Creating A Object Variable
Eg. Dim B As New Button
More Example:
Dim I, J, K As Integer ' All three are Integer variables.Dim L, M As Long, X, Y As Single ' L and M are Long, X and Y are Single
Decision Making
If…Else :
If condition Then[statements]
[ElseIf condition-n Then[elseifstatements]] ...
[Else[elsestatements]]
End If
For & For Each …Next
Syntax :
For counter = start To end [Step step]
[statements][Exit For]
[statements]Next [counter]
Syntax :
For Each element In group[statements]
[Exit For][statements]
Next [element]
Do – While Loop
Do
Do [{While | Until} condition][statements]
[Exit Do][statements]
Loop
Or, you can use this syntax:
Do[statements]
[Exit Do][statements]
Loop [{While | Until} condition]
While & With Statement
Syntax :
While condition[statements]
End While
Syntax :
With object[statements]
End With
IDE
Form Designer
ToolBox
Solution Explorer
Property Window
Tool Bar
Task Window
Tabbed View
IDE
Code View
Server Explorer
Class View
Dynamic Help
Index Result
Run / Stop Program Compilation Mode
Flow Of GUI Language Form Designing
Property Setting
Decide Event
Writing Code
Output