<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>C# Code Examples on Junian Dev</title>
    <link>https://www.junian.dev/code/csharp/</link>
    <description>Recent content in C# Code Examples on Junian Dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>author@junian.dev (Junian Triajianto)</managingEditor>
    <webMaster>author@junian.dev (Junian Triajianto)</webMaster>
    <copyright>Copyright &amp;copy; 2014 - 2026 Junian.dev</copyright>
    
	    <atom:link href="https://www.junian.dev/code/csharp/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>C# for Loop with Examples</title>
      <link>https://www.junian.dev/code/csharp/for/</link>
      <pubDate>Wed, 13 May 2026 04:00:00 +0700</pubDate>
      <author>author@junian.dev (Junian Triajianto)</author>
      <guid>https://www.junian.dev/code/csharp/for/</guid>
      <description>&lt;p&gt;In a C# &lt;code&gt;for&lt;/code&gt;-loop, we&amp;rsquo;re basically just stepping through a bunch of numbers. Keep in mind that &lt;code&gt;for&lt;/code&gt; hands you an index variable, which is actually pretty handy for other stuff.&lt;/p&gt;
&lt;p&gt;In C#, using &lt;code&gt;foreach&lt;/code&gt; is usually the most straightforward way to loop. But if you actually need that index (like 0, 1, or 2), &lt;code&gt;for&lt;/code&gt; is the way to go. It lets you peek at neighboring items or even mess with other lists.&lt;/p&gt;</description>
    </item>
    <item>
      <title>C# foreach Loop with Examples</title>
      <link>https://www.junian.dev/code/csharp/foreach/</link>
      <pubDate>Tue, 12 May 2026 04:00:00 +0700</pubDate>
      <author>author@junian.dev (Junian Triajianto)</author>
      <guid>https://www.junian.dev/code/csharp/foreach/</guid>
      <description>&lt;p&gt;Programs basically live in loops most of the time.
In C#, we&amp;rsquo;ve got the &lt;code&gt;foreach&lt;/code&gt;-loop, which comes with its own perks and a much cleaner look.&lt;/p&gt;
&lt;p&gt;This loop lets us look at every item one by one without having to mess around with an index.
Since there aren&amp;rsquo;t any indexes to track, the whole thing stays way simpler.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s a huge win for making your code easier to follow and wrap your head around.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
