My Account Log in

2 options

Beginning C# hands-on -- the core language : learn the C# language by coding it element by element / Tom Owsiak.

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Owsiak, Tom, author.
Language:
English
Subjects (All):
C# (Computer program language).
Physical Description:
1 online resource (502 pages) : illustrations (some color)
Edition:
1st edition
Other Title:
Beginning C sharp hands-on
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt, 2017.
System Details:
text file
Biography/History:
Owsiak Tom: I have eight years experience as a teacher of mathematics, physics, statistics, and programming. I worked for five years as a database programmer using various technologies such as. NET, Clipper, SQL, SQL Server, SAS, Excel, and many related technologies. I'm the publisher of one of the most successful courses on Udemy, called "Learn C# With Visual Studio 2013". Currently, I work as a mathematics, and computer science teacher at Mercy College in Dobbs Ferry, NY.
Summary:
A C# 7 beginners guide to the core parts of the C# language! About This Book Learn C#, Visual Studio, and Object Oriented Programming, See practical examples of all the core C# language features so that you can easily master them yourself Use the C# 7 programming language to work with code and data, which can be applied to other programming languages as well, Complete a variety of programming assignments for hands-on practice, as you move through the course. Who This Book Is For This book will appeal to anyone who is interested in learning how to program in C#. Previous programming experience will help you get through the initial sections with ease, although, it's not mandatory to possess any experience at all. What You Will Learn Learn C#, Visual Studio, and object-oriented programming Learn all the core C# 7 language syntax with hands-on working examples Learn everything from basic variable assignments to complex multidimensional arrays Go through practical examples of all the core C# 7 language features so that you can easily master them yourself Use the C# programming language to work with code and data, which can be applied to other programming languages as well In Detail Beginning C# 7 Hands-On - The Core Language teaches you core C# language and syntax in a working Visual Studio environment. This book covers everything from core language through to more advanced features such as object-oriented programming techniques. This book is for C# 7 beginners who need a practical reference to core C# language features. You'll also gain a view of C# 7 through web programming with web forms, so you'll learn HTML, basic CSS, and how to use a variety of controls, such as buttons and drop-down lists. You'll start with the fundamentals of C# and Visual Studio, including defining variables, interacting with users, and understanding data types, data conversions, and constants. You'll move on to checking conditions using if/else blocks, and see how to use loops to do things such as repeat blocks of code. After covering various operators to evaluate and assign control structures, you'll see how to use arrays to store collections of data. By the time you've finished the book, you'll know how to program the vital elements of the core C# language. These are the building blocks that you can then combine to build complex C# programs. Style and approach A comprehensive book that blends theory with just the right amount of practical code implementations, to help ...
Contents:
Cover
Title Page
Copyright
Credits
About the Author
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: Why C# and How to Download and Install the Visual Studio Community Edition
Locating and downloading the Visual Studio Community edition
Summary
Chapter 2: Customizing Visual Studio to Make it Feel More Personal
Customizing Visual Studio
Selecting the text editor font and size
Selecting the Statement Completion font and size
Selecting the Environment font and size
Positioning Visual Studio panels
Chapter 3: Creating and Running Your First Page
Starting a new project in Visual C#
Working with Solutions Explorer
Adding a document to your browser
Working with HTML code in Visual Studio
Launching the HTML code
Chapter 4: Creating and Running a Page That Incorporates C#
Improving your first program
Working in the Design view
Working in the Source view
Adding comments
Adding attribute properties
Viewing the code in your browser
Chapter 5: Creating and Using a Single Variable
Setting up Visual C# to deal with a variable
Variables represent change
Declaring a variable
Matching variable types
Running the code
Appending new text
Running the code with the appended text
Embedding a line break
Chapter 6: String Interpolation and Updating Visual Studio
Selecting a NuGet package
Installing a NuGet package
Printing a variable
Chapter 7: Formatting Output Strings for More Professional Results
Setting a value and formatting it as currency
Rounding the output
Formatting a value as a percent
Formatting a value as a date
Chapter 8: Using Variables and Data Types
Setting a page title automatically.
Setting a page title so that it can be controlled dynamically
Working with a Boolean data type
Using the decimal data type to set monetary values
Chapter 9: Computed Variables and Basic Math
Declaring and setting two variables to signify two different salaries
Adding the two salaries
Averaging the two salaries
Chapter 10: Interacting with Users Through the Web Page
Using Toolbox to search for a command
Adding an Event Handler
Working with string input
Converting string input to a numerical value
Working with methods
Working with the converted numerical value
Chapter 11: Using Method Chaining to Write More Compact Code
Inserting a text box into the markup
Entering your C# code
Introducing method chaining
Testing your code
Chapter 12: Reacting to a Single Condition with If/Else Blocks
Adding checkbox to your code
Adding a panel statement
Testing the checkbox
Working with the AutoPostBack property
Constructing an if statement
Constructing an else statement
Chapter 13: Making a Variable Grow by Adding 1
Growing a variable by one
Another way to grow a variable
Chapter 14: Repeating Blocks of Code with While Loops
Inserting a button
Modifying the button
Creating a while loop
Working with the Math class
Experimenting with the code
Chapter 15: Repeating Blocks of Code with For Loops
Inserting ListBox
Binding in the code
Starting a for loop
Filling ListBox using the for loop
Chapter 16: Iterating Over Collections with foreach Loops
Inserting TextBox
Inserting a label
Relating TextBox with Label
Generating a vertical output
Removing parts of the code to determine their impact.
Summary
Chapter 17: Examining Multiple Variable Values with Switch Blocks
Inserting DropBox and Label
Populating the drop-down list
Adding information to display about each drop-down item
Replicating cases
Running your program
Chapter 18: Improving Input Processing with TryParse
Inserting a button and a textbox
Inserting the label
Introducing the TryParse method
Using TryParse to convert input into a numerical value
Chapter 19: Replacing If/Else Blocks with the Ternary Operator
Inserting two text boxes and a button
Creating the interface
Combining the ternary operator with TryParse
The Boolean power of TryParse
Chapter 20: Operators That Evaluate and Assign in Place
Inserting Button and Label
Introducing operators
Incrementing the value of a variable by 1 with ++
Incrementing the value of a variable by 2 with +&amp
#61
Working with the
operator
Working with the &amp
&amp
Chapter 21: Checking Two Conditions with the Logical AND Operator
Setting up the project
Building your simulation
Determining if there is something in the text boxes
Displaying the results
Chapter 22: Checking Two Conditions with the Logical OR Operator
Working with check boxes
Introducing the logical || (OR) operator
Experimenting with the logical || (OR) operator
Chapter 23: Declaring, Setting, and Reading Arrays
Setting up the basic interface
Creating the array
Setting up an index
Using arrays to do addition
Using arrays to display an average
Viewing the page source
Chapter 24: Iterating Over Arrays with foreach Loops
Setting up the beginning interface
Creating an array of strings.
Introducing the foreach loop
Running the program
Chapter 25: Creating and Using a Simple Method
Setting up the user interface
Creating a method
Defining the body of the method
Working with the Convert class
Increasing the value of a variable with the GetIncreasedValue method
Outputting the results
Chapter 26: Passing Arrays into Methods
Creating the method to find the total of values inside an array
Summing up the values
Using a foreach loop to grab entries inside the array
Adding up the values as the loop operates
Returning the value
Filling the array
Chapter 27: Reference Type and Value Type Variables
Reference type versus value type variables
Reference type variables
Value type variables
Chapter 28: Creating More Flexible Methods with the params Keyword
Designing the starting markup
Creating the product method
Using the product method to multiply variables
Chapter 29: Creating More Flexible Functions with the out Keyword
Introducing language-integrated queries
Using the out parameter
Working with the average extension method
Working with the var keyword
Outputting the results of the Summarize method
Running and modifying your program
Chapter 30: Combining the ref and out Keywords to Write Flexible Functions
Setting up the starting interface
Creating the GetValueAndInterest method
The ref and out keywords
Calculating principle and interest
Chapter 31: The out Keyword in C# 7
Creating the program template.
Writing the Summarize function
Implementing the function
Chapter 32: Multidimensional Arrays
Understanding two-dimensional arrays
Setting up the initial interface
Coding a two-dimensional array
Printing out your results
What else can you do?
Chapter 33: Writing Easier Code with the Var and Dynamic Keywords
Working with the dynamic keyword
Chapter 34: Creating a Class with a Constructor and a Function
Our initial markup
Creating a class
Creating the class structure
Working with an instance
Setting the account balance
Displaying the balance using a method
Making a bank account object
Crunching the numbers
Private versus public
Chapter 35: Creating a Class with a Static Method
Setting up a simple initial interface
Introducing static classes
Creating the Reverse method
Coding the Reverse method
Reversing the array
Undoing the reversed string
Chapter 36: Creating a Class with an Object Property
Setting up a simple markup page
Introducing properties
Using the Circle class
Making a Circle object
Chapter 37: Creating a Class with Static Fields, and Properties
Setting up the interface for this project
Creating the Truck class
Counting trucks
Closing IS Express (Windows users)
Documenting your program
Lesson review
Chapter 38: Centralizing Common Code with Inheritance
Setting up the interface for this lesson
Creating the Vehicles class file
Introducing instance variables
Writing a function to get the make of a vehicle
Creating the Truck class file.
Creating the sedan class file.
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed September 26, 2017).
OCLC:
1004966425

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account