SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Introduction to .NET
Eng. Mohamed Ebrahim Atia
Intro …






In this course, I will provide you with the tools you need to start
building applications with .NET.
By starting with popular hello world application we will start
with language fundamentals.
We will investigate the .net frame work , and learning the
working with object and object oriented techniques ..

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Intro …







.NET Framework provide number of classes, we will
investigate number of them
We will focus on data structure and a lot of .NET features.
I will give you the a ability to write code more flexible,
handling exceptions, and use delegates and events.
When you done you will build your windows and web
applications.

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
So lets get start

”The Big day has finally come“

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
:Module I


Introduction to .NET framework



Introduction to Visual Studio



Debugging

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
…Details.…





We will look what is the .NET
Why we learning it
The history of .NET Framework
That’s all important to understand before start and building
your application

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
?What is the .NET,anyway




1991: windows sits on the top of “DOS”
Widows app require windows environment to be run.
Windows app provide API ( application programming interface)
for communication with devices , drivers and so on .
2001:.NET runtime sits on the top of “Windows”
.NET app require .NET runtime environment to be run.
.NET provide API for working with windows, data types, and
more.
.NET runtime it is like windows over windows
.NET provide environment the handling data types, memory
managements, APIs, and much more

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
?What is the .NET, anyway
We will work with .NET framework 2.0 : it is the third version of the
brains behind platform (1.0-1.1-2.0)
 It is object oriented programming environment.
 Can create command-line apps ,web application using the tools which
provided by the .NET framework.
.NET is open
 You can program in many different languages
 Can use different tools .
 Not limited to VB / C#
 .NET SDK ( software development kit ) is download free
• So you don't need to buy visual studio, and can use commandline but visual studio is more productive
• When you setup the visual studio it setup automatic .NET SDK.
Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
?Why .NET




Before .NET, software development required mastery of
multiply techniques
 Mainly stitched together various programming tools.
For example
 Web sits ? Require VB scripts or J scripts and html.
 Database apps ? Require SQL / SQL server
 Business app ? Require VB
 Office applications ? Require VBA scripts
 Streamlined Graphics ? Require C++

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Advantage of .NET


.NET provide
 Object-oriented view of windows
• .NET framework encapsulate a lot of functionality into classes
 Application security is built-in
• no need to build your own authentication or authorization tools
 Deploying applications is easier
• Units of deploying are now in containers called assembles so you can
deploying them without need to install any other extensions to use it
 Versioning issues largely handled without effort
 Assemblies can be digitally signed
• So you can know who deploying them to be able to trust this assembles
 All .NET languages are interoperable
• That’s mean you can write apiece of code in c# and other in VB or
any .NET language you want
• So it lead us to the concepts of .NET frame work architecture

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Common Language Runtime





Common language runtime ( CLR ) provides runtime
environment for all .NET applications.
CLR’s purpose is to load and run applications
compiled to intermediate language ( IL ).
 Each .NET compiler create IL as it’s output.
CLR manage .NET base services:
 Memory managements
 Garbage collection
 Exception handling
 Loading/running applications
Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
CLR and Running Code


CLR allow you to run managed and unmanaged code
 Unmanaged code run out side CLR
• As programming before .NET like C++ and VB6 they
compile without .NET
 Managed code run “ within “ CLR , and benefits of all CLR
features

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
CLR and Compilers




.NET compilers create .NET intermediate language (MSIL) as
output
At execution time , just-in-time (JIT) Compiler convert code to
native executable
 Native code : respond to native object file which produce for
each CPU architecture and linked for producing executable
file

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
More about JIT






JIT compiler take native processor into account
 Create code optimized for the local environment .
 Make decision how to optimize code at runtime
 Which mean you can create the code on Pentium 3
processor, And compile it on Pentium 4 Processor the
compiling files will be change for the corresponding
processor architecture to be better.
Only need to compile application once
 Compiled bits are cached once.
 Performance overhead is very slight
Remember :
 .NET runtime / CLR must be installed on client computers in
order to run .NET code
Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
NET framework base class library.






BCL consists of classes that provide base functionality for .NET framework
 And many classes which make your life as developer easier
 Library of class used by all .NET application
 If you want to be more experience developer you must know which
classes in the base class library which will make your development
easier through the .NET documentations
Contains a large number of classes (it can be described as blocks of
functionality, have properties which describe the class , methods are the
operations which class do, events which can call notifications) grouped in
namespaces
 Each class within the namespace has a unique name
BCL’s namespaces group classes into common blocks of functionality
 All classes work with files in namespace
 All classes work xml in namespace

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Some BCL namespaces










System
 Define data types, Memory management, garbage collection,
and a lot…
System.Data
 . Is represent the hierarchal representation of namespaces
 Define the data as SQL server, OLDB , OLDC ,and a lot …
System.Diagnostic
 Define the trace operation , performance recording , and a lot ..
System.IO
System.Web
System.Windows.Forms

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
NET languages.






Microsoft provide several .NET languages:
 VB, C# , C++ ,and Jscript
 Other vendor provide other languages
• Python, Fortran , Cobol, and many more
How do languages interoperate?
 .NET provide :
• Common language specification ( CLS ) : describe how
.NET language should work.
• Common Type systems ( CTS ): describe how data types
should work together
In the end all .NET language compile to IL

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Examining a .NET application :
Introducing assemblies



When you compile managed code your create assembly
Theoretically assembly can contain multiply modules
 VS only supports creating single module assemblies
 Output looks like EXE or DLL
 Actually contains compiled IL, and information about the
assembly which called Metadata which also contains
manifest and other assembles it requires

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
?What is in the manifest






Version, name , and security requirement.
List of files in assembly and cryptographic hash for each file
List of public types
List of external required references
We use the ILDASM.EXE (intermediate language disassembly)
where come with .NET framework to examine the content of
assembly file

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
?What can you create



.NET allow you to create a large range of
applications
VS includes templates for ( among other ):
 Windows application
 Console application
 Web application
 Class library
 Windows control library
 Web control library
Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
Let’s try








1- cmd -> csc
2- vs cmd ->csc
3-notepad ->helloworld->compil and run
4-comments and dividing code
5- namespace
6-ildasm -> manifest
7-ildasm -> code

Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca
The End of Part I
Eng. Mohamed Atia

Eng.Mohamed@hotmail.ca

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET ProgrammingKarthikeyan Mkr
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET FrameworkKamlesh Makvana
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET FrameworkRoshith S Pai
 
.Net framework
.Net framework.Net framework
.Net frameworkArun Pal
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technologyPramod Rathore
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkAshish Verma
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version Historyvoltaincx
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .netFelisha Hosein
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)citizenmatt
 
Introduction to VB.net
Introduction to VB.netIntroduction to VB.net
Introduction to VB.netYousaf Sahota
 

Was ist angesagt? (20)

Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET Programming
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
.Net framework
.Net framework.Net framework
.Net framework
 
C#.NET
C#.NETC#.NET
C#.NET
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technology
 
Tutorial c#
Tutorial c#Tutorial c#
Tutorial c#
 
.Net framework
.Net framework.Net framework
.Net framework
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
Csharp
CsharpCsharp
Csharp
 
.Net Overview
.Net Overview.Net Overview
.Net Overview
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
 
Introduction to .net
Introduction to .netIntroduction to .net
Introduction to .net
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
 
Introduction of .net framework
Introduction of .net frameworkIntroduction of .net framework
Introduction of .net framework
 
.net framework
.net framework.net framework
.net framework
 
Introduction to VB.net
Introduction to VB.netIntroduction to VB.net
Introduction to VB.net
 

Ähnlich wie Part i

Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUjwala Junghare
 
.Net framework
.Net framework.Net framework
.Net frameworkRaghu nath
 
.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra SolutionsQUONTRASOLUTIONS
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkInstantenigma
 
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 iRakesh 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 iRakesh Joshi
 
1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)Shoaib Ghachi
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions9292929292
 
Dotnet Basics Presentation
Dotnet Basics PresentationDotnet Basics Presentation
Dotnet Basics PresentationSudhakar Sharma
 
Net framework
Net frameworkNet framework
Net frameworkjhsri
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworksnawal saad
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notesWE-IT TUTORIALS
 
dot net technology
dot net technologydot net technology
dot net technologyImran Khan
 
Introduction to .net
Introduction to .net Introduction to .net
Introduction to .net Jaya Kumari
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qaabcxyzqaz
 

Ähnlich wie Part i (20)

Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdf
 
The Seven Pillars Of Asp.Net
The Seven Pillars Of Asp.NetThe Seven Pillars Of Asp.Net
The Seven Pillars Of Asp.Net
 
.Net framework
.Net framework.Net framework
.Net framework
 
Programming
Programming Programming
Programming
 
Dot net
Dot netDot net
Dot net
 
.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
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
 
1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
 
Dotnet Basics Presentation
Dotnet Basics PresentationDotnet Basics Presentation
Dotnet Basics Presentation
 
Net framework
Net frameworkNet framework
Net framework
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworks
 
Chapter1
Chapter1Chapter1
Chapter1
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
dot net technology
dot net technologydot net technology
dot net technology
 
Introduction to .net
Introduction to .net Introduction to .net
Introduction to .net
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
 

Kürzlich hochgeladen

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Kürzlich hochgeladen (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

Part i

  • 1. Introduction to .NET Eng. Mohamed Ebrahim Atia
  • 2. Intro …    In this course, I will provide you with the tools you need to start building applications with .NET. By starting with popular hello world application we will start with language fundamentals. We will investigate the .net frame work , and learning the working with object and object oriented techniques .. Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 3. Intro …     .NET Framework provide number of classes, we will investigate number of them We will focus on data structure and a lot of .NET features. I will give you the a ability to write code more flexible, handling exceptions, and use delegates and events. When you done you will build your windows and web applications. Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 4. So lets get start ”The Big day has finally come“ Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 5. :Module I  Introduction to .NET framework  Introduction to Visual Studio  Debugging Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 6. …Details.…     We will look what is the .NET Why we learning it The history of .NET Framework That’s all important to understand before start and building your application Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 7. ?What is the .NET,anyway   1991: windows sits on the top of “DOS” Widows app require windows environment to be run. Windows app provide API ( application programming interface) for communication with devices , drivers and so on . 2001:.NET runtime sits on the top of “Windows” .NET app require .NET runtime environment to be run. .NET provide API for working with windows, data types, and more. .NET runtime it is like windows over windows .NET provide environment the handling data types, memory managements, APIs, and much more Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 8. ?What is the .NET, anyway We will work with .NET framework 2.0 : it is the third version of the brains behind platform (1.0-1.1-2.0)  It is object oriented programming environment.  Can create command-line apps ,web application using the tools which provided by the .NET framework. .NET is open  You can program in many different languages  Can use different tools .  Not limited to VB / C#  .NET SDK ( software development kit ) is download free • So you don't need to buy visual studio, and can use commandline but visual studio is more productive • When you setup the visual studio it setup automatic .NET SDK. Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 9. ?Why .NET   Before .NET, software development required mastery of multiply techniques  Mainly stitched together various programming tools. For example  Web sits ? Require VB scripts or J scripts and html.  Database apps ? Require SQL / SQL server  Business app ? Require VB  Office applications ? Require VBA scripts  Streamlined Graphics ? Require C++ Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 10. Advantage of .NET  .NET provide  Object-oriented view of windows • .NET framework encapsulate a lot of functionality into classes  Application security is built-in • no need to build your own authentication or authorization tools  Deploying applications is easier • Units of deploying are now in containers called assembles so you can deploying them without need to install any other extensions to use it  Versioning issues largely handled without effort  Assemblies can be digitally signed • So you can know who deploying them to be able to trust this assembles  All .NET languages are interoperable • That’s mean you can write apiece of code in c# and other in VB or any .NET language you want • So it lead us to the concepts of .NET frame work architecture Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 12. Common Language Runtime    Common language runtime ( CLR ) provides runtime environment for all .NET applications. CLR’s purpose is to load and run applications compiled to intermediate language ( IL ).  Each .NET compiler create IL as it’s output. CLR manage .NET base services:  Memory managements  Garbage collection  Exception handling  Loading/running applications Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 13. CLR and Running Code  CLR allow you to run managed and unmanaged code  Unmanaged code run out side CLR • As programming before .NET like C++ and VB6 they compile without .NET  Managed code run “ within “ CLR , and benefits of all CLR features Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 14. CLR and Compilers   .NET compilers create .NET intermediate language (MSIL) as output At execution time , just-in-time (JIT) Compiler convert code to native executable  Native code : respond to native object file which produce for each CPU architecture and linked for producing executable file Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 15. More about JIT    JIT compiler take native processor into account  Create code optimized for the local environment .  Make decision how to optimize code at runtime  Which mean you can create the code on Pentium 3 processor, And compile it on Pentium 4 Processor the compiling files will be change for the corresponding processor architecture to be better. Only need to compile application once  Compiled bits are cached once.  Performance overhead is very slight Remember :  .NET runtime / CLR must be installed on client computers in order to run .NET code Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 16. NET framework base class library.    BCL consists of classes that provide base functionality for .NET framework  And many classes which make your life as developer easier  Library of class used by all .NET application  If you want to be more experience developer you must know which classes in the base class library which will make your development easier through the .NET documentations Contains a large number of classes (it can be described as blocks of functionality, have properties which describe the class , methods are the operations which class do, events which can call notifications) grouped in namespaces  Each class within the namespace has a unique name BCL’s namespaces group classes into common blocks of functionality  All classes work with files in namespace  All classes work xml in namespace Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 17. Some BCL namespaces       System  Define data types, Memory management, garbage collection, and a lot… System.Data  . Is represent the hierarchal representation of namespaces  Define the data as SQL server, OLDB , OLDC ,and a lot … System.Diagnostic  Define the trace operation , performance recording , and a lot .. System.IO System.Web System.Windows.Forms Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 18. NET languages.    Microsoft provide several .NET languages:  VB, C# , C++ ,and Jscript  Other vendor provide other languages • Python, Fortran , Cobol, and many more How do languages interoperate?  .NET provide : • Common language specification ( CLS ) : describe how .NET language should work. • Common Type systems ( CTS ): describe how data types should work together In the end all .NET language compile to IL Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 19. Examining a .NET application : Introducing assemblies   When you compile managed code your create assembly Theoretically assembly can contain multiply modules  VS only supports creating single module assemblies  Output looks like EXE or DLL  Actually contains compiled IL, and information about the assembly which called Metadata which also contains manifest and other assembles it requires Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 20. ?What is in the manifest      Version, name , and security requirement. List of files in assembly and cryptographic hash for each file List of public types List of external required references We use the ILDASM.EXE (intermediate language disassembly) where come with .NET framework to examine the content of assembly file Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 21. ?What can you create   .NET allow you to create a large range of applications VS includes templates for ( among other ):  Windows application  Console application  Web application  Class library  Windows control library  Web control library Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 22. Let’s try        1- cmd -> csc 2- vs cmd ->csc 3-notepad ->helloworld->compil and run 4-comments and dividing code 5- namespace 6-ildasm -> manifest 7-ildasm -> code Eng. Mohamed Atia Eng.Mohamed@hotmail.ca
  • 23. The End of Part I Eng. Mohamed Atia Eng.Mohamed@hotmail.ca