Leanpub Header

Skip to main content

Learn C# in 30 minutes

Concise, practical, and easily consumable quick reference.

Concise, practical, and easily consumable quick reference.

Minimum price

$7.99

$9.99

You pay

$9.99

Authors earn

$7.99
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
372
Readers
53
Pages
6,997Words
About

About

About the Book

Concise, practical, and easily consumable quick reference.

Share this book

Categories

Author

About the Authors

Prateek Singh

Prateek Singh is an Infrastructure Developer, an avid PowerShell blogger, and a community contributor. In 2017 and 2018, FeedSpot and SQLHack recognized his blog RidiCurious.com as among the “Top 50 PowerShell blogs in the world.” Find his open-sourced at GitHub, and reach out to him on Twitter at @singhprateik.

Prateek has written more than 250 articles on his blog and several other websites such as 4SysOps.com, IPSwitch.com, and TechTarget.com and also runs a YouTube channel. He is a published author of 3 books and contributing author of 2 Book and currently writing the 6th one, following is the complete list:

Deepak Singh Dhami

Deepak works as a systems engineer touching cloud platforms, build/release & automation. Awarded Microsoft Most Valuable Professional award (year 2014-17) for his contributions in the Cloud & Data-center Management.

Recently, he has started going back to his development roots and picking up C#, Go for Infrastructure development needs.

Blog - https://dexterposh.github.io/

GitHub - https://github.com/DexterPOSH

Reach out to him on Twitter @DexterPOSH

Contents

Table of Contents

Learn C# basics in 30 minutes

  1. C# Language
  2. Key Characteristics
  3. A Brief History of CSharp
  4. Compilers, Runtime and .NET Framework
  5. Program Structure and Organization
  6. Program, Assemblies and Hello World
  7. Namespaces
  8. Class
  9. Members
  10. C# Programming Elements
  11. Comments
  12. Case Sensitivity
  13. Using Directive and Statement
  14. Types and Variables
  15. Values Types
  16. Reference Types
  17. Variables
  18. Operators, Operands and Expressions
  19. Operators
  20. Basic Input and Output
  21. Conditional statements
  22. If and If..Else statement
  23. Switch statement
  24. Loops and Iterations
  25. Exceptions Try..Catch..Finally
  26. Classes and objects
  27. Arrays
  28. Loops
  29. While loop
  30. For loop
  31. Foreach loop
  32. do…while loop
  33. Loop control statements
  34. Type Casting
  35. Lambda Expressions
  36. Strings and String Operations
  37. Escape Sequences
  38. String Concatenation
  39. String Interpolation
  40. Composite String Formatting
  41. Accessing Chars in a String
  42. Splitting a String
  43. Replace text in a String
  44. Trim White Space
  45. Extract Substrings from a String
  46. Convert a String to Char array
  47. Convert a Char array to String
  48. Changing case of a String
  49. Working with Date and Time
  50. DateTime object and static fields
  51. TimeSpan
  52. Convert DateTime to String and Custom Formatting
  53. Convert String to DateTime
  54. File Handling
  55. Creating a File
  56. Deleting a File
  57. ReadWrite on a File
  58. Appending to a File
  59. Copy and Move a File
  60. Reading Recommendations

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub