Programming C# 8.0 by Ian Griffiths
Author:Ian Griffiths [Ian Griffiths]
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2019-11-24T16:00:00+00:00
Example 2-20. Errors: some expressions that don’t work as statements
Console.ReadKey().KeyChar + "!"; Math.Sqrt(4) + 1;
Earlier I said that one kind of expression we’re allowed to use as a statement is an assignment. It’s not obvious that assignments should be expressions, but they are, and they do produce a value: the result of an assignment expression is the value being assigned into the variable. This means it’s legal to write code like that in Example 2-21. The second line here uses an assignment expression as an argument for a method invocation, which prints out the value of that expression. The first two WriteLine calls both display 123.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
| Coding Theory | Localization |
| Logic | Object-Oriented Design |
| Performance Optimization | Quality Control |
| Reengineering | Robohelp |
| Software Development | Software Reuse |
| Structured Design | Testing |
| Tools | UML |
The Mikado Method by Ola Ellnestam Daniel Brolund(20601)
Hello! Python by Anthony Briggs(19897)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18203)
Dependency Injection in .NET by Mark Seemann(18105)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17574)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17419)
Kotlin in Action by Dmitry Jemerov(17179)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16928)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16233)
Grails in Action by Glen Smith Peter Ledbrook(15388)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10391)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(8052)
Microservices with Go by Alexander Shuiskov(7816)
Practical Design Patterns for Java Developers by Miroslav Wengner(7718)
Test Automation Engineering Handbook by Manikandan Sambamurthy(7667)
Angular Projects - Third Edition by Aristeidis Bampakos(7159)
The Art of Crafting User Stories by The Art of Crafting User Stories(6608)
NetSuite for Consultants - Second Edition by Peter Ries(6531)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(6304)