C# Programming For Beginners - Lecture 2: Coding our First Application in .NET Core Console
SECourses
C# Programming For Beginners Lectures (2/14) will teach you #CSharp #programming from 0 to beginner / intermediate level. So if you have no idea about programming, if you don't know anything about #coding, or if you want to become a Software Engineer, please subscribe and follow our courses.
Discord ➡️ https://bit.ly/SECoursesDiscord Patreon ➡️ https://www.patreon.com/SECourses
Technology Playlist (30+ Tutorial / Guide / News / Review Videos) ⤵️ https://www.youtube.com/playlist?list=PL_pbwdIyffsnkay6X91BWb9rrfLATUMr3
Stable Diffusion Playlist (30+ Tutorial / Guide Videos) ⤵️ https://www.youtube.com/playlist?list=PL_pbwdIyffsmclLl0O144nQRnezKlNdx3
Please join discord, mention me and ask me any questions. Thank you for like, subscribe, share and Patreon support. I am open to private consulting with Patreon subscription.
Full playlist of this course ⤵️ https://www.youtube.com/playlist?list=PL_pbwdIyffskoSXySh0MdiayPJsBZ7m2o
You can watch for free our C# Programming, ASP .NET Core MVC programming, Machine Learning and Software Engineering related courses on our playlists page ⤵️ https://www.youtube.com/@SECourses/playlists
GitHub code repository of this course (source codes of the lectures) ⤵️ https://github.com/FurkanGozukara/CSE105-2020-introduction-to-programming
Lecture 2/14:
- How to compose single-line and multi-line comment
- Console.WriteLine method
- Special keywords list, operators list, special characters list, string escape sequences
- Syntax of C# programming language
- Data types: char, string, boolean, decimal, double, float, byte, sbyte, short/Int16, ushort/UInt16, int/UInt32, uint/UInt32, long/Int64, ulong/UInt64
- Usage of $ sing in front of strings
- String format
- bit, byte, megabyte, gigabyte, etc.
- Representation of integral numbers in base 2 as bits
- Representation of numbers in other bases
Introduction:
C# (pronounced C Sharp) is a modern, object-oriented programming language that was designed by Microsoft as part of its .NET framework. It is a popular choice for developing applications that run on the Windows operating system. In this article, we will discuss some of the basic concepts and syntax of C# programming language.
Single-line and Multi-line Comment:
A comment is a section of code that is ignored by the compiler. It is used to add notes and explanations to your code. In C#, there are two types of comments: single-line and multi-line. Single-line comments start with two forward slashes (//) and continue until the end of the line. Multi-line comments start with /* and end with */. Multi-line comments can span multiple lines.
Console.WriteLine Method:
The Console.WriteLine method is used to write a line of text to the console. It is often used for debugging purposes, as it allows you to see the value of a variable or the result of an operation. The syntax of the Console.WriteLine method is as follows:
Console.WriteLine("text");
Special Keywords List, Operators List, and Special Characters List:
C# has a number of special keywords, operators, and special characters that are used to control the flow of the program and to perform operations. Some of the most common keywords include if, else, while, for, switch, case, and break. Some of the most common operators include +, -, *, /, %, and =. Some of the most common special characters include \n (newline), \t (tab), and \ (backslash).
String Escape Sequences:
Escape sequences are used to represent special characters in a string. For example, the newline character (\n) is used to create a new line in a string. Other escape sequences include \t (tab), \r (carriage return), and \ (backslash). To use an escape sequence in a string, you must precede it with a backslash ().
Syntax of C# Programming Language:
The syntax of C# programming language is similar to that of other programming languages. It is based on a series of statements that are executed in a specific order. Each statement is composed of one or more keywords, operators, and/or variables.
Data Types:
C# supports a variety of data types, including char, string, boolean, decimal, double, float, byte, sbyte, short/Int16, ushort/UInt16, int/UInt32, uint/UInt32, long/Int64, and ulong/UInt64. These data types are used to represent different types of data, such as characters, numbers, and Boolean values.
Usage of $ Sign in Front of Strings:
The $ sign is used in C# to indicate that a string is an interpolated string. An interpolated string is a string that contains placeholders for values that will be replaced at runtime. To use an interpolated string, you must precede the string with a $ sign and enclose the placeholders in curly braces ({}) and include the variable name inside the braces.
String Format:
String format is used to format strings in a specific way. This can be used to display numbers with a certain number of decimal places, to add leading zeros to a number, or to format a date in a specific way. ... https://www.youtube.com/watch?v=XLsrsCCdSnU
271290027 Bytes