Skip to content

Commit b5240be

Browse files
committed
Update C#.md
Fixed Numbered List. Improved Readability
1 parent e842265 commit b5240be

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

docs/Language/C#/C#.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -89,64 +89,64 @@ It's important to note that C# releases are closely tied to the .NET ecosystem,
8989

9090
Using C++ involves several steps, from setting up your development environment to writing, compiling, and running your code. Here's a step-by-step guide to get you started:
9191

92-
1. ### Install an Integrated Development Environment (IDE)
92+
1. **Install an Integrated Development Environment (IDE)**
9393

94-
You'll need an IDE to write C# code. I'd recommend the following:
94+
You'll need an IDE to write C# code. I'd recommend the following:
9595

96-
- Visual Studio: Download and install Visual Studio from the official Microsoft website: [Visual Studio](https://visualstudio.microsoft.com/)
96+
- Visual Studio: Download and install Visual Studio from the official Microsoft website: [Visual Studio](https://visualstudio.microsoft.com/)
9797

98-
- Visual Studio Code: Alternatively, you can use Visual Studio Code, a lightweight and free code editor. Download and install it from the official website: [Visual Studio Code](https://code.visualstudio.com/).
98+
- Visual Studio Code: Alternatively, you can use Visual Studio Code, a lightweight and free code editor. Download and install it from the official website: [Visual Studio Code](https://code.visualstudio.com/).
9999

100-
2. ### Open the IDE + Create New Project
100+
2. **Open the IDE + Create New Project**
101101

102-
- Visual Studio: Open Visual Studio and create a new project by selecting "File" -> "New" -> "Project...". Choose a C# project template, such as a Console App.
102+
- Visual Studio: Open Visual Studio and create a new project by selecting "File" -> "New" -> "Project...". Choose a C# project template, such as a Console App.
103103

104-
- Visual Studio Code: Open Visual Studio Code and install the "C# for Visual Studio Code" extension. Create a new C# file (with a .cs extension) for your program.
104+
- Visual Studio Code: Open Visual Studio Code and install the "C# for Visual Studio Code" extension. Create a new C# file (with a .cs extension) for your program.
105105

106-
3. ### Write C# Code
106+
3. **Write C# Code**
107107

108-
In your C# file, write the following code:
108+
In your C# file, write the following code:
109109

110-
```cs
111-
using System;
110+
```cs
111+
using System;
112112

113-
class Program
114-
{
115-
static void Main()
113+
class Program
116114
{
117-
Console.WriteLine("Hello, World!");
115+
static void Main()
116+
{
117+
Console.WriteLine("Hello, World!");
118+
}
118119
}
119-
}
120-
```
120+
```
121121

122-
This code uses the System namespace and contains a simple Main method that prints `"Hello, World!"` to the console using the `Console.WriteLine()` method.
122+
This code uses the System namespace and contains a simple Main method that prints `"Hello, World!"` to the console using the `Console.WriteLine()` method.
123123

124-
4. ### Save
124+
4. **Save**
125125

126-
Save your C# file with a .cs extension, such as HelloWorld.cs.
126+
Save your C# file with a .cs extension, such as HelloWorld.cs.
127127

128-
5. ### Compile
128+
5. **Compile**
129129

130-
- Visual Studio: Click the "Start" button (green arrow) or press F5 to build and run your program.
130+
- Visual Studio: Click the "Start" button (green arrow) or press F5 to build and run your program.
131131

132-
- Visual Studio Code: Open the integrated terminal, navigate to the directory where your C# file is located, and run the following commands:
132+
- Visual Studio Code: Open the integrated terminal, navigate to the directory where your C# file is located, and run the following commands:
133133

134-
```bash
135-
dotnet build
136-
dotnet run
137-
```
134+
```bash
135+
dotnet build
136+
dotnet run
137+
```
138138

139-
6. ### Run The Program:
139+
6. **Run The Program:**
140140

141-
You should see the output `"Hello, World!"` in the console window. This basic example should provide a foundation for exploring more advanced C# concepts and building more complex applications.
141+
You should see the output `"Hello, World!"` in the console window. This basic example should provide a foundation for exploring more advanced C# concepts and building more complex applications.
142142

143-
7. ### Debugging
143+
7. **Debugging**
144144

145-
Use the debugging features provided by your IDE or compiler to identify and fix errors in your code. Common debugging techniques include setting breakpoints, inspecting variables, and stepping through code.
145+
Use the debugging features provided by your IDE or compiler to identify and fix errors in your code. Common debugging techniques include setting breakpoints, inspecting variables, and stepping through code.
146146

147-
8. ### Learn and Experiment:
147+
8. **Learn and Experiment:**
148148

149-
Keep up to date with .NET framework updates, as this will often pave the direction of C# and introduce new features to work with. The language is constantly evolving, and still in rapid development.
149+
Keep up to date with .NET framework updates, as this will often pave the direction of C# and introduce new features to work with. The language is constantly evolving, and still in rapid development.
150150

151151
---
152152

0 commit comments

Comments
 (0)