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.

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
- Multiple Catch block in C#
- Finally Block in C# with Examples
- Nested Try- catch block | Handling inner Exceptions
C# Constructors:
C# Pointers:
- Pointers in C# | Should read this
- Pointers and use of Unsafe code in C#
- Reference type and Value type
C# Fundamentals
C# Data Types
- C# | Data Types
- C# | Difference Between int.Parse() and int.TryParse()
- What is the difference between const and readonly in C#?
- How to iterate over Enum in C#?
String
- C# | String
- string Vs. String in C#
- Select Random String from An Array in C#
- String Interpolation in C#
- How to Compare Strings in C#
- C# | String Format()
- C# | String IndexOf()
- String.Split() Method
- C# | IsNullOrWhiteSpace() Method
- C# I IsNullOrEmpty() Method
Queue-Enqueue
Data Structure
Threads
Collections
Delegates
Interview Context:
General C# Topics
- What Is New in C# 10?
- Extension method in C#
- Optional parameters / Default arguments in C#
- All about Abstract class in C#
- ref vs out
- HTML URL Encoding
- AutoMapper in C# with Examples
- Dependency Injection in C#
- How to read XML using C#
- How to get the Current Executable’s path in C#
- How to send web request to URL for getting data
- How to remove HTML tags from string in C#
- How to Create Word Document Using C#
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… Read more: Working With File Class In C#
- 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… Read more: How to Read a Text File in C#
- C# | How to use Interface referencesIn 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… Read more: C# | How to use Interface references
- C Sharp InterfaceComparable 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… Read more: C Sharp Interface
- Solve undeclared prefix error on XElement.Load()Let’s check below how to 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”.… Read more: Solve undeclared prefix error on XElement.Load()
- Develop Custom DOM object for Edge/ChromeWe 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… Read more: Develop Custom DOM object for Edge/Chrome
- C# | Classes and ConstructorsIn 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… Read more: C# | Classes and Constructors
- Polymorphism and TypesPolymorphism 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… Read more: Polymorphism and Types
- C# | Method OverloadingMethod 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… Read more: C# | Method Overloading
- C# | Method OverridingMethod 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… Read more: C# | Method Overriding
- C# | Method ParametersA 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,… Read more: C# | Method Parameters
- C# | InheritanceInheritance 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… Read more: C# | Inheritance
- C# | EncapsulationEncapsulation 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.… Read more: C# | Encapsulation
- C# | AbstractionData 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… Read more: C# | 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… Read more: ArrayList in C#
- C# | StringIn 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.… Read more: C# | String
- C# | Jump StatementsIn 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… Read more: C# | Jump Statements
- C# | Decision MakingDecision 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… Read more: C# | Decision Making
- C# | KeywordsKeywords 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.… Read more: C# | Keywords
- C# | Switch StatementIn 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… Read more: C# | Switch Statement
- C# | loopsA 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… Read more: C# | loops
- C# | OperatorsC# | 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… Read more: C# | Operators
- C# | literalsIN 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.… Read more: C# | literals
- C# | Data TypesData 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,… Read more: C# | Data Types
- C# | IdentifiersProgramming 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… Read more: C# | Identifiers
- 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… Read more: Build Vs. Rebuild Vs. Clean
- 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.… Read more: Difference Between int.Parse() and int.TryParse()
- 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… Read more: Must Read – Delegate in C#
- 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… Read more: Must check – string Vs. String in C#
- Visual Studio Tip: Quickly convert for to foreach loopLet’s learn below a Visual Studio Tip: Quickly convert for to foreach loop. Visual Studio 2017 IDE provides quick refactoring using Quick Actions and Refactoring. Refactoring is a process of… Read more: Visual Studio Tip: Quickly convert for to foreach loop
- How to Colorize Document Tabs in Visual Studio 2022Here’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… Read more: How to Colorize Document Tabs in Visual Studio 2022
- Must know- You can drag & drop multiple tabs or even pin / unpin them together in Visual StudioA 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… Read more: Must know- You can drag & drop multiple tabs or even pin / unpin them together in Visual Studio
- 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… Read more: Must know – Pinned tabs never hide in visual Studio?
- Using multipurpose Command Window to execute things faster in Visual StudioVisual 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.… Read more: Using multipurpose Command Window to execute things faster in Visual Studio
- Difference between Start Debugging & Start without Debugging in Visual StudioIn 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… Read more: Difference between Start Debugging & Start without Debugging in Visual Studio
- 11 Effective Debugging Tips for .NET DeveloperAs 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… Read more: 11 Effective Debugging Tips for .NET Developer
- How to use “Run to Cursor” while debugging in Visual StudioIn 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… Read more: How to use “Run to Cursor” while debugging in Visual Studio
- How to Debug Multithreaded ProgramIn 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… Read more: How to Debug Multithreaded Program
- Calling Methods using Watch WindowIN 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… Read more: Calling Methods using Watch Window
- Key tips on Customizing Debugging Window View in Visual StudioIn 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… Read more: Key tips on Customizing Debugging Window View in Visual Studio
- How to Get Object Generation using Watch WindowIf 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… Read more: How to Get Object Generation using Watch Window
- 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… Read more: How to use out of scope object within Conditional Breakpoint?
- 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… Read more: How to stop debugger after a specific number of breakpoint hit?
- 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… Read more: How to use Runtime Objects in Watch Window during Debugging in Visual Studio?
- How to Hide Methods from debugger Using DebuggerHidden attributeIn 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… Read more: How to Hide Methods from debugger Using DebuggerHidden attribute
- Using Quick Actions in Visual Studio to upgrade project’s language versionLets Learn below how to “Use 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… Read more: Using Quick Actions in Visual Studio to upgrade project’s language version
- How to Choose C# Language latest version (minor release) in Visual StudioIn 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#… Read more: How to Choose C# Language latest version (minor release) in Visual Studio
- Keep Visual Studio debugger ON when the browser is closedWe 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… Read more: Keep Visual Studio debugger ON when the browser is closed
- Quickly navigate through Visual Studio IDEYou 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.… Read more: Quickly navigate through Visual Studio IDE
- 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… Read more: How to Quickly Move Between Methods in Visual Studio?
- Multiple Rows for Tabs in Visual Studio 2022In 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… Read more: Multiple Rows for Tabs in Visual Studio 2022
- 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?… Read more: What is the difference between const and readonly in C#?
- 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… Read more: How to iterate over Enum in C#?
- 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… Read more: How to get number of Application Insights events from Visual Studio?
- Visual Studio 2022: Quickly Reopen the Closed FilesHave 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.… Read more: Visual Studio 2022: Quickly Reopen the Closed Files
- HTML URL EncodingIn 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… Read more: HTML URL Encoding
- 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… Read more: Select Random String from An Array in C#
- 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… Read more: String Interpolation in C#
- 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.… Read more: How to Compare Strings in C#
- 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… Read more: C# | String Format()
- 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… Read more: C# | String IndexOf()
- C# | Queue.Enqueue() MethodIn 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… Read more: C# | Queue.Enqueue() Method
- C# | Queue with ExamplesIn 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)… Read more: C# | Queue with Examples
- String.Split() MethodIn 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… Read more: String.Split() Method
- C# | IsNullOrWhiteSpace() MethodIn 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… Read more: C# | IsNullOrWhiteSpace() Method
- C# I IsNullOrEmpty() MethodIn 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… Read more: C# I IsNullOrEmpty() Method
- System Level Exception and Application Level ExceptionAn 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… Read more: System Level Exception and Application Level Exception
- ref vs outIn 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… Read more: ref vs out
- 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… Read more: What are Non-linear Data Structures?
- 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… Read more: What is linear data structure?
- Data StructureData 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… Read more: Data Structure
- AutoMapper in C# with ExamplesIn 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?… Read more: AutoMapper in C# with Examples
- 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… Read more: Dependency Injection in C#
- How to send web request to URL for getting dataIn 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… Read more: How to send web request to URL for getting data
- 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… Read more: How to remove HTML tags from string in c#
- 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… Read more: How to Create Word Document Using C#
- 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… Read more: How to read XML using C#
- 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… Read more: How to get the Current Executable’s path in C#
- 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… Read more: What is abstract Class in C#
- 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… Read more: Thread Lock in C#
- Optional ParametersIn 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… Read more: Optional Parameters
- 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.… Read more: Extension method in C#
- 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… Read more: Generics in C#
- 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… Read more: Static Constructor in C#
- 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… Read more: Private Constructors in C#
- 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… Read more: Finally Block in C#
- 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… Read more: Nesting of try-catch block in C#
- Multiple Catch Blocks in C#: should readIn 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… Read more: Multiple Catch Blocks in C#: should read
- Pointers and use of unsafe code in C#: should readIn 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… Read more: Pointers and use of unsafe code in C#: should read
- 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… Read more: Pointers in C#
- String is Reference Type or Value TypeIn 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… Read more: String is Reference Type or Value Type
- 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… Read more: What is C#?
- DOT NET Framework IntroductionIn 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.… Read more: DOT NET Framework Introduction
- Common Language RuntimeIn 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… Read more: Common Language Runtime
- Interview Questions and AnswersThis 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… Read more: Interview Questions and Answers
- Ado.Net Interview QuestionsIn 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… Read more: Ado.Net Interview Questions
- C# Interview QuestionsIn 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… Read more: C# Interview Questions
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.