






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 11
This page cannot be seen from the preview
Don't miss anything!







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
19
§ Thus, MSIL allows the .NET Framework to be language independent. 20
CSC 310 Object Oriented Programming
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