Leanpub Header

Skip to main content

C# 12.0 Crashkurs

Die Syntax der Programmiersprache C# für die Softwareentwicklung in .NET Framework, .NET Core, .NET 5.0/6.0/7.0 und 8.0

Der "C# Crashkurs" ist ein prägnanter Überblick über die Syntax der Programmiersprache C# in der aktuellen und produktionsreifen Version C# 12.0. Dies ist die Version 12.9 dieses Buchs, die am 30.10.2024 im Umfang von 404 Druckseiten erschienen ist.

This book is available in multiple packages!

Pick Your Package
PDF
404
Pages
About

About

About the Book

Dieser Crashkurs ist geeignet für Softwareentwickler, die von einer anderen objektorientierten Programmiersprache (z.B. C++, Java, Visual Basic .NET, Delphi oder PHP) auf C# umsteigen wollen oder bereits C# einsetzen und ihr Wissen erweitern, insbesondere die neusten Sprachfeatures kennenlernen wollen. Da es viele Umsteiger von Visual Basic .NET zu C# gibt, werden hier die Unterschiede von C# gegenüber Visual Basic .NET an einigen Stellen hervorgehoben.

Für Neueinsteiger, die mit C# erstmals überhaupt eine objektorientiere Programmiersprache erlernen wollen, ist dieses Werk hingegen nicht optimal geeignet, denn es werden die OO-Grundkonzepte nicht erklärt, da die meisten Softwareentwickler heutzutage diese aus anderen Sprachen kennen und das Buch nicht mit diesen Grundlagen unnötig in die Länge gezogen werden soll.

Das Buch erhebt nicht den Anspruch, vollständig alle syntaktischen Details zu C# aufzuzeigen, sondern nur die in der Praxis wichtigsten Konstrukte. In diesem Buch werden bewusst alle Syntaxbeispiele anhand von Konsolenanwendungen gezeigt. So brauchen Sie als Leser kein Wissen über eine bestimmte GUI-Bibliothek und die Beispiele sind prägnant fokussiert auf die Syntax.

Packages

Pick Your Package

All packages include the ebook in the following formats: PDF

Nur das PDF-E-Book

Minimum price

Suggested price$31.99

$29.99

    E-Book (PDF) + Programmcodebeispiele (Projektmapppe für Visual Studio) + Cheat Sheet

    Minimum price

    Suggested price$33.99

    Enthält die Programmcodebeispiele als Projektmappe für Visual Studio 2022 sowie ein zweiseitiges C# 12 Cheat Sheet

    $31.99

    • Programmcode zum Buch als Projektmappe für Visual Studio 2022
    • Spickzettel/Cheat Sheet C# 12.0 und .NET 8.0

    Author

    About the Author

    Dr. Holger Schwichtenberg

    Dr. Holger Schwichtenberg - alias der "DOTNET-DOKTOR" - ist technischer Leiter des Expertennetzwerks www.IT-Visions.de, das mit 54 renommierten Experten zahlreiche mittlere und große Unternehmen durch Beratungen und Schulungen sowie bei der Softwareentwicklung unterstützt. Seine persönlichen Tätigkeitsschwerpunkte sind Webanwendungen, verteilte Systeme, systemnahe Programmierung und Datenbankzugriffe. Er programmiert leidenschaftlich in C# und JavaScript/TypeScript sowie PowerShell.

    Durch seine Auftritte auf zahlreichen nationalen und internationalen Fachkonferenzen sowie mehr als 95 Fachbücher für O’Reilly, Addison-Wesley, Microsoft Press, Apress und dem Hanser-Verlag gehört er zu den bekanntesten Softwareentwicklungsexperten in Deutschland. Er schreibt regelmäßig für die iX, die dotnetpro, windows developer und heise.de. Dadurch hat in seiner Karriere bereits über 1600 Fachartikel veröffentlicht. Von Microsoft wird er für sein .NET-Fachwissen seit nunmehr 22 Jahren kontinuierlich als Microsoft Most Valuable Professional (MVP) ausgezeichnet.

     

    Sein Weblog finden Sie unter https://www.dotnet-doktor.de. Bei X folgen Sie ihm unter @DOTNETDOKTOR.

    Contents

    Table of Contents

    1 Inhaltsverzeichnis (Hauptkapitel) 3 2 Inhaltsverzeichnis (Details) 5 3 Vorwort 15 4 Über den Autor 17 5 Über dieses Buch 19 6 Fakten zu C# 31 7 Grundkonzepte von C# 52 8 Der C#-Compiler 57 9 Erste C#-Schritte mit Visual Studio 66 10 Datentypen 93 11 Operatoren 113 12 Schleifen 122 13 Verzweigungen 124 14 Klassendefinition 138 15 Datenmitglieder / Attribute (Fields und Properties) 147 16 Methoden 158 17 Konstruktoren und Destruktoren (Finalizer) 172 18 Aufzählungstypen (Enumeration) 178 19 Expression-bodied Members 179 20 Behandlung von null 180 21 Partielle Klassen 192 22 Partielle Methoden 194 23 Erweiterungsmethoden (Extension Methods) 196 24 Annotationen (.NET-Attribute) 208 25 Generische Klassen 214 26 Objektmengen (Arrays und Collections) 221 27 Implementierungsvererbung 229 28 Schnittstellen (Interfaces) 231 29 Namensräume (Namespaces) 238 30 Anonyme Typen 246 31 Operatorüberladung 247 32 Strukturen 249 33 Record-Typen 263 34 Immutable Objects 281 35 Tupel 285 36 Typaliase (seit C# 12.0) 290 37 Funktionale Programmierung in C# (Delegates / Lambdas) 292 38 Ereignisse 303 39 IDisposable / Using-Blöcke 305 40 Laufzeitfehler 309 41 Modul-Initialisierer 312 42 Kommentare und XML-Dokumentation 314 43 Asynchrone Ausführung mit async und await 316 44 Iteratoren 319 45 Zeigerprogrammierung 324 46 Abfrageausdrücke / Language Integrated Query (LINQ) 329 47 Source-Generatoren 357 48 Performanceoptimierungen 361 49 Anhang: Syntaxreferenz: C# versus Visual Basic .NET 376 50 Anhang: Neuerungen in früheren Versionen 383 51 Anhang: Quellen im Internet 389 52 Anhang: Versionsgeschichte dieses Buchs 390 53 Stichwortverzeichnis (Index) 391 54 Werbung in eigener Sache 400

    Get the free sample chapters

    Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

    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