# เขียนโค้ดด้วยภาษา C\#

## 👑 สิ่งที่ควรรู้ของภาษา C\#

* **C#** อ่านว่า **ซีชาป** นะจ๊ะเบบี๋
* บริษัทที่พัฒนาคือ **Microsoft** ที่เราใช้ **Windows** กันอยู่ทุกวันนี้แหละ
* ภาษานี้พัฒนาจากภาษา **Java แล้วปรับปรุงให้ดีกว่าเดิมเยอะมาก** ดังนั้นถ้าเข้าใจภาษานี้ปุ๊ป แทบจะเรียกว่าโดดไปเขียน **Java** ได้เลย (ภาษา Java หยุดพัฒนาไปนานม๊วกเลยขอเลือก C# มาสอนแทน **อวยๆ**)
* สามารถใช้ภาษานี้เขียนแอพได้เกือบทุกชนิดที่สุดแล้วซึ่งภาษาส่วนใหญ่จะทำไม่ได้ เช่น เขียนเว็บ, แอพมือถือ, แอพบน Windows, Mac OS, Linux, เขียนเกม บลาๆขี้เกียจไล่ละ

## 🎥 ทำไมเราควรเรียนภาษา C\#

{% embed url="<https://www.youtube.com/watch?v=ojPcwo93erc&list=PLUjAn8nwWnijERZ3HpzBk7NfSrau74_lQ&index=2>" %}

## 🧭 เนื้อหาทั้งหมดของคอร์สนี้

### 👶 พื้นฐาน

{% content-ref url="csharp101/basic/tools" %}
[tools](https://www.saladpuk.com/beginner-1/csharp101/basic/tools)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/structure" %}
[structure](https://www.saladpuk.com/beginner-1/csharp101/basic/structure)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/datatype" %}
[datatype](https://www.saladpuk.com/beginner-1/csharp101/basic/datatype)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/variable" %}
[variable](https://www.saladpuk.com/beginner-1/csharp101/basic/variable)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/operators" %}
[operators](https://www.saladpuk.com/beginner-1/csharp101/basic/operators)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/type-conversions" %}
[type-conversions](https://www.saladpuk.com/beginner-1/csharp101/basic/type-conversions)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/boolean" %}
[boolean](https://www.saladpuk.com/beginner-1/csharp101/basic/boolean)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/if" %}
[if](https://www.saladpuk.com/beginner-1/csharp101/basic/if)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/switch" %}
[switch](https://www.saladpuk.com/beginner-1/csharp101/basic/switch)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/while-loop" %}
[while-loop](https://www.saladpuk.com/beginner-1/csharp101/basic/while-loop)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/do-while" %}
[do-while](https://www.saladpuk.com/beginner-1/csharp101/basic/do-while)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/for" %}
[for](https://www.saladpuk.com/beginner-1/csharp101/basic/for)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/img-solving" %}
[img-solving](https://www.saladpuk.com/beginner-1/csharp101/basic/img-solving)
{% endcontent-ref %}

{% content-ref url="csharp101/basic/array" %}
[array](https://www.saladpuk.com/beginner-1/csharp101/basic/array)
{% endcontent-ref %}

### 🧑 ระดับกลาง

{% content-ref url="csharp101/intermediate/value-vs-reference" %}
[value-vs-reference](https://www.saladpuk.com/beginner-1/csharp101/intermediate/value-vs-reference)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/method" %}
[method](https://www.saladpuk.com/beginner-1/csharp101/intermediate/method)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/class" %}
[class](https://www.saladpuk.com/beginner-1/csharp101/intermediate/class)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/constructor" %}
[constructor](https://www.saladpuk.com/beginner-1/csharp101/intermediate/constructor)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/method-in-class" %}
[method-in-class](https://www.saladpuk.com/beginner-1/csharp101/intermediate/method-in-class)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/property" %}
[property](https://www.saladpuk.com/beginner-1/csharp101/intermediate/property)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/demo-class" %}
[demo-class](https://www.saladpuk.com/beginner-1/csharp101/intermediate/demo-class)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/inheritance" %}
[inheritance](https://www.saladpuk.com/beginner-1/csharp101/intermediate/inheritance)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/polymorphism" %}
[polymorphism](https://www.saladpuk.com/beginner-1/csharp101/intermediate/polymorphism)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/abstract-class" %}
[abstract-class](https://www.saladpuk.com/beginner-1/csharp101/intermediate/abstract-class)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/interface" %}
[interface](https://www.saladpuk.com/beginner-1/csharp101/intermediate/interface)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/namespace" %}
[namespace](https://www.saladpuk.com/beginner-1/csharp101/intermediate/namespace)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/enum" %}
[enum](https://www.saladpuk.com/beginner-1/csharp101/intermediate/enum)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/exception" %}
[exception](https://www.saladpuk.com/beginner-1/csharp101/intermediate/exception)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/string" %}
[string](https://www.saladpuk.com/beginner-1/csharp101/intermediate/string)
{% endcontent-ref %}

{% content-ref url="csharp101/intermediate/stringbuilder" %}
[stringbuilder](https://www.saladpuk.com/beginner-1/csharp101/intermediate/stringbuilder)
{% endcontent-ref %}

### 👨 ระดับสูง

{% hint style="danger" %}
ระดับนี้กำลังค่อยๆเขียนอยู่ น่าจะเสร็จราวๆวันที่ 30/09/2019 นี้แหละ
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.saladpuk.com/beginner-1/csharp101.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
