update lecture 0

main
borb 1 week ago
parent a87d654f80
commit ed446e85b3

@ -13,10 +13,10 @@
/* buutti.css */
/* @theme buutti */div#\:\$p>svg>foreignObject>section .columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:calc(var(--marpit-root-font-size, 1rem) * 1)}div#\:\$p>svg>foreignObject>section .columns12{display:grid;grid-template-columns:1fr 2fr;gap:calc(var(--marpit-root-font-size, 1rem) * 1)}div#\:\$p>svg>foreignObject>section .columns21{display:grid;grid-template-columns:2fr 1fr;gap:calc(var(--marpit-root-font-size, 1rem) * 1)}div#\:\$p>svg>foreignObject>section .columns32{display:grid;grid-template-columns:3fr 2fr;gap:calc(var(--marpit-root-font-size, 1rem) * 1)}div#\:\$p>svg>foreignObject>section .columns23{display:grid;grid-template-columns:2fr 3fr;gap:calc(var(--marpit-root-font-size, 1rem) * 1)}div#\:\$p>svg>foreignObject>section .columns111{display:grid;grid-template-columns:1fr 1fr 1fr;gap:calc(var(--marpit-root-font-size, 1rem) * 1)}div#\:\$p>svg>foreignObject>section .centered{display:flex;flex-direction:column;justify-content:center;text-align:center}div#\:\$p>svg>foreignObject>section .tableborderless td,div#\:\$p>svg>foreignObject>section th{border:none!important;border-collapse:collapse}div#\:\$p>svg>foreignObject>section.extra{background-color:#5d275d;background-image:linear-gradient(to bottom,#401a40,#1d0c1d);color:white}div#\:\$p>svg>foreignObject>section.extra a{color:rgb(145,255,209)}div#\:\$p>svg>foreignObject>section.exercise{background-color:#29366f;background-image:linear-gradient(to bottom,#20636a,#173742);color:white}div#\:\$p>svg>foreignObject>section.exercise a{color:rgb(211,173,255)}
/* @theme jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm */div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]{columns:initial!important;display:block!important;padding:0!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]:after,div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]:before,div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=content]:after,div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=content]:before{display:none!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container]{all:initial;display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container][data-marpit-advanced-background-direction=vertical]{flex-direction:column}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background][data-marpit-advanced-background-split]>div[data-marpit-advanced-background-container]{width:var(--marpit-advanced-background-split,50%)}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background][data-marpit-advanced-background-split=right]>div[data-marpit-advanced-background-container]{margin-left:calc(100% - var(--marpit-advanced-background-split, 50%))}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container]>figure{all:initial;background-position:center;background-repeat:no-repeat;background-size:cover;flex:auto;margin:0}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container]>figure>figcaption{position:absolute;border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;white-space:nowrap;width:1px}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=content],div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=pseudo]{background:transparent!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=pseudo],div#\:\$p>svg[data-marpit-svg]>foreignObject[data-marpit-advanced-background=pseudo]{pointer-events:none!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background-split]{width:100%;height:100%}</style></head><body><div class="bespoke-marp-osc"><button data-bespoke-marp-osc="prev" tabindex="-1" title="Previous slide">Previous slide</button><span data-bespoke-marp-osc="page"></span><button data-bespoke-marp-osc="next" tabindex="-1" title="Next slide">Next slide</button><button data-bespoke-marp-osc="fullscreen" tabindex="-1" title="Toggle fullscreen (f)">Toggle fullscreen</button><button data-bespoke-marp-osc="presenter" tabindex="-1" title="Open presenter view (p)">Open presenter view</button></div><div id=":$p"><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="1" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="1" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
/* @theme yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy */div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]{columns:initial!important;display:block!important;padding:0!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]:after,div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]:before,div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=content]:after,div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=content]:before{display:none!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container]{all:initial;display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container][data-marpit-advanced-background-direction=vertical]{flex-direction:column}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background][data-marpit-advanced-background-split]>div[data-marpit-advanced-background-container]{width:var(--marpit-advanced-background-split,50%)}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background][data-marpit-advanced-background-split=right]>div[data-marpit-advanced-background-container]{margin-left:calc(100% - var(--marpit-advanced-background-split, 50%))}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container]>figure{all:initial;background-position:center;background-repeat:no-repeat;background-size:cover;flex:auto;margin:0}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=background]>div[data-marpit-advanced-background-container]>figure>figcaption{position:absolute;border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;white-space:nowrap;width:1px}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=content],div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=pseudo]{background:transparent!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background=pseudo],div#\:\$p>svg[data-marpit-svg]>foreignObject[data-marpit-advanced-background=pseudo]{pointer-events:none!important}div#\:\$p>svg>foreignObject>section[data-marpit-advanced-background-split]{width:100%;height:100%}</style></head><body><div class="bespoke-marp-osc"><button data-bespoke-marp-osc="prev" tabindex="-1" title="Previous slide">Previous slide</button><span data-bespoke-marp-osc="page"></span><button data-bespoke-marp-osc="next" tabindex="-1" title="Next slide">Next slide</button><button data-bespoke-marp-osc="fullscreen" tabindex="-1" title="Toggle fullscreen (f)">Toggle fullscreen</button><button data-bespoke-marp-osc="presenter" tabindex="-1" title="Open presenter view (p)">Open presenter view</button></div><div id=":$p"><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="1" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="1" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h1 id="introduction-to-c-and-net">Introduction to C# and .NET</h1>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="2" data-marpit-fragments="4" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="2" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="2" data-marpit-fragments="4" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="2" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="overview">Overview</h2>
<ul>
<li data-marpit-fragment="1">C#</li>
@ -25,7 +25,7 @@
<li data-marpit-fragment="4">Base Class Library (BCL)</li>
</ul>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="3" data-marpit-fragments="5" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="3" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="3" data-marpit-fragments="5" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="3" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="c">C#</h2>
<div class='columns' markdown='1'>
<div markdown='1'>
@ -43,7 +43,7 @@
</div>
</div>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="4" data-marpit-fragments="6" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="4" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="4" data-marpit-fragments="6" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="4" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="c-syntax-example">C# Syntax example</h2>
<div class='columns' markdown='1'>
<div markdown='1'>
@ -75,7 +75,7 @@
<li data-marpit-fragment="6">Try out the <a href="https://www.programiz.com/csharp-programming/online-compiler/">online compiler</a>!</li>
</ul>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="5" data-marpit-fragments="6" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="5" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="5" data-marpit-fragments="7" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="5" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="net">.NET</h2>
<ul>
<li data-marpit-fragment="1">.NET (pronounced <em>dot net</em>) is Microsoft's software framework for building and running web services
@ -87,9 +87,10 @@
<li data-marpit-fragment="4">Implements Common Language Infrastructure, so it can compile managed code (languages above) into machine code</li>
<li data-marpit-fragment="5">Provides <a href="https://learn.microsoft.com/en-us/dotnet/standard/automatic-memory-management">automatic memory management</a> via a garbage collector (GC)</li>
<li data-marpit-fragment="6">Type-safe and memory-safe thanks to GC and strict compilers</li>
<li data-marpit-fragment="7">Uses the <a href="https://www.nuget.org/">NuGet</a> package manager for distributing software (compare to <a href="https://www.npmjs.com/">npm</a> in JS)</li>
</ul>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="6" data-marpit-fragments="11" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="6" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="6" data-marpit-fragments="11" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="6" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="net-vs-net-framework">.NET vs .NET Framework</h2>
<ul>
<li data-marpit-fragment="1"><em>.NET Framework</em>
@ -111,7 +112,7 @@
<li data-marpit-fragment="11">We will be using .NET Core as the .NET Framework is considered legacy</li>
</ul>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="7" data-marpit-fragments="4" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="7" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="7" data-marpit-fragments="4" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="7" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="common-language-infrastructure-cli">Common Language Infrastructure (CLI)</h2>
<div class='columns32' markdown='1'>
<div markdown='1'>
@ -130,7 +131,7 @@
</div>
</div>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="8" data-marpit-fragments="3" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="invert" data-marpit-pagination="8" style="--paginate:true;--class:invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="8" data-marpit-fragments="3" data-paginate="true" data-class="invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="invert" data-marpit-pagination="8" style="--paginate:true;--class:invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="base-class-library-bcl">Base Class Library (BCL)</h2>
<ul>
<li data-marpit-fragment="1"><a href="https://learn.microsoft.com/en-us/dotnet/standard/class-library-overview">Base Class Library</a> (BCL) is a set of libraries that every .NET implementation uses, mostly under the <code>System</code> namespace</li>
@ -143,7 +144,7 @@
</li>
</ul>
</section>
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="9" data-paginate="true" data-class="exercise invert" data-heading-divider="5" data-theme="jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm" lang="en-US" class="exercise invert" data-marpit-pagination="9" style="--paginate:true;--class:exercise invert;--heading-divider:5;--theme:jt1qn45ts973hqy674gnpigfw2yjy0wu42ji3bolvcm;" data-marpit-pagination-total="9">
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1280 720"><foreignObject width="1280" height="720"><section id="9" data-paginate="true" data-class="exercise invert" data-heading-divider="5" data-theme="yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy" lang="en-US" class="exercise invert" data-marpit-pagination="9" style="--paginate:true;--class:exercise invert;--heading-divider:5;--theme:yut71bueealq7476qh0j8ple878eoqd6o7zxxoksjy;" data-marpit-pagination-total="9">
<h2 id="assignments">Assignments</h2>
<p><a href="https://gitea.buutti.com/education/academy-assignments/src/branch/master/C%23%20Basics/1.%20C%23%20Basics%20Assignments">Assignments about this topic can be found here</a></p>

@ -81,6 +81,7 @@ namespace MyAwesomeProgram
* Implements Common Language Infrastructure, so it can compile managed code (languages above) into machine code
* Provides [automatic memory management](https://learn.microsoft.com/en-us/dotnet/standard/automatic-memory-management) via a garbage collector (GC)
* Type-safe and memory-safe thanks to GC and strict compilers
* Uses the [NuGet](https://www.nuget.org/) package manager for distributing software (compare to [npm](https://www.npmjs.com/) in JS)
## .NET vs .NET Framework

Loading…
Cancel
Save