Beginning C# 7 Hands-On – The Core Language by Tom Owsiak
Author:Tom Owsiak [Tom Owsiak]
Language: eng
Format: epub
Tags: COM051310 - COMPUTERS / Programming Languages / C#, COM051380 - COMPUTERS / Programming / Microsoft, COM051000 - COMPUTERS / Programming / General
Publisher: Packt
Published: 2017-10-13T12:20:33+00:00
What else can you do?
We can find the format of one of the things there. For this, we can enter the following:
sampLabel.Text += $"<br>The value at index (0,1) formatted as currency is {arr[0, 1]:C}";
Here, we start with sampLabel.Text and then use += to append. Then, we put in a <br> tag to move down to the next line, a $ symbol for string interpolation, double quotes to make a string data type, and say, for example, The value at index (0,1) formatted as currency is. As we are looking at index (0,1), we type {arr[0, 1]:C}.
Now, let's add comment 12 above this line as follows:
//12. Line below prints entry at index 0,1 formatted as currency
Let's take a look at this in Google Chrome, and click on Show Calculations. As you can see in the following screenshot, $34.00 is formatted as currency:
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.
| NET | C & C++ Windows Programming |
| SQL Server | VBA |
| Visual Basic |
The Mikado Method by Ola Ellnestam Daniel Brolund(20603)
Hello! Python by Anthony Briggs(19899)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18208)
Dependency Injection in .NET by Mark Seemann(18108)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17575)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17421)
Kotlin in Action by Dmitry Jemerov(17183)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16930)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16234)
Grails in Action by Glen Smith Peter Ledbrook(15390)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10392)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(8053)
Microservices with Go by Alexander Shuiskov(7818)
Practical Design Patterns for Java Developers by Miroslav Wengner(7718)
Test Automation Engineering Handbook by Manikandan Sambamurthy(7670)
Angular Projects - Third Edition by Aristeidis Bampakos(7159)
The Art of Crafting User Stories by The Art of Crafting User Stories(6611)
NetSuite for Consultants - Second Edition by Peter Ries(6532)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(6305)