What is C#?

In this post we’ll learn What is C#? and about its important fundamental concepts. C# is one of the famous Microsoft programming languages. C# is object-oriented programming language and follow all OOP concepts and it was developed early in year 2000. In below section we have shared important concepts of C# which may addon to your knowledge and can also help while cracking interviews.

What is C#?

C# is a certified programming language (by ECMA & ISO). It is used to develop all kind of applications that may be web, desktop. It also helps developer in developing a robust, secure, and portable applications. Using C#, we can develop web applications, console applications, mobile applications, windows applications, backend services, web API, webservice, microservices etc.

What will you learn from this C# Section?

    C# Error Handling

    C# Constructors:

    C# Pointers:

    C# Fundamentals

    C# Data Types

    String

    Queue-Enqueue

    Data Structure

    Threads

    Collections

    Delegates

    Interview Context:

    General C# Topics

    Control statement

    .NET Framework

      More Topics for You

      • Working With File Class In C#
        In C#, ‘File’ class provides many static methods for moving, copying, and deleting files. These Static methods involve moving a file and copying and deleting a file also. Let’s check…
      • How to Read a Text File in C#
        In C# ‘File’ class provides static methods to read given text file data. The File.ReadAllText() method opens a text file, reads all the text present in the file into a…
      • C# | How to use Interface references
        In C#, you’re permitted to make a reference variable of an interface type or in other words, you’re permitted to form an interface reference variable. Such kind of variable can…
      • C Sharp Interface
        Comparable as a Class, Interface can have methods, properties, events, and indexers as its individuals. But interfaces will contain just the declaration of the members. The implementation of the interface’s…
      • Solve “undeclared prefix” error on XElement.Load()
        In order to use a namespace prefix (such as addthis:), the namespace must be declared, by writing xmlns:addthis=”Fixed URI”. This will get added in very first line of your XSLT…
      • Develop Custom DOM object for Edge/Chrome
        We can also create our custom plugin or object. We’ll create a JavaScript object and then create nested methods in this with same name we were having in IE DOM…
      • C# | Classes and Constructors
        In this post we’ll learn about C# | Classes and Constructors. Below we are going to talk about: Adding New Elements in Solution Explorer Even though we can create new…
      • Polymorphism and Types
        Polymorphism means one name in many forms. This is the main feature of OOP. Polymorphism is the ability to take on multiple forms, but the name remains the same. There…
      • C# | Method Overloading
        Method overloading is a common way to implement polymorphism. This is the ability to redefine functions in multiple formats. Users can implement function overloading by defining two or more functions…
      • C# | Method Overriding
        Method overrides in C# are similar to virtual functions in C++. Method overriding is a technique that allows you to call a function from another class (the base class) in…
      • C# | Method Parameters
        A method in C# is typically a block of code or instructions within a program that allows the user to reuse the same code, which ultimately saves excessive memory consumption,…
      • C# | Inheritance
        Inheritance is a fundamental concept in object-oriented programming that allows us to define a new class based on an existing class. The new class inherits the properties and methods of…
      • C# | Encapsulation
        Encapsulation is defined as the wrapping up of data and information under a single unit. It is the mechanism that binds together the data and the functions that manipulate them.…
      • C# | Abstraction
        Data Abstraction is the property by virtue of which only the essential details are exhibited to the user. The trivial or the non-essentials units aren’t exhibited to the user. Data Abstraction…
      • ArrayList in C#
        ArrayList is a powerful feature of the C# language. This is a non-generic collection type defined in the System. Collections namespace. Used to create dynamic arrays. This means that the…
      • C# | String
        In C#, a “string” is a sequence of Unicode characters or an array of characters. Unicode characters range from U+0000 to U+FFFF. The arrangement of characters is also called text.…
      • C# | Jump Statements
        In C#, Jump statements are used to transfer control from one point to another point in the program due to some specified code while executing the program. There are five…
      • C# | Decision Making
        Decision making in programming is similar to decision making in real life. Even in programming, you need to execute a certain block of code if a condition is met. Programming…
      • C# | Keywords
        Keywords or reserved words are words in a language that are used for internal processes or represent predefined actions. Therefore, these words cannot be used as variable names or objects.…
      • C# | Switch Statement
        In C#, Switch statement is a multiway branch statement. It provides an efficient way to transfer the execution to different parts of a code based on the value of the…
      • C# | loops
        A loop in programming languages ​​is a way to execute a statement or a series of statements multiple times depending on the outcome of a condition that is evaluated to…
      • C# | Operators
        C# | Operators are the basis of any programming language. Therefore, the functionality of the C# language is incomplete without the use of operators. Operators allow you to perform different…
      • C# | literals
        IN this post we will learn about C# Literals. The fixed values assigned to a variable are called as Literal. Literal is a value that is used by the variables.…
      • C# | Data Types
        Data types indicate the kind of data that a valid C# variable can contain. C# is a strongly typed programming language. In C#, each data type (integer, character, floating point,…
      • C# | Identifiers
        Programming languages ​​use identifiers for identification. In other words, an identifier is a user-defined name for a program component. In C#, an identifier is a class name, method name, variable…
      • Build Vs. Rebuild Vs. Clean
        “Build Solutions” and “Rebuild Solutions” are the most commonly used features in Visual Studio. As a developer, you write code, build solutions, and run applications in Visual Studio. You also…
      • Difference Between int.Parse() and int.TryParse()
        What is the difference between int.Parse() and int.TryParse()? Or how is int.parse() different from int.TryParse()? – another common interview question for freshers and I noticed some confusion when answering it.…
      • Must Read – Delegate in C#
        In this post we will learn about “Delegate in C#”. A delegate is a person who represents an organization or group of people. In the C# world, a delegate is…
      • Must check – string Vs. String in C#
        One of the common questions that comes up in .NET interviews is “What is the difference between string and string?”. This is a very simple question but can confuse you…
      • Visual Studio Tip: Quickly convert for-to-foreach
        Visual Studio 2017 IDE provides quick refactoring using Quick Actions and Refactoring. Refactoring is a process of reforming our code without changing its functional purpose and making it easier to…
      • How to Colorize Document Tabs in Visual Studio 2022
        Here’s another fun fact where you can pin multiple tabs together by selecting them while holding the Ctrl button. Yes, it’s as simple as that. Press the Ctrl button, select…
      • Must know- You can drag & drop multiple tabs or even pin / unpin them together in Visual Studio
        A few days ago, I shared a tip about preserving and separating pinned tabs in Visual Studio. You have seen how we can maintain PIN state and create separate rows…
      • Must know – Pinned tabs never hide in visual Studio?
        Do you know Pinned tabs never hide in visual Studio? Let’s discuss. We often use the tab pinning feature to pin frequently used files to the editor window and access…
      • Using multipurpose Command Window to execute things faster in Visual Studio
        Visual Studio’s command window is very powerful and can help you get things done faster during development. The Command window can run commands directly in Visual Studio by their name.…
      • Difference between Start Debugging & Start without Debugging in Visual Studio
        In this post, we will discuss another very basic and simple topic i.e. “Difference between Start Debugging & Start without Debugging in Visual Studio” but this is confusing to many…
      • 11 Effective Debugging Tips for .NET Developer
        As developers, we spend a lot of time debugging code, identifying the root cause of errors, and ultimately fixing it as part of our daily development activities. Some problems are…
      • How to use “Run to Cursor” while debugging in Visual Studio
        In this post we’ll learn “How to use “Run to Cursor” while debugging”. Run to cursor is a nice, hidden feature of Visual Studio. It can really increase your productivity…
      • How to Debug Multithreaded Program
        In this post we will learn how to Debug Multithreaded Program. Let’s learn the followings: Before continuing with the actual process of threading, let’s consider you have the following piece…
      • Calling Methods using Watch Window
        IN this post we will learn about the Calling Methods using Watch Window. Watch Windows is one of the most commonly used debugging tools with Visual Studio. We often explore…
      • Key tips on Customizing Debugging Window View in Visual Studio
        In this post we’ll learn about key tips on Customizing Debugging Window View in Visual Studio. Let’s check. We’ll Use code>DebuggerBrowsable attribute to customize the debugging windows. Let’s use DebuggerDisplay…
      • How to Get Object Generation using Watch Window
        If you are processing objects in the Watch window and want to check the current generation of that object, you can easily get it by calling GC.getGeneration(YourObjectName). If you create…
      • How to use out of scope object within Conditional Breakpoint?
        When debugging your application, you may need to keep track of some out-of-scope data. Suppose you call MethodB() from MethodA() and perform an operation inside MethodB(), now when you return…
      • How to stop debugger after a specific number of breakpoint hit?
        You can stop the debugger at a breakpoint after a specific number of breakpoints is reached. Hit count is used to track how many times the debugger stopped at a…
      • How to use Runtime Objects in Watch Window during Debugging in Visual Studio?
        When debugging in Visual Studio, we often use the watch window to explore objects, values, properties, and other nested objects in a tree view. Mostly, we use the watch window…
      • How to Hide Methods from debugger Using DebuggerHidden attribute
        In this post we will learn “How to Hide Methods from debugger Using DebuggerHidden attribute“. The DubuggerHidden property tells the Visual Studio debugger that this method is hidden from and…
      • Using Quick Actions in Visual Studio to upgrade project’s language version
        In Visual Studio, you saw the lightbulb. If an error occurs, Visual Studio provides suggestions on how to resolve the issue. We all know this feature of Visual Studio. Did…
      • How to Choose C# Language latest version (minor release) in Visual Studio
        In this post we’ll learn about “How to Choose C# Language latest version (minor release) in Visual Studio”. Visual Studio allows you to choose the latest version of the C#…
      • Keep Visual Studio debugger ON when the browser is closed
        We can keep the Visual Studio debugger enabled, even when the project’s output browser is closed. When we work with web projects, as soon as we close the web browser…
      • Quickly navigate through Visual Studio IDE
        You can quickly navigate the Visual Studio IDE using certain keyboard shortcuts. Quickly navigating Visual Studio and Active Tool Windows files is one of the key factors affecting development productivity.…
      • How to Quickly Move Between Methods in Visual Studio?
        Similar to browsing Visual Studio and IDE files, you can quickly switch between methods in Visual Studio. Navigate faster to code, files, and Windows IDE tools for high productivity during…
      • Multiple Rows for Tabs in Visual Studio 2022
        In this post, we will discuss on “Multiple Rows for Tabs in Visual Studio 2022”. Now you can easily access all open tabs in Visual Studio. If you have multiple…
      • What is the difference between const and readonly in C#?
        In this post we’ll learn about “What is the difference between const and readonly in C#?“. Here is another common and quite confusing question. What is read-only and constant variable?…
      • How to iterate over Enum in C#?
        In this post we’ll discuss about “How to iterate over Enum in C#?”. The Enum type is one of the common features that we have used in most of the…
      •  How to get number of Application Insights events from Visual Studio?
        In my earlier posts you saw various support tools in Visual Studio 2015 or later that help improve the developer experience while using detailed information about the application. This article…
      • Visual Studio 2022: Quickly Reopen the Closed Files
        Have you unintentionally closed a source code file and then realized you require it back? The alternative was to return to the solution explorer, locate the file, and reopen it.…
      • HTML URL Encoding
        In this post we’ll discuss about HTML URL Encoding. Web browsers request pages from web servers by using a URL i.e., Uniform Resource Locator. URL Encoding Following are the key points…
      • Select Random String from An Array in C#
        In this post we will learn how to “select random string from an array in C#”. We have the option to utilize the random number generator to select a random…
      • String Interpolation in C#
        In this post we will learn about “String Interpolation in C#”. It is a technique of combining, formatting, and manipulating strings. This functionality was introduced in C# 6 version. By…
      • How to Compare Strings in C#
        In this post we will learn about “How to compare strings in C#”. C# has one inbuild method named String.Compare() which is used to compare first string with second string.…
      • C# | String Format()
        In this post we’ll learn about the C# | String Format() method with the help of a detailed examples. The Format() method returns a formatted string based on the argument…
      • C# | String IndexOf()
        In this post we will learn about C# | String IndexOf() method with the help of examples. How it works – it searches the string from the start to the…
      • C# | Queue.Enqueue() Method
        In this post we will learn about C# | Queue.Enqueue() Method. When we create a queue and want to add element in it then this method come into picture. This…
      • C# | Queue with Examples
        In this post we will learn about C# | Queue with Examples. Queue is a generic class that arranges elements of a specified data type using ‘First in First Out’ (FIFO)…
      • String.Split() Method
        In this post we’ll learn about String.Split() Method. This is common method used with String class and returns an array of strings. In this method array is generated by splitting…
      • C# | IsNullOrWhiteSpace() Method
        In this post we will discuss C# | IsNullOrWhiteSpace() Method. It is used with String class and helpful to check null and whitespaces. This method is similar to string.IsNullOrEmpty() but…
      • C# I IsNullOrEmpty() Method
        In this article we’ll learn about C# I IsNullOrEmpty() Method. This method is named as IsNullOrEmpty() and it is an extension methods of string class. It is used to check whether…
      • System Level Exception and Application Level Exception
        An exception is an unexpected event, which occurs during the execution of a program at runtime, which disrupts the normal flow of the program’s instructions. Sometimes during the execution of…
      • ref vs out
        In this post we’ll learn the difference between ref vs out. Both ref and out keywords in C# are used for passing arguments to methods by reference. This will allow changes to the argument…
      • What are Non-linear Data Structures?
        Data structures where data elements are not arranged sequentially or linearly are called non-linear data structures. In a non-linear data structure, single level is not involved. Therefore, we can’t traverse…
      • What is linear data structure?
        A linear data structure is a type of data structure that stores data in a linear fashion, meaning that the data is organized in a sequence. The most common examples…
      • Data Structure
        Data structures is used to structure data so that it can be used by the users in efficient way. As the computer program relies hugely on the data and also…
      • AutoMapper in C# with Examples
        In this article, I’ll discuss AutoMapper in C# with Examples. At the end of this article, you will be having a very good understanding of the followings: What is AutoMapper?…
      • Dependency Injection in C#
        This article I am going to explain how to implement Dependency Injection in C#. Dependency Injection (DI) is a software design pattern that allows us to develop loosely coupled code…
      • How to send web request to URL for getting data
        In this post we will discuss how to send web request to URL for getting data. It will be a GET request. I know in daily development practices we need…
      • How to remove HTML tags from string in c#
        In this post we will learn how to remove HTML tags from string in C#. While working in project we may need this and here below will share working sample…
      • How to Create Word Document Using C#
        In this post we will learn “How to Create Word Document Using C#”. Most of the time while working on project we need this, and I hope it will really…
      • How to read XML using C#
        In this post we will learn how to read XML using C# with the help of code sample. In our previous write-up, we initiated with an overview of XML and…
      • How to get the Current Executable’s path in C#
        In this post we will learn HOW TO GET THE CURRENT EXECUTABLE’S PATH IN C#. Most of the time while programming we need this path.    Additionally, the current folder…
      • What is abstract Class in C#
        In this article we will explain you What is abstract Class in C#, its key area and benefits. We will discuss all with the help of example below. We can…
      • Thread Lock in C#
        In this article we’ll learn about Thread Lock in C#, how locks ensure the exclusive access to the shared resources. All we’ll discuss with the help of example. When we…
      • Optional Parameters
        In this article we’ll discuss Optional Parameters in C#. The concept of ‘Optional Parameters’ was first introduced in C# 4.0. Below we’ll discuss all key points of optional parameters, how and…
      • Extension method in C#
        In this article we are going to explain you about Extension method in C#. It was introduced in C# 3.0 and used to extend the functionality of a class or type.…
      • Generics in C#
        In this article, we ae going to explain about Generics in C#. Generic means the general form, not anything specific. In C#, generic means not specific to any particular data…
      • Static Constructor in C#
        In this article, we’ll explain about Static Constructor in C# with Examples. This article will be useful to both beginners and professional C# developers. We hope at the end of this article, all your…
      • Private Constructors in C#
        In this article, we’ll explain about Private Constructors in C# with Examples. This article will be useful to both beginners and professional C# developers. We hope at the end of this article, all…
      • Finally Block in C#
        In this article we’ll talk about Finally Block in C#. What and where we can use this and about its PROS and CONS too. If you haven’t checked my previous…
      • Nesting of try-catch block in C#
        In this article we’ll discuss how to work with Nesting of try-catch block in C# program with the help of example. In C#, you can nest the try-catch block and…
      • Multiple Catch Blocks in C#: should read
        In this article we’ll discuss how to use multiple catch Blocks in C# program with the help of some example. In C#, you can use more than one catch block…
      • Pointers and use of unsafe code in C#: should read
        In this article I’ll explain pointers and use of unsafe code in C#. In the same example you will also understand the difference between value type and reference type (Stack…
      • Pointers in C#
        In this article we’ll discuss Pointers in C# with the help of example. In C#, you can use pointers but with unsafe keyword only. You can also check our related…
      • String is Reference Type or Value Type
        In this article we’ll discuss whether string is reference type or value type. Most of the time this question is asked in interview. String is reference type but always behave…
      • What Is New in C# 10?
        In this article you will learn top 5 features of C# 10 Version.
      • What is C#?
        In this post we’ll learn What is C#? and about its important fundamental concepts. C# is one of the famous Microsoft programming languages. C# is object-oriented programming language and follow all…
      • DOT NET Framework Introduction
        In this article we’ll cover DOT NET Framework Introduction and is designed for Students, beginners as well as experienced professional developers who want to prepare an interview for .NET Job.…
      • Common Language Runtime
        In this article, we’ll discuss the CLR i.e., Common Language Runtime in .NET Framework. Please check out the brief of DOT NET Framework in our last article. I hope after reading…
      • Interview Questions and Answers
        This article will cover top .NET Interview Questions and Answers and is designed for Students, beginners as well as experienced professional developers who want to prepare an interview for .NET…
      • Ado.Net Interview Questions
        In this article you will get list of Ado.Net Interview Questions at one place. It is designed for beginners as well as experienced professional developers who want to prepare an…
      • C# Interview Questions
        In this article we’ll cover “C# Interview Questions” which will clear your doubts about C#. NET and helps you in cracking the interview. What is OOP? OOP is the abbreviation…

      Note: All C# fundamental will be published on the portal soon. If you want any specific topic, please comment below or email us on info@codeconfig.in, we’ll try to publish that topic as earliest as possible.

      You can find more details about C# on Microsoft Learn.