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 |
Deep Learning with Python by François Chollet(12571)
Hello! Python by Anthony Briggs(9916)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9779)
Dependency Injection in .NET by Mark Seemann(9340)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8299)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7082)
Microservices with Go by Alexander Shuiskov(6849)
Practical Design Patterns for Java Developers by Miroslav Wengner(6769)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6708)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6416)
Angular Projects - Third Edition by Aristeidis Bampakos(6114)
The Art of Crafting User Stories by The Art of Crafting User Stories(5644)
NetSuite for Consultants - Second Edition by Peter Ries(5576)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5381)
Kotlin in Action by Dmitry Jemerov(5065)
