Professional Documents
Culture Documents
Dot Net: Practical & Project Guide Design and Develop by A.Andrew Bergeran M.SC (CT), M.B.A (Sys)
Dot Net: Practical & Project Guide Design and Develop by A.Andrew Bergeran M.SC (CT), M.B.A (Sys)
NET Features
•
It’s a IDE(Integrated Development Environment)
•
.NET Framework provide a way of quickly developing the
Applications.
•
CLS ( Common Language Specification)
•
CTS ( Common Type system)
•
Language Interoperability
•
Memory Allocation-avoid memory leaks.
•
Auto completion, Intellisense , Exception Handling
•
There are Two Main Components in .NET Framework
–
CLR(Common Language Runtime)
–
Large No of Class Library
Dot Net: Practical & Project Guide Design and Develop by A.Andrew Bergeran M.Sc(ct),M.B.A (sys)
Process of Execution
•
Source code -> IL(intermediate code) = compilation
•
-> CLR (JIT) -> Native code = Runtime
1.0 .Net
6) Class Library Apps ( Create DLL. It means Dynamic Link Library (.dll) )
Program Location
Dot Net: Practical & Project Guide
Console Application Ex: 1
Module Module1
Sub Main ()
Console.WriteLine (“Welcome") ‘Write Statement
End Sub
End Module
Module Module1
Sub Main ()
Dim r As Integer
Dim p, n, si As Decimal
r=5
p = 1000
n=1
si = p * n * r / 100
Console.WriteLine ("SI:" & si)
End Sub
End Module
Dot Net: Practical & Project Guide
Circle
Ex: 7
Module Module1
Sub Main ()
Dim r As Integer
Dim a, pi As Decimal
pi = 3.1415 ‘Constant Value
Console.WriteLine("Enter the value in r")
r = Console.ReadLine
a = pi * r * r
Console.WriteLine("The value of circle is=" & a)
End Sub
End Module
Dot Net: Practical & Project Guide
Date & String Functions
Ex: 8
Console.WriteLine(" using today" & Today)
Console.WriteLine(" using now" & Now)
Console.WriteLine(" using timeof day" & TimeOfDay)
Console.WriteLine(Format(Now, "d-M-yy"))
Console.WriteLine(Format(Now, "dd-MM-yyyy"))