Introduction to Visual C# Programming: A Comprehensive Overview, Exercises of Computer science

programming and the tips that help you know the language very well to writes codes and make run.This course help you learn many things about c-sharp and visual studio, the app which you can apply c-sharp codes on it.

Typology: Exercises

2019/2020

Uploaded on 04/03/2020

Own_Learner
Own_Learner 🇱🇧

5

(1)

7 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 1 Introduction to Visual C# Al Maaref University
CSC 310 Object Oriented Programming
Imad Moukadem, PhD 1
Chapter(1(of(Visual(C#(How(to(Program,(6/e
2
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Introduction to Visual C# Programming: A Comprehensive Overview and more Exercises Computer science in PDF only on Docsity!

CSC 310 Object Oriented Programming Chapter 1 of Visual C# How to Program, 6/e 2

CSC 310 Object Oriented Programming 3 4

CSC 310 Object Oriented Programming 7 } C# graphical user interfaces (GUIs) are event driven. } You can write programs that respond to user-initiated events such as mouse clicks, keystrokes, timer expirations and touches and finger swipes —gestures that are widely used on smartphones and tablets. 8

CSC 310 Object Oriented Programming } Microsoft’s Visual Studio enables you to use C# as a visual programming language. } You’ll use Visual Studio to conveniently drag and drop predefined GUI objects like buttons and textboxes into place on your screen, and label and resize them. } Visual Studio will write much of the GUI code for you. 9 } Generic Programming } It’s common to write a program that processes a collection of things. } Historically, you had to program separately to handle each type of collection. } With generic programming, you write code that handles a collection “in the general” and C# handles the specifics for each different type of collection. 10

CSC 310 Object Oriented Programming } Though C# was originally developed by Microsoft for the Windows platform, the language can be used on other platforms via the Mono Project and .NET Core —both are managed by the .NET Foundation § http://www.dotnetfoundation.org/ 13 } In 2000, Microsoft announced its .NET initiative (www.microsoft.com/net), a broad vision for using the Internet and the web in the development, engineering, distribution and use of software. } Rather than forcing you to use a single programming language, .NET permits you to create apps in any .NET-compatible language (such as C#, Visual Basic, Visual C++ and others). 14

CSC 310 Object Oriented Programming } The .NET Framework Class Library provides many capabilities that you’ll use to build substantial C# apps quickly and easily. } It contains thousands of valuable prebuilt classes that have been tested and tuned to maximize performance. } You should re-use the .NET Framework classes whenever possible to speed up the software-development process, while enhancing the quality and performance of the software you develop. 15 } The Common Language Runtime (CLR) executes .NET programs and provides functionality to make them easier to develop and debug. } The CLR is a virtual machine ( VM )—software that manages the execution of programs and hides from them the underlying operating system and hardware. } The source code for programs that are executed and managed by the CLR is called managed code. 16

CSC 310 Object Oriented Programming

} If the .NET Framework exists and is installed for a

platform, that platform can run any .NET program.

} The ability of a program to run without modification

across multiple platforms is known as platform

independence.

§ Code written once can be used on another type of

computer without modification, saving time and money.

19

} The .NET Framework provides a high level of language

interoperability.

} Because software components written in different .NET

languages (such as C# and Visual Basic) are all compiled

into MSIL, the components can be combined to create a

single unified program.

§ Thus, MSIL allows the .NET Framework to be language independent. 20

CSC 310 Object Oriented Programming

} The .NET Framework Class Library can be used by

any .NET language. The latest release of .NET

includes .NET 4.6 and .NET Core:

– NET 4.6 introduces many improvements and new

features, including ASP.NET 5 for web-based

applications, improved support for today’s high-

resolution 4K screens and more.

– .NET Core is the cross-platform subset of .NET for

Windows, Linux, OS X and FreeBSD.

21 } C# programs can be created using Microsoft’s Visual Studio—a collection of software tools called an Integrated Development Environment (IDE). } The Visual Studio Community edition IDE enables you to write , run , test and debug C# programs quickly and conveniently. } It also supports Microsoft’s Visual Basic, Visual C++ and F# programming languages and more. 22