C# Programming in easy steps, 3rd edition
eBook - ePub

C# Programming in easy steps, 3rd edition

  1. 186 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

C# Programming in easy steps, 3rd edition

About this book

Learn C# language basics, including variables, arrays, logic, looping, methods, and classes, and then move on to Object Oriented Programming – all in easy steps! Modern coding with C# 10 and .NET 6. Updated for Visual Studio 2022

C# Programming in easy steps, 3rd edition teaches you how to code applications and demonstrates every aspect of the C# language you will need to produce professional programming results. Its examples provide clear syntax-highlighted code showing C# language basics including variables, arrays, logic, looping, methods, and classes.

The book begins by explaining how to install the free Visual Studio Community Edition, to create an environment in which you can quickly begin to create your own executable programs by copying the book's examples. It demonstrates all the C# language basics before moving on to provide examples of Object Oriented Programming. It concludes by demonstrating how you can use your acquired knowledge to create graphic programs for traditional PC Desktop apps, and also as Universal apps for multiple devices.

You need have no previous knowledge of any programming language, so it's ideal for the newcomer to computer programming.

Also ideal for:

  • Programmers moving from another programming language.
  • Students who are studying C# programming at school or college.
  • Those seeking a career in computing who need a fundamental understanding of procedural programming.
  • Free, downloadable sample code is available to download from our website for checking against your own work.

    Trusted by 375,005 students

    Access to over 1.5 million titles for a fair monthly price.

    Study more efficiently using our study tools.

    Information

    1
    Getting started
    Welcome to the exciting world of C# programming. This chapter introduces the Visual Studio Integrated Development Environment and shows you how to create a real Windows application.
    Introducing C#
    Installing Visual Studio
    Exploring the IDE
    Starting a Console project
    Running a Console project
    Following the rules
    Summary
    Introducing C#
    The introduction of the Microsoft .NET framework at the Professional Developers Conference in July 2000 also saw Microsoft introduce a new programming language called C# (pronounced “see-sharp”). The name was inspired by musical notation where a # sharp symbol indicates that a written note should be a semitone higher in pitch. This notion is similar to the naming of the C++ programming language where the ++ symbol indicates that a written value should be incremented by 1.
    image
    C# is designed to be a simple, modern, general-purpose, object-oriented programming language, borrowing key concepts from several other languages – most notably the Java programming language. Consequently, everything in C# is a class “object” with “properties” and “methods” that can be employed by a program.
    C# is an elegant and “type-safe” programming language that enables developers to build a variety of secure and robust applications. You can use C# to create Windows client applications, XML web services, distributed components, client-server applications, database applications, and much, much more.
    C# is specifically designed to utilize the proven functionality built into the .NET framework “class libraries”. Windows applications written in C# therefore require the Microsoft .NET framework to be installed on the computer running the application – typically, an integral component of the system.
    The Microsoft .NET Framework
    Each version of the Microsoft .NET framework includes a unified set of class libraries and a virtual execution system called the Common Language Runtime (CLR). The CLR allows the C# language and the class libraries to work together seamlessly.
    image
    To create an executable program, source code written in the C# language is compiled by the C# Compiler into Intermediate Language (IL) code. This is stored on disk, together with other program resources such as images, in an “assembly”. Typically, the assembly will have a file extension of .ex...

    Table of contents

    1. Cover
    2. Title
    3. Copyright
    4. Contents
    5. 1 Getting started
    6. 2 Storing values
    7. 3 Performing operations
    8. 4 Making statements
    9. 5 Devising methods
    10. 6 Handling strings
    11. 7 Accessing files
    12. 8 Solving problems
    13. 9 Creating objects
    14. 10 Controlling events
    15. 11 Building an application
    16. 12 Targeting devices
    17. Back Cover

    Frequently asked questions

    Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
    No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
    Perlego offers two plans: Essential and Complete
    • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
    • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
    Both plans are available with monthly, semester, or annual billing cycles.
    We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
    Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
    Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
    Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
    Yes, you can access C# Programming in easy steps, 3rd edition by Mike McGrath in PDF and/or ePUB format, as well as other popular books in Computer Science & Object Oriented Programming. We have over 1.5 million books available in our catalogue for you to explore.