Learn Programming Using C#
()
About this ebook
The book is written to give only the skills that you will actually need to make the applications work. Whilst there will be some theory, you will mostly see short descriptions of various concepts and examples for them.
The books consists of several sections:
Basics - you will learn data types, operators and some other useful things.
Logic - you will learn all you need to know about case statements and loops.
Classes and methods - as the name suggests, you will learn how to use classes, methods and components that go with them.
Input/Output - in this section, you will learn to use streams, write to files and more.
Asynchronous programming - finally, you will learn how to improve performance of some tasks, by running them in parallel.
Exercises - Once you are done with everything else, you will get a few exercises to practice what you have learned.In the end of the book, you will find some useful links and advice going forward.
Taurius Litvinavicius
Taurius is a businessman and technology expert who has worked with various technology related and other projects. He currently works on a platform called mashdrop, which as most of his projects this one uses cutting-edge technologies such as Blazor.Taurius is also the director at the Conficiens solutio consulting agency, where he supervises development and maintenance of various projects and activities.
Read more from Taurius Litvinavicius
Blazor and API Example: Classroom Quiz Application Rating: 0 out of 5 stars0 ratingsRealistic Guide To Starting An Online Store Rating: 0 out of 5 stars0 ratingsExploring Windows Presentation Foundation: With Practical Applications in .NET 5 Rating: 0 out of 5 stars0 ratingsExploring Blazor: Creating Hosted, Server-side, and Client-side Applications with C# Rating: 0 out of 5 stars0 ratings
Related to Learn Programming Using C#
Related ebooks
C# Interview Questions, Answers, and Explanations: C Sharp Certification Review Rating: 5 out of 5 stars5/5Advanced C Concepts and Programming: First Edition Rating: 3 out of 5 stars3/5Basic Language Rating: 0 out of 5 stars0 ratingsC in 30 Pages Rating: 5 out of 5 stars5/5C# Programming from Zero to Proficiency (Beginner): C# from Zero to Proficiency, #2 Rating: 0 out of 5 stars0 ratingsC# Programming from Zero to Proficiency (Introduction): C# from Zero to Proficiency, #0 Rating: 0 out of 5 stars0 ratingsThinking In C# Programming. Rating: 0 out of 5 stars0 ratingsC# Programming Illustrated Guide For Beginners & Intermediates: The Future Is Here! Learning By Doing Approach Rating: 0 out of 5 stars0 ratingsPROGRAMMING IN C# 10 - Basic Techniques Rating: 2 out of 5 stars2/5Mastering C# and .NET Framework Rating: 5 out of 5 stars5/5Essential Algorithms: A Practical Approach to Computer Algorithms Using Python and C# Rating: 5 out of 5 stars5/5Functional C# Rating: 5 out of 5 stars5/5OpenGL Game Development By Example Rating: 0 out of 5 stars0 ratingsParallel Programming with C# and .NET Core: Developing Multithreaded Applications Using C# and .NET Core 3.1 from Scratch Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practices to Programming Code with JavaScript: JavaScript Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsC# in Depth Rating: 5 out of 5 stars5/5C# Programming Fundamentals Rating: 0 out of 5 stars0 ratingsThe basic concepts of OOP in C#: Learn conceptually in simple language Rating: 0 out of 5 stars0 ratingsFunctional Programming in C#, Second Edition Rating: 0 out of 5 stars0 ratingsMultithreading in C# 5.0 Cookbook Rating: 0 out of 5 stars0 ratingsLearning C# by Developing Games with Unity 5.x - Second Edition Rating: 5 out of 5 stars5/5C# Programming & Software Development: 6 In 1 Coding Syntax, Expressions, Interfaces, Generics And App Debugging Rating: 0 out of 5 stars0 ratingsLearning Android Game Development Rating: 0 out of 5 stars0 ratingsObject-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications, and libraries Rating: 3 out of 5 stars3/5JavaScript Regular Expressions Rating: 3 out of 5 stars3/5Writing High-Performance .NET Code, 2nd Edition Rating: 5 out of 5 stars5/5C# Programming Cookbook Rating: 0 out of 5 stars0 ratingsFunctional Programming in C#: How to write better C# code Rating: 5 out of 5 stars5/5
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Spies, Lies, and Algorithms: The History and Future of American Intelligence Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5HTML in 30 Pages Rating: 5 out of 5 stars5/5How To Become A Data Scientist With ChatGPT: A Beginner's Guide to ChatGPT-Assisted Programming Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsPython Data Structures and Algorithms Rating: 5 out of 5 stars5/5Raspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5C All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5Unity from Zero to Proficiency (Foundations) Fifth Edition: Unity from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5A Slackers Guide to Coding with Python: Ultimate Beginners Guide to Learning Python Quick Rating: 0 out of 5 stars0 ratings
Reviews for Learn Programming Using C#
0 ratings0 reviews
Book preview
Learn Programming Using C# - Taurius Litvinavicius
Introduction
The book is written in a way that you could read everything in a row, or you could read certain sections and then jump into exercises after you complete one. The author’s suggestion is to read the book from cover to cover, or rather – from cover to exercises. This way you will be confident enough when you start solving your first problem.
In the end of the book you will find some useful advice on what to do going forward and some useful links to courses and reference. After you are done with the book, you should be able to solve basic problems and have clear direction on where to move forward
Basics
Console interface basics
To practice any kind of programming, you need some means to input data and then output data. There several different ways to interface with your logic, the code that actually does the procedures. We will be looking at the most basic one – console interface.
In visual studio, you need create a new project called Console app
or something similar, depending on the version visual studio. You will be choosing specific project template depending on framework and language, in this case it would be C# language and .net core framework (.net core
).
Now will take a look at some simple operations in the console. We will only be reading lines of text and writing to the console in the most basic way.
Code 1 - 1
Console.WriteLine(test
);
This code will write text to the console window, you can pass on a variable instead of simple text.
Code 1 – 2
vara =Console.ReadLine();
This code will read the line, so you enter your text and click enter
on your keyboard.
These two functions of console is all you really need to know, there are, of course, other ones, but