SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
Visual C# .Net using
framework 4.5
Eng. Mahmoud Ouf
Lecture 01
mmouf@2017
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@2017
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@2017
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@2017
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@2017
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@2017
.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@2017
.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@2017
.Net Framework 3.0
1. Windows Presentation Foundation (WPF)
2. Windows Communication Foundation (WCF)
3. Windows Workflow Foundation (WF)
4. Windows CardSpace
mmouf@2017
.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@2017
.Net Framework 4.5
1. .Net for Metro Style apps
2. Managed Extensibility Framework (MEF)
3. Core Features
4. ASP .Net
5. Networking
mmouf@2017
.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@2017
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@2017
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@2017
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@2017
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@2017

Mais conteúdo relacionado

Mais procurados

Differences between method overloading and method overriding
Differences between method overloading and method overridingDifferences between method overloading and method overriding
Differences between method overloading and method overridingPinky Anaya
 
03 oo with-c-sharp
03 oo with-c-sharp03 oo with-c-sharp
03 oo with-c-sharpNaved khan
 
OOPS With CSharp - Jinal Desai .NET
OOPS With CSharp - Jinal Desai .NETOOPS With CSharp - Jinal Desai .NET
OOPS With CSharp - Jinal Desai .NETjinaldesailive
 
2CPP08 - Overloading and Overriding
2CPP08 - Overloading and Overriding2CPP08 - Overloading and Overriding
2CPP08 - Overloading and OverridingMichael Heron
 
Chapter 5:Understanding Variable Scope and Class Construction
Chapter 5:Understanding Variable Scope and Class ConstructionChapter 5:Understanding Variable Scope and Class Construction
Chapter 5:Understanding Variable Scope and Class ConstructionIt Academy
 
Classes, Objects and Method - Object Oriented Programming with Java
Classes, Objects and Method - Object Oriented Programming with JavaClasses, Objects and Method - Object Oriented Programming with Java
Classes, Objects and Method - Object Oriented Programming with JavaRadhika Talaviya
 
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية  بلغة جافا - مصفوفة الكائناتالبرمجة الهدفية  بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية بلغة جافا - مصفوفة الكائناتMahmoud Alfarra
 
vb.net Constructor and destructor
vb.net Constructor and destructorvb.net Constructor and destructor
vb.net Constructor and destructorsuraj pandey
 

Mais procurados (20)

Intake 38 4
Intake 38 4Intake 38 4
Intake 38 4
 
Intake 37 ef2
Intake 37 ef2Intake 37 ef2
Intake 37 ef2
 
Method overloading and constructor overloading in java
Method overloading and constructor overloading in javaMethod overloading and constructor overloading in java
Method overloading and constructor overloading in java
 
Differences between method overloading and method overriding
Differences between method overloading and method overridingDifferences between method overloading and method overriding
Differences between method overloading and method overriding
 
Intake 37 linq2
Intake 37 linq2Intake 37 linq2
Intake 37 linq2
 
Intake 37 ef1
Intake 37 ef1Intake 37 ef1
Intake 37 ef1
 
03 oo with-c-sharp
03 oo with-c-sharp03 oo with-c-sharp
03 oo with-c-sharp
 
OOPS With CSharp - Jinal Desai .NET
OOPS With CSharp - Jinal Desai .NETOOPS With CSharp - Jinal Desai .NET
OOPS With CSharp - Jinal Desai .NET
 
2CPP08 - Overloading and Overriding
2CPP08 - Overloading and Overriding2CPP08 - Overloading and Overriding
2CPP08 - Overloading and Overriding
 
Intake 37 linq1
Intake 37 linq1Intake 37 linq1
Intake 37 linq1
 
Constructors destructors
Constructors destructorsConstructors destructors
Constructors destructors
 
Chapter 5:Understanding Variable Scope and Class Construction
Chapter 5:Understanding Variable Scope and Class ConstructionChapter 5:Understanding Variable Scope and Class Construction
Chapter 5:Understanding Variable Scope and Class Construction
 
Classes, Objects and Method - Object Oriented Programming with Java
Classes, Objects and Method - Object Oriented Programming with JavaClasses, Objects and Method - Object Oriented Programming with Java
Classes, Objects and Method - Object Oriented Programming with Java
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
Method overloading
Method overloadingMethod overloading
Method overloading
 
Inheritance
InheritanceInheritance
Inheritance
 
Constructors and Destructors
Constructors and DestructorsConstructors and Destructors
Constructors and Destructors
 
11. java methods
11. java methods11. java methods
11. java methods
 
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية  بلغة جافا - مصفوفة الكائناتالبرمجة الهدفية  بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
 
vb.net Constructor and destructor
vb.net Constructor and destructorvb.net Constructor and destructor
vb.net Constructor and destructor
 

Destaque

PRDC12 advanced design patterns
PRDC12 advanced design patternsPRDC12 advanced design patterns
PRDC12 advanced design patternsAmir Barylko
 
Intermediate Level Apprenticeship in Customer Service in the Business Skills ...
Intermediate Level Apprenticeship in Customer Service in the Business Skills ...Intermediate Level Apprenticeship in Customer Service in the Business Skills ...
Intermediate Level Apprenticeship in Customer Service in the Business Skills ...Anthony Fowler
 
Tidal Audio Middle East Impressions Book Middle East and Africa
Tidal Audio Middle East Impressions Book Middle East and AfricaTidal Audio Middle East Impressions Book Middle East and Africa
Tidal Audio Middle East Impressions Book Middle East and AfricaDr. Marcus Schumacher
 
Of Forgiveness and Gratitude
Of Forgiveness and GratitudeOf Forgiveness and Gratitude
Of Forgiveness and GratitudeOH TEIK BIN
 
Film Poster and Review & Target Audience
Film Poster and Review & Target AudienceFilm Poster and Review & Target Audience
Film Poster and Review & Target AudienceEmmaBuckleyASMedia
 
Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...
Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...
Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...270479
 
Schizotypal personality disorder and its psychodynamic perspective
Schizotypal personality disorder and its psychodynamic perspectiveSchizotypal personality disorder and its psychodynamic perspective
Schizotypal personality disorder and its psychodynamic perspectivesarah rashid
 
Operations Strategy for Industry: A Case Study
Operations Strategy for Industry: A Case StudyOperations Strategy for Industry: A Case Study
Operations Strategy for Industry: A Case StudyAyat A. Saleh
 

Destaque (14)

Intake 37 linq3
Intake 37 linq3Intake 37 linq3
Intake 37 linq3
 
PRDC12 advanced design patterns
PRDC12 advanced design patternsPRDC12 advanced design patterns
PRDC12 advanced design patterns
 
Intermediate Level Apprenticeship in Customer Service in the Business Skills ...
Intermediate Level Apprenticeship in Customer Service in the Business Skills ...Intermediate Level Apprenticeship in Customer Service in the Business Skills ...
Intermediate Level Apprenticeship in Customer Service in the Business Skills ...
 
Ma,cv,fn 2017-febrero-cn-es-w
Ma,cv,fn 2017-febrero-cn-es-wMa,cv,fn 2017-febrero-cn-es-w
Ma,cv,fn 2017-febrero-cn-es-w
 
Convivencia1
Convivencia1Convivencia1
Convivencia1
 
Tidal Audio Middle East Impressions Book Middle East and Africa
Tidal Audio Middle East Impressions Book Middle East and AfricaTidal Audio Middle East Impressions Book Middle East and Africa
Tidal Audio Middle East Impressions Book Middle East and Africa
 
Of Forgiveness and Gratitude
Of Forgiveness and GratitudeOf Forgiveness and Gratitude
Of Forgiveness and Gratitude
 
Film Poster and Review & Target Audience
Film Poster and Review & Target AudienceFilm Poster and Review & Target Audience
Film Poster and Review & Target Audience
 
Intake 37 8
Intake 37 8Intake 37 8
Intake 37 8
 
CLASE 20
CLASE 20CLASE 20
CLASE 20
 
1.taldea
1.taldea1.taldea
1.taldea
 
Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...
Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...
Сценарій свята до дня народження Т.Г. Шевченка «Т.Г. Шевченко – великий син у...
 
Schizotypal personality disorder and its psychodynamic perspective
Schizotypal personality disorder and its psychodynamic perspectiveSchizotypal personality disorder and its psychodynamic perspective
Schizotypal personality disorder and its psychodynamic perspective
 
Operations Strategy for Industry: A Case Study
Operations Strategy for Industry: A Case StudyOperations Strategy for Industry: A Case Study
Operations Strategy for Industry: A Case Study
 

Semelhante a Intake 37 1

1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)Shoaib Ghachi
 
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel ZikmundKarel Zikmund
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net FrameworkNeha Singh
 
.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 ZikmundKarel Zikmund
 
.Net the begining
.Net the begining.Net the begining
.Net the beginingcncwebworld
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp EnGregory Renard
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version Historyvoltaincx
 
.Net platform .Net core fundamentals
.Net platform .Net core  fundamentals.Net platform .Net core  fundamentals
.Net platform .Net core fundamentalsHosein Mansouri
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.netJaya Kumari
 
Raffaele Rialdi
Raffaele RialdiRaffaele Rialdi
Raffaele RialdiCodeFest
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentationdimuthu22
 
ASP.NET Core: The best of the new bits
ASP.NET Core: The best of the new bitsASP.NET Core: The best of the new bits
ASP.NET Core: The best of the new bitsKen Cenerelli
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net FundamentalsAli Taki
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechPooja Gaikwad
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworksonia merchant
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions9292929292
 

Semelhante a Intake 37 1 (20)

.Net Migration
.Net Migration .Net Migration
.Net Migration
 
1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)
 
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net Framework
 
.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
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
 
.Net platform .Net core fundamentals
.Net platform .Net core  fundamentals.Net platform .Net core  fundamentals
.Net platform .Net core fundamentals
 
Crack mcts.com
Crack mcts.comCrack mcts.com
Crack mcts.com
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
Raffaele Rialdi
Raffaele RialdiRaffaele Rialdi
Raffaele Rialdi
 
Net framework
Net frameworkNet framework
Net framework
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
ASP.NET Core: The best of the new bits
ASP.NET Core: The best of the new bitsASP.NET Core: The best of the new bits
ASP.NET Core: The best of the new bits
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-framework
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions
 

Mais de Mahmoud Ouf

Mais de 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 5
Intake 38 data access 5Intake 38 data access 5
Intake 38 data access 5
 
Intake 38 data access 4
Intake 38 data access 4Intake 38 data access 4
Intake 38 data access 4
 
Intake 38 data access 3
Intake 38 data access 3Intake 38 data access 3
Intake 38 data access 3
 
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 38 7
Intake 38 7Intake 38 7
Intake 38 7
 
Intake 38 6
Intake 38 6Intake 38 6
Intake 38 6
 
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 DM
Intake 37 DMIntake 37 DM
Intake 37 DM
 
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
 

Último

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Intake 37 1

  • 1. Visual C# .Net using framework 4.5 Eng. Mahmoud Ouf Lecture 01 mmouf@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 9. .Net Framework 3.0 1. Windows Presentation Foundation (WPF) 2. Windows Communication Foundation (WCF) 3. Windows Workflow Foundation (WF) 4. Windows CardSpace mmouf@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 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@2017
  • 16. 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@2017