SlideShare a Scribd company logo
Visual C# .Net using
framework 4.5
Eng. Mahmoud Ouf
Lecture 01
mmouf@2018
Introduction to .Net Framework
• The development of .Net Framework started the late 1990.
• First version was released early 2002.
• Through the 15 years it passes 8 upgrades
• Some of these upgrades was released with new version of Visual
Studio.Net.
mmouf@2018
Introduction to .Net Framework
Framework version Release date Development tool
1.0 13/02/2002 Visual Studio .Net 2002
1.1 24/04/2003 Visual Studio .Net 2003
2.0 07/11/2005 Visual Studio .Net 2005
3.0 06/11/2006 Visual Studio .Net 2005
3.5 19/11/2007 Visual Studio .Net 2008
4.0 12/04/2010 Visual Studio .Net 2010
4.5 15/08/2012 Visual Studio .Net 2012
4.6 20/07/2015 Visual Studio .Net 2015
mmouf@2018
Overview of .Net Framework
Common Language Runtime (CLR)
Framework Class Library (FCL)
WinForm ASP.NET ADO.NET
2.0
WPF WCF WF InfoCard
LINQ Entity Framework
Parallel LINQ Task Parallel Library
.Net APIs for store/uwp Task based Async model
3.0
3.5
4.0
4.5
mmouf@2018
Common Language Runtime (CLR)
Class Loader
MSIL to native
compiler
Code manager
Garbage
collector
Security Engine Debug Engine
Type Checker Exception Manager
Thread support COM Marshaler
Base Class Library (BCL) support
mmouf@2018
From source code to executable
C# Code
VB.Net Code
Managed C++
Code
C# Compiler
VB.Net
Compiler
Managed C++
Compiler
MSIL, CIL (IL)
PE file (dll, exe)
mmouf@2018
.Net Framework 1.1
1. Built in support for mobile ASP.Net controls
2. Enables Code Access Security in ASP.Net application
3. Built-in support for ODBC and Oracle Database
4. .Net Compact Framework
5. Support Internet Protocol version 6 (IPv6)
mmouf@2018
.Net Framework 2.0
1. Full 64-bit support
2. Numerous API changes
3. Microsoft SQL Server integration
4. Additional and improved ASP.Net web controls
5. New personalization features for ASP.Net
6. Partial classes
7. Nullable types
8. Anonymous methods
mmouf@2018
.Net Framework 3.0
1. Windows Presentation Foundation (WPF)
2. Windows Communication Foundation (WCF)
3. Windows Workflow Foundation (WF)
4. Windows CardSpace
mmouf@2018
.Net Framework 4.0
1. Parallel Extension to improve support of parallel programming
2. New Visual basic and C# features
3. Include new types
4. Introduced Common Language Runtime (CLR) 4.0
mmouf@2018
.Net Framework 4.5
1. .Net for Metro Style apps
2. Managed Extensibility Framework (MEF)
3. Core Features
4. ASP .Net
5. Networking
mmouf@2018
.Net Framework 4.6
1. Just In Time (jit) compiler for 64 bit system
2. WPF and Windows Forms both have been updated for high DPI
scenarios
3. Support for TLS 1.1 and TLS 1.2 has been added to WCF ASP .Net
4. The cryptographic API in .NET Framework 4.6 uses the latest
version of Windows CNG cryptography API.
mmouf@2018
Structure of C# program
• In C#, an application is a collection of one or more classes.
• The classes for a C# application can be written in more than one file
and multiple classes can be put in one file. One class could be written
in multiple files (partial class).
class HelloWorld
{
public static void Main()
{
System.Console.WriteLine(“Hello, World”);
}
}
mmouf@2018
Structure of C# program (cont.)
• The entry point to a C# application is the Main() method, which must
be: contained in a class, begin with capital M, and public static.
• public: modifier tells us that the method is accessible by everyone.
• static: means that the method can be called without creating an
instance of the class.
• The .Net Framework is made up of many namespaces, the most
important of which is called System; it contains the classes that most
application uses for interacting with the operating System.
• We can refer to objects in namespace by:
1.prefixing them explicitly with the identifier of namespace
System.Console.WriteLine(“Hello, World”);
2.specifing a namespace by placing a using directive at the beginning
of the application before the first class is defined
using System
mmouf@2018
Basic Input / Output operation
•Output:
Use the following 2 methods for output:
Console.Write()
Console.WriteLine()
The difference is that WriteLine() append a new line/carriage return to
the end of the output.
To print a constant value:
Console.WriteLine(99);
Console.WriteLine(“Hello, World”);
To print a variable value:
int x = 99;
Console.WriteLine(x);
To print a combination from variable and constant value:
Console.WriteLine(“The Sum of {0} and {1} is {2}”, x, x, x+x);
mmouf@2018
Basic Input / Output operation
•Output (Formatting Numerical Data):
String Format Character
C or c Used to format currency
D or d Used to format decimal numbers, it may specify minimum
number of digit
E or e Used for exponential notation
F or f Used for fixed point formatting, it may specify minimum
number of digit
N or n Used for basic numerical formatting (with commas)
X or x Used for hexadecimal formatting
mmouf@2018
Basic Input / Output operation
•Output (Formatting Numerical Data):
Example:
static void Main()
{
Console.WriteLine("The value 99999 in various formats:");
Console.WriteLine("c format: {0:c}", 99999);
Console.WriteLine("d9 format: {0:d9}", 99999);
Console.WriteLine("f3 format: {0:f3}", 99999);
Console.WriteLine("n format: {0:n}", 99999);
Console.WriteLine("E format: {0:E}", 99999);
Console.WriteLine("e format: {0:e}", 99999);
Console.WriteLine("X format: {0:X}", 99999);
Console.WriteLine("x format: {0:x}", 99999);
}
mmouf@2018
Basic Input / Output operation
•Input:
Use the following 2 methods for iutput:
Console.Read(), which read single character and return its ASCII
Console.ReadLine(), which read a string
string input = Console.ReadLine();
To read an integer, use the Parse:
string s = Console.ReadLine();
int n = int.Parse(s);
mmouf@2018

More Related Content

What's hot

Intake 38 5 1
Intake 38 5 1Intake 38 5 1
Intake 38 5 1
Mahmoud Ouf
 
Intake 38 5
Intake 38 5Intake 38 5
Intake 38 5
Mahmoud Ouf
 
Intake 37 2
Intake 37 2Intake 37 2
Intake 37 2
Mahmoud Ouf
 
Intake 37 4
Intake 37 4Intake 37 4
Intake 37 4
Mahmoud Ouf
 
Intake 37 6
Intake 37 6Intake 37 6
Intake 37 6
Mahmoud Ouf
 
Intake 37 5
Intake 37 5Intake 37 5
Intake 37 5
Mahmoud Ouf
 
Intake 38 7
Intake 38 7Intake 38 7
Intake 38 7
Mahmoud Ouf
 
Maxbox starter19
Maxbox starter19Maxbox starter19
Maxbox starter19
Max Kleiner
 
Chapter 2 c#
Chapter 2 c#Chapter 2 c#
Chapter 2 c#
megersaoljira
 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
critter13
 
Gsp 125 final exam guide
Gsp 125 final exam guideGsp 125 final exam guide
Gsp 125 final exam guide
williamsoncolling14
 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
monsterr20
 
Introduction to Matlab Scripts
Introduction to Matlab ScriptsIntroduction to Matlab Scripts
Introduction to Matlab Scripts
Shameer Ahmed Koya
 
Csphtp1 06
Csphtp1 06Csphtp1 06
Csphtp1 06
HUST
 
Function overloading ppt
Function overloading pptFunction overloading ppt
Function overloading ppt
Prof. Dr. K. Adisesha
 
The smartpath information systems c plus plus
The smartpath information systems  c plus plusThe smartpath information systems  c plus plus
The smartpath information systems c plus plus
The Smartpath Information Systems,Bhilai,Durg,Chhattisgarh.
 
01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.pptTareq Hasan
 
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
SAKSHIGAWADE2
 
C# Unit 2 notes
C# Unit 2 notesC# Unit 2 notes
C# Unit 2 notes
Sudarshan Dhondaley
 
Presentation 1st
Presentation 1stPresentation 1st
Presentation 1stConnex
 

What's hot (20)

Intake 38 5 1
Intake 38 5 1Intake 38 5 1
Intake 38 5 1
 
Intake 38 5
Intake 38 5Intake 38 5
Intake 38 5
 
Intake 37 2
Intake 37 2Intake 37 2
Intake 37 2
 
Intake 37 4
Intake 37 4Intake 37 4
Intake 37 4
 
Intake 37 6
Intake 37 6Intake 37 6
Intake 37 6
 
Intake 37 5
Intake 37 5Intake 37 5
Intake 37 5
 
Intake 38 7
Intake 38 7Intake 38 7
Intake 38 7
 
Maxbox starter19
Maxbox starter19Maxbox starter19
Maxbox starter19
 
Chapter 2 c#
Chapter 2 c#Chapter 2 c#
Chapter 2 c#
 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
 
Gsp 125 final exam guide
Gsp 125 final exam guideGsp 125 final exam guide
Gsp 125 final exam guide
 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
 
Introduction to Matlab Scripts
Introduction to Matlab ScriptsIntroduction to Matlab Scripts
Introduction to Matlab Scripts
 
Csphtp1 06
Csphtp1 06Csphtp1 06
Csphtp1 06
 
Function overloading ppt
Function overloading pptFunction overloading ppt
Function overloading ppt
 
The smartpath information systems c plus plus
The smartpath information systems  c plus plusThe smartpath information systems  c plus plus
The smartpath information systems c plus plus
 
01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.ppt
 
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
 
C# Unit 2 notes
C# Unit 2 notesC# Unit 2 notes
C# Unit 2 notes
 
Presentation 1st
Presentation 1stPresentation 1st
Presentation 1st
 

Similar to Intake 38_1

.Net Migration
.Net Migration .Net Migration
.Net Migration
Wadhwani Foundation
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp EnGregory Renard
 
Srgoc dotnet_new
Srgoc dotnet_newSrgoc dotnet_new
Srgoc dotnet_new
Gaurav Singh
 
1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)
Shoaib Ghachi
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net Framework
Neha Singh
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
Ganesh Jaya
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
cncwebworld
 
Lecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net frameworkLecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net framework
AbdullahNadeem78
 
01 Introduction to programming
01 Introduction to programming01 Introduction to programming
01 Introduction to programming
maznabili
 
.Net framework
.Net framework.Net framework
.Net frameworkRaghu nath
 
Microsoft .NET Platform
Microsoft .NET PlatformMicrosoft .NET Platform
Microsoft .NET Platform
Peter R. Egli
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net FundamentalsAli Taki
 
01. introduction to-programming
01. introduction to-programming01. introduction to-programming
01. introduction to-programming
Stoian Kirov
 
.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund
Karel Zikmund
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
voltaincx
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
Rakesh Joshi
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
Rakesh Joshi
 
About .net
About .net About .net
About .net
joeyparkker
 

Similar to Intake 38_1 (20)

.Net Migration
.Net Migration .Net Migration
.Net Migration
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
 
Srgoc dotnet_new
Srgoc dotnet_newSrgoc dotnet_new
Srgoc dotnet_new
 
1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net Framework
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
 
Lecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net frameworkLecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net framework
 
01 Introduction to programming
01 Introduction to programming01 Introduction to programming
01 Introduction to programming
 
.Net framework
.Net framework.Net framework
.Net framework
 
Microsoft .NET Platform
Microsoft .NET PlatformMicrosoft .NET Platform
Microsoft .NET Platform
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
 
Part i
Part iPart i
Part i
 
01. introduction to-programming
01. introduction to-programming01. introduction to-programming
01. introduction to-programming
 
.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Prague 2017 - .NET Standard -- Karel Zikmund
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Crack mcts.com
Crack mcts.comCrack mcts.com
Crack mcts.com
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
About .net
About .net About .net
About .net
 

More from Mahmoud Ouf

Relation between classes in arabic
Relation between classes in arabicRelation between classes in arabic
Relation between classes in arabic
Mahmoud Ouf
 
Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4
Mahmoud Ouf
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1
Mahmoud Ouf
 
Intake 38 11
Intake 38 11Intake 38 11
Intake 38 11
Mahmoud Ouf
 
Intake 38 10
Intake 38 10Intake 38 10
Intake 38 10
Mahmoud Ouf
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
Mahmoud Ouf
 
Intake 38 8
Intake 38 8Intake 38 8
Intake 38 8
Mahmoud Ouf
 
Intake 37 DM
Intake 37 DMIntake 37 DM
Intake 37 DM
Mahmoud Ouf
 
Intake 37 ef2
Intake 37 ef2Intake 37 ef2
Intake 37 ef2
Mahmoud Ouf
 
Intake 37 ef1
Intake 37 ef1Intake 37 ef1
Intake 37 ef1
Mahmoud Ouf
 
Intake 37 linq3
Intake 37 linq3Intake 37 linq3
Intake 37 linq3
Mahmoud Ouf
 
Intake 37 linq2
Intake 37 linq2Intake 37 linq2
Intake 37 linq2
Mahmoud Ouf
 
Intake 37 linq1
Intake 37 linq1Intake 37 linq1
Intake 37 linq1
Mahmoud Ouf
 
Intake 37 12
Intake 37 12Intake 37 12
Intake 37 12
Mahmoud Ouf
 
Intake 37 11
Intake 37 11Intake 37 11
Intake 37 11
Mahmoud Ouf
 
Intake 37 10
Intake 37 10Intake 37 10
Intake 37 10
Mahmoud Ouf
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
Mahmoud Ouf
 
Intake 37 8
Intake 37 8Intake 37 8
Intake 37 8
Mahmoud Ouf
 

More from Mahmoud Ouf (18)

Relation between classes in arabic
Relation between classes in arabicRelation between classes in arabic
Relation between classes in arabic
 
Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1
 
Intake 38 11
Intake 38 11Intake 38 11
Intake 38 11
 
Intake 38 10
Intake 38 10Intake 38 10
Intake 38 10
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
 
Intake 38 8
Intake 38 8Intake 38 8
Intake 38 8
 
Intake 37 DM
Intake 37 DMIntake 37 DM
Intake 37 DM
 
Intake 37 ef2
Intake 37 ef2Intake 37 ef2
Intake 37 ef2
 
Intake 37 ef1
Intake 37 ef1Intake 37 ef1
Intake 37 ef1
 
Intake 37 linq3
Intake 37 linq3Intake 37 linq3
Intake 37 linq3
 
Intake 37 linq2
Intake 37 linq2Intake 37 linq2
Intake 37 linq2
 
Intake 37 linq1
Intake 37 linq1Intake 37 linq1
Intake 37 linq1
 
Intake 37 12
Intake 37 12Intake 37 12
Intake 37 12
 
Intake 37 11
Intake 37 11Intake 37 11
Intake 37 11
 
Intake 37 10
Intake 37 10Intake 37 10
Intake 37 10
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
 
Intake 37 8
Intake 37 8Intake 37 8
Intake 37 8
 

Recently uploaded

Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
datarid22
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 

Recently uploaded (20)

Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 

Intake 38_1

  • 1. Visual C# .Net using framework 4.5 Eng. Mahmoud Ouf Lecture 01 mmouf@2018
  • 2. Introduction to .Net Framework • The development of .Net Framework started the late 1990. • First version was released early 2002. • Through the 15 years it passes 8 upgrades • Some of these upgrades was released with new version of Visual Studio.Net. mmouf@2018
  • 3. Introduction to .Net Framework Framework version Release date Development tool 1.0 13/02/2002 Visual Studio .Net 2002 1.1 24/04/2003 Visual Studio .Net 2003 2.0 07/11/2005 Visual Studio .Net 2005 3.0 06/11/2006 Visual Studio .Net 2005 3.5 19/11/2007 Visual Studio .Net 2008 4.0 12/04/2010 Visual Studio .Net 2010 4.5 15/08/2012 Visual Studio .Net 2012 4.6 20/07/2015 Visual Studio .Net 2015 mmouf@2018
  • 4. Overview of .Net Framework Common Language Runtime (CLR) Framework Class Library (FCL) WinForm ASP.NET ADO.NET 2.0 WPF WCF WF InfoCard LINQ Entity Framework Parallel LINQ Task Parallel Library .Net APIs for store/uwp Task based Async model 3.0 3.5 4.0 4.5 mmouf@2018
  • 5. Common Language Runtime (CLR) Class Loader MSIL to native compiler Code manager Garbage collector Security Engine Debug Engine Type Checker Exception Manager Thread support COM Marshaler Base Class Library (BCL) support mmouf@2018
  • 6. From source code to executable C# Code VB.Net Code Managed C++ Code C# Compiler VB.Net Compiler Managed C++ Compiler MSIL, CIL (IL) PE file (dll, exe) mmouf@2018
  • 7. .Net Framework 1.1 1. Built in support for mobile ASP.Net controls 2. Enables Code Access Security in ASP.Net application 3. Built-in support for ODBC and Oracle Database 4. .Net Compact Framework 5. Support Internet Protocol version 6 (IPv6) mmouf@2018
  • 8. .Net Framework 2.0 1. Full 64-bit support 2. Numerous API changes 3. Microsoft SQL Server integration 4. Additional and improved ASP.Net web controls 5. New personalization features for ASP.Net 6. Partial classes 7. Nullable types 8. Anonymous methods mmouf@2018
  • 9. .Net Framework 3.0 1. Windows Presentation Foundation (WPF) 2. Windows Communication Foundation (WCF) 3. Windows Workflow Foundation (WF) 4. Windows CardSpace mmouf@2018
  • 10. .Net Framework 4.0 1. Parallel Extension to improve support of parallel programming 2. New Visual basic and C# features 3. Include new types 4. Introduced Common Language Runtime (CLR) 4.0 mmouf@2018
  • 11. .Net Framework 4.5 1. .Net for Metro Style apps 2. Managed Extensibility Framework (MEF) 3. Core Features 4. ASP .Net 5. Networking mmouf@2018
  • 12. .Net Framework 4.6 1. Just In Time (jit) compiler for 64 bit system 2. WPF and Windows Forms both have been updated for high DPI scenarios 3. Support for TLS 1.1 and TLS 1.2 has been added to WCF ASP .Net 4. The cryptographic API in .NET Framework 4.6 uses the latest version of Windows CNG cryptography API. mmouf@2018
  • 13. Structure of C# program • In C#, an application is a collection of one or more classes. • The classes for a C# application can be written in more than one file and multiple classes can be put in one file. One class could be written in multiple files (partial class). class HelloWorld { public static void Main() { System.Console.WriteLine(“Hello, World”); } } mmouf@2018
  • 14. Structure of C# program (cont.) • The entry point to a C# application is the Main() method, which must be: contained in a class, begin with capital M, and public static. • public: modifier tells us that the method is accessible by everyone. • static: means that the method can be called without creating an instance of the class. • The .Net Framework is made up of many namespaces, the most important of which is called System; it contains the classes that most application uses for interacting with the operating System. • We can refer to objects in namespace by: 1.prefixing them explicitly with the identifier of namespace System.Console.WriteLine(“Hello, World”); 2.specifing a namespace by placing a using directive at the beginning of the application before the first class is defined using System mmouf@2018
  • 15. Basic Input / Output operation •Output: Use the following 2 methods for output: Console.Write() Console.WriteLine() The difference is that WriteLine() append a new line/carriage return to the end of the output. To print a constant value: Console.WriteLine(99); Console.WriteLine(“Hello, World”); To print a variable value: int x = 99; Console.WriteLine(x); To print a combination from variable and constant value: Console.WriteLine(“The Sum of {0} and {1} is {2}”, x, x, x+x); mmouf@2018
  • 16. Basic Input / Output operation •Output (Formatting Numerical Data): String Format Character C or c Used to format currency D or d Used to format decimal numbers, it may specify minimum number of digit E or e Used for exponential notation F or f Used for fixed point formatting, it may specify minimum number of digit N or n Used for basic numerical formatting (with commas) X or x Used for hexadecimal formatting mmouf@2018
  • 17. Basic Input / Output operation •Output (Formatting Numerical Data): Example: static void Main() { Console.WriteLine("The value 99999 in various formats:"); Console.WriteLine("c format: {0:c}", 99999); Console.WriteLine("d9 format: {0:d9}", 99999); Console.WriteLine("f3 format: {0:f3}", 99999); Console.WriteLine("n format: {0:n}", 99999); Console.WriteLine("E format: {0:E}", 99999); Console.WriteLine("e format: {0:e}", 99999); Console.WriteLine("X format: {0:X}", 99999); Console.WriteLine("x format: {0:x}", 99999); } mmouf@2018
  • 18. Basic Input / Output operation •Input: Use the following 2 methods for iutput: Console.Read(), which read single character and return its ASCII Console.ReadLine(), which read a string string input = Console.ReadLine(); To read an integer, use the Parse: string s = Console.ReadLine(); int n = int.Parse(s); mmouf@2018