Download Logo

Install SDK & IDE (Ch. 1)

For PC/Mac/Linux Users Install the Software Development Kit (SDK) Download the official SDK from here. 1 https://dotnet.microsoft.com/en-us/download/visual-studio-sdks Choose the appropriate SDK based on your operating system. Follow the on-screen instructions to complete the installation. Download an Integrated Development Environment (IDE) or Code Editor of Your Choice Visual Studio Community Version: Download it here and click on “Free Download”. 1 https://visualstudio.microsoft.com/downloads/ Visual Studio Code: Download it here. 1 https://code.visualstudio.com/?wt.mc_id=vscom_downloads JetBrains Rider: Download it here. 1 https://www.jetbrains.com/rider/ Many more IDEs are available, like Eclipse, etc. Installation Instructions Open the downloaded file. Follow the on-screen instructions to complete the installation. For Users Without a PC or Those Who Don’t Want to Download Software Use an Online IDE SharpLab Paiza.io Dotnet Fiddle Programiz One Compiler W3Schools OnlineGDB For Visual Studio Code Users Install the Polyglot extension for enhanced language support.

June 15, 2024 · 1 min · 136 words · PrashantUnity
Download Logo

First app in VS (Ch. 2)

Create Your First C# Console Application in Visual Studio Follow these steps to create and run a simple C# console application in Visual Studio. Step 1: Create a New Project Open Visual Studio and click on Create a New Project. Step 2: Choose the Console App Template In the search bar, type Console. Select Console App (C#) from the results. Click Next at the bottom right of the window. ...

June 17, 2024 · 2 min · 248 words · PrashantUnity
Download Logo

First app with CLI (Ch. 2)

Create a C# Console Application Using the CLI Follow these steps to create and run a simple C# console application using the command line. Step 1: Open Terminal and Create a New Project Open your terminal and type the following command to create a new console application project named “HelloWorld”: 1 dotnet new console -o HelloWorld Step 2: Confirm Project Creation After pressing Enter, the command will generate a new project. You should see a confirmation message similar to the image below. ...

June 17, 2024 · 2 min · 256 words · PrashantUnity
Download Logo

First notebook app (Ch. 2)

Using Polyglot Notebook in VS Code Step-by-Step Guide 1. Install Polyglot Notebook Open VS Code. Press Control + Shift + X to open the Extensions view. Search for “Polyglot Notebook” or directly open the URL Polyglot Notebook Extension. Look for the extension logo as shown below and install it. 2. Create a New File Create a new file named HelloWorld.ipynb as shown in the image below. Double-click to open the file. ...

June 17, 2024 · 1 min · 150 words · PrashantUnity
Download Logo

C# basics (Ch. 3)

Comments in C# Comments are essential for making your code understandable. They can explain what your code does, which is helpful for anyone reading it (including yourself). Inline Comments: Use // for single-line comments. 1 // This is an inline comment. Multi-line Comments: Use /* */ for comments that span multiple lines. 1 2 3 4 /* This is a multi-line comment. It spans multiple lines. */ Semicolons In C#, every statement ends with a semicolon (;). This tells the compiler where a statement ends. ...

June 16, 2024 · 3 min · 461 words · PrashantUnity
Download Logo

Math in C# (Ch. 4)

C# Basic Operations and Type Conversions Basic Operations In C#, you can perform various arithmetic operations using standard operators. Here are some examples: 1 2 3 4 5 6 int additionResult = 10 + 5; // result will be 15 int subtractionResult = 20 - 8; // result will be 12 int multiplicationResult = 7 * 4; // result will be 28 int divisionResult = 15 / 3; // result will be 5 int remainder = 17 % 5; // remainder will be 2 float floatDivisionResult = 15f / 4f; // result will be 3.75 Understanding Assignment in Programming In general mathematics, equality signifies that the expression on the left side of the = is equivalent to the expression on the right side: ...

June 18, 2024 · 2 min · 417 words · PrashantUnity
Download Logo

CFD loading SVG

Loading Animation 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="300" height="300" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <text x="1" y="29" font-size="7" fill="white" font-family="Ubuntu">CFD AI</text> <style> .spinner { animation: move 2.4s linear infinite; } .delay1 { animation-delay: -2.4s; fill: #9BFAFF; } .delay2 { animation-delay: -1.6s; fill: #FFBD4D; } .delay3 { animation-delay: -0.8s; fill: #FFF8B3; } @keyframes move { 0%, 8.33% { x: 2px; y: 2px; } 25% { x: 13px; y: 2px; } 33.3%, 50% { x: 13px; y: 13px; } 58.33%, 75% { x: 2px; y: 13px; } 83.33%, 100% { x: 2px; y: 2px; } } </style> <rect class="spinner delay1" x="2" y="2" rx="2" width="10" height="10"/> <rect class="spinner delay2" x="2" y="2" rx="2" width="10" height="10"/> <rect class="spinner delay3" x="2" y="2" rx="2" width="10" height="10"/> </svg>

July 24, 2024 · 1 min · 171 words · PrashantUnity
Download Logo

Strings (Ch. 5)

C# String & string Manipulation String Basics In C#, a string is a sequence of characters stored as a single data type. Strings are immutable, meaning any operation that appears to modify a string actually creates a new string. string and String both can be used to represent string bath are same string preffered. String Concatenation Concatenation is the process of combining two or more strings into one. You can use the + operator to concatenate strings. ...

June 19, 2024 · 3 min · 633 words · PrashantUnity
Download Logo

If / else (Ch. 6)

C# Conditional Statements and Control Flow Example: If-Else Statement Here is an example that demonstrates the use of if, else if, and else statements to check the value of a variable and print corresponding messages. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 int number = 10; if (number > 10) { Console.WriteLine("The number is greater than 10"); } else if (number == 10) { Console.WriteLine("The number is equal to 10"); } else { Console.WriteLine("The number is less than 10"); } Explanation If Statement ...

June 20, 2024 · 3 min · 553 words · PrashantUnity
Download Logo

Loops (Ch. 7)

Understanding Loops in C# Loops are fundamental programming constructs that allow you to execute a block of code repeatedly. They’re essential for: Processing collections of data Repeating operations until a condition is met Automating repetitive tasks Iterating through arrays and lists Think of loops as a way to tell the computer: “Do this task over and over again until I tell you to stop.” Types of Loops in C# C# provides four main types of loops: ...

June 19, 2024 · 15 min · 3098 words · PrashantUnity