About C#

C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg. This tutorial will teach you basic C# programming and will also take you through various advanced concepts related to C# programming language. C# programming is very much based on C and C++ programming languages.

Related resources for C#
  • Implementation of String Manipulation in C# 9.012/29/2024 4:03:40 AM. Explore various string manipulation techniques in C# 9.0, including concatenation, searching, replacing, and more. Learn how to leverage these methods to write cleaner and more efficient code.
  • Using Regex in C# 9.012/28/2024 11:51:18 AM. Regular Expressions (Regex) can help with text processing, validating data, and manipulating strings in C# 9.0. This article explains the key features, applications, and benefits of using Regex in you
  • Discover the Exciting New Features in .NET Aspire 912/27/2024 4:56:11 AM. .NET Aspire 9 is here, bringing a host of powerful features and enhancements to help developers build, manage, and deploy applications faster and more efficiently. As the latest major release from Mic
  • Check Armstrong Number in Different Ways Using C#12/26/2024 4:14:41 AM. In this article, we will create a program in C# to check if the entered number is an Armstrong number or not. Explore various methods to check Armstrong numbers in C#, including while loops, for loops
  • Essential C# Keywords12/25/2024 2:03:05 PM. This article explains important C# keywords that help in writing more efficient code. It covers keywords like volatile, value, get, set, yield, partial, and where, describing their uses in a simple ma
  • Null Coalescing vs Null Conditional in Clean Code 12/24/2024 2:38:37 PM. In this article, I will demonstrate Null Coalescing (??) and Null Conditional (?.). It is a common challenge in programming, but modern languages like C# offer elegant solutions. The null coalescing o
  • Hello World! In 20 Different Programming Languages12/24/2024 9:01:37 AM. In this article, we are going to see how to print “Hello World” in 20 different programming languages. Explore how to print "Hello, World!" in 20 popular programming languages, showcasing sy
  • Enhancing Performance and Responsiveness Using Threading in C#12/23/2024 4:41:18 AM. Discover how to use threading in C# to make your applications faster and more responsive by running multiple tasks at the same time. Learn key concepts, practical examples, and best practices.
  • Optimized Aviation: Enhancing Flight Scheduling and Air Traffic12/23/2024 4:31:28 AM. C# can be utilized to develop efficient algorithms for flight scheduling and air traffic control, ensuring safe and timely aircraft movements in the increasingly complex world of aviation.
  • Understanding Deconstruction in C#12/22/2024 5:39:29 AM. Deconstruction in C# and its use. Explore C# deconstruction to simplify object breakdown into variables using tuples or custom types, improving code readability, conciseness, and flexibility while enh
  • How To Count Occurrence Of Each Character From The String In C#12/21/2024 5:17:41 AM. Learn how to count the occurrence of each character in a string using C#. This guide covers step-by-step instructions to efficiently analyze strings and determine the frequency of individual character
  • How to use AutoMapper in .NET Web API12/20/2024 10:25:32 AM. In this article, we are going to explore how to use AutoMapper in the .NET Web API Application with examples. How to use AutoMapper in .NET Web API
  • How To Remove Duplicate Characters From String In C#12/18/2024 10:15:00 AM. Learn how to remove duplicate characters from a string in C# with simple and effective methods. it will cover various approaches, including using loops, LINQ, and HashSet, to streamline string manipul
  • Understanding Dictionary in C#12/16/2024 9:36:06 AM. In this article, we will learn about the potential of C#'s Dictionary collection type with this comprehensive guide. Learn essential operations, iterate through key-value pairs, and explore advan
  • Implementing Versioning in ASP.NET Core WebAPI12/16/2024 9:19:48 AM. Implementing Versioning in ASP.NET Core WebAPI. This article provides a step-by-step guide to implementing versioning in ASP.NET Core WebAPI, enabling backward compatibility, managing API changes, and
  • Implement Basic, Custom and Multiple Health Checks in .NET Web API12/16/2024 4:51:56 AM. In this article, we are going to learn about Implement Basic, Custom and Multiple Health Checks in .NET Web API. This article explains Health Check implementation in .NET Web API, covering basics, cus
  • Explaining Duck Number in C#12/16/2024 4:23:56 AM. In this article, I will discuss the Duck Number in C# with various examples. It includes detailed explanations and practical C# implementations.
  • SQS Message Polling using C#12/15/2024 5:49:24 AM. This article explores integrating Amazon Simple Queue Service (SQS) with C# applications, covering essential concepts like long polling, receiving messages, and using the AWS SDK for .NET.
  • Git GUI Clients (1), Visual Studio12/13/2024 5:44:49 PM. This article will discuss Visual Studio as a client of Source Control Server. This series dives into various Git GUI clients, detailing features like repository management, interaction with local and
  • Git GUI Clients (2), VS Code12/13/2024 5:42:21 PM. This series explores various Git GUI clients like Visual Studio, VS Code, GitHub Desktop, TortoiseGit, and SmartGit, focusing on their features for repos management, interaction between local and remo
  • Character Occurrence in a String in C#12/13/2024 10:39:55 AM. In this article, I will discuss how to count the number of occurrences of a character in a string in C# with Examples. This article explores various ways to count character occurrences in a string usi
  • Enhancing Performance and Responsiveness Using Threading in C# 12/13/2024 10:24:18 AM. Discover how to use threading in C# to make your applications faster and more responsive by running multiple tasks at the same time.
  • Connection String in ASP.NET Core MVC .NET 812/13/2024 4:56:47 AM. Learn how to manage and use connection strings in applications, explore AppSettings.json, environment variables, and static classes, and understand their implementation with sample code for seamless d
  • Dining Philosophers Algorithm in C# with Real World Implementation 12/13/2024 4:34:37 AM. Explore the practical implementation of the Dining Philosophers algorithm in C# to understand resource allocation and synchronization in concurrent programming.
  • AES Encryption in C# Protecting Sensitive Information12/12/2024 11:37:37 AM. Discover how to effectively implement AES encryption in C# to secure sensitive data in real-world applications, enhancing data privacy and security.
  • Real-Time Algorithm Creation for Traffic Signal Handling in C#12/12/2024 8:42:18 AM. Explore the development of a real-time traffic signal handling algorithm in C#, designed to dynamically adjust signal timings based on current traffic conditions to improve flow and reduce congestion.
  • Introduction To Minimal API in ASP.NET Core12/12/2024 8:34:43 AM. Minimal APIs in ASP.NET Core are a streamlined approach to building web APIs designed to be lean and efficient. ASP.NET Core Minimal APIs simplify web API development with concise syntax, reduced boil
  • Optimizing Networks with Minimum Spanning Tree in C#12/12/2024 4:44:57 AM. To implement the Minimum Spanning Tree algorithm in C# to efficiently connect all nodes in a network, reducing costs and improving performance.
  • Modern Featured Entity Framework With SQLite DB Example 12/11/2024 10:31:03 AM. Learn to build a .NET Core application using C# async/await and SQLite with Entity Framework. Implement CRUD operations, handle asynchronous tasks, and explore efficient database interaction using Vis
  • The Complete Guide to NUnit Testing in C# 13 and .NET 912/10/2024 3:23:37 PM. This comprehensive guide explains NUnit testing in C# 13 with .NET 9 with detailed explanations, modern testing techniques, and practical code examples. Authored by Ziggy Rafiq.
  • How To Reverse Each Word Of Given String12/9/2024 8:45:57 AM. This article demonstrates how to reverse each word in a string using C#. It provides a simple approach to solving this common interview question, with code examples and explanations.
  • Generating Permutations Efficiently in C# with Heap's Algorithm12/9/2024 8:18:29 AM. In this article to implement Heap's algorithm in C# to generate all possible permutations of a sequence, we illustrated with a real-world scheduling problem example.
  • Efficient Task Scheduling with Round Robin Algorithm in C#12/9/2024 8:06:28 AM. Explore the implementation of the Round Robin scheduling algorithm in C#, designed to ensure fair CPU time allocation among processes, with a practical use case example.
  • Building a GPT-Based Language Model in C#12/9/2024 7:59:59 AM. In the world of AI, transformers have revolutionized the way we approach natural language processing (NLP) tasks. At the heart of these advancements is the GPT (Generative Pre-trained Transformer) arc
  • Implementing Dijkstra's Algorithm in C#12/9/2024 7:44:04 AM. Implement Dijkstra's algorithm in C# to efficiently find the shortest paths in a weighted graph, enhancing your ability to solve complex pathfinding problems in various applications.
  • Explaining Palindrome Program in C#12/9/2024 6:00:47 AM. In this article, I will discuss the Palindrome Program in C# (Palindrome Number and Palindrome String) with Examples. It includes detailed explanations and practical C# implementations.
  • Efficiently Managing Data with Binary Tree Implementation in C#12/9/2024 5:32:36 AM. This article tells you how to implement and leverage binary trees in C# to optimize data storage and retrieval, ensuring your applications run smoothly and efficiently.
  • Implement Hybrid Cache in .NET 9 + Redis Caching12/9/2024 5:18:05 AM. Hybrid cache simplifies .NET caching by unifying in-memory and distributed approaches. It supports extensible code, concurrency management, multi-source caching, Redis integration, serialization, and
  • Why You Should Participate in Hackathons12/6/2024 9:24:53 AM. Hackathons have become a cornerstone of innovation in the tech world. These dynamic events bring together like-minded individuals to collaborate, create, and solve real-world problems in a competitive
  • Design Pattern (5), Dependency Injection12/5/2024 6:35:37 PM. This article discusses Dependency Injection. This article series covers Design Patterns, starting with MVC. This specific article focuses on Dependency Injection (DI) in .NET, explaining the Dependenc
  • Palindrome Number in C#12/5/2024 8:28:36 AM. Learn to check if a number is a palindrome in C#. Understand what a palindrome number is and follow a step-by-step guide with code examples to implement it efficiently.
  • Palindrome String Program in C#12/4/2024 10:58:47 AM. Explore how to determine if a string is a palindrome in C#. Learn the concept and examples, and implement a simple solution to check palindrome strings for interview preparation.
  • Implementing Logging in C# 9.012/4/2024 4:22:37 AM. This article explores the fundamentals of logging in C# 9.0, showcasing the importance of logging and how to implement it using different frameworks such as Microsoft.Extensions.Logging, NLog, and Ser
  • How to Reverse Number in C#12/3/2024 10:21:39 AM. Learn two methods to reverse a number in C#: using arithmetic operations and `string.Reverse()`. This essential C# interview topic is explained with practical code examples and outputs.
  • Scaffolding in C# 9.0: Building Fast & Efficient Code Structures12/3/2024 8:19:58 AM. Scaffolding in C# 9.0 streamlines application development by automating code generation for controllers, views, and models. It enhances productivity with simplified syntax, improved performance, and c
  • How to Reverse a String in C#?12/3/2024 3:52:14 AM. Explore four methods to reverse a string in C#: using string.Reverse(), Array.Reverse(), for loop, and foreach loop. Ideal for interview preparation with practical examples and outputs.
  • When to Use Abstract Class vs Interface and Why?11/29/2024 5:54:53 AM. This article explains when to use abstract classes vs. interfaces in C# through two scenarios. The first scenario demonstrates how abstract classes help avoid code duplication, while the second shows
  • C# Foundation - Nullable Types11/28/2024 11:22:29 AM. This article covers the basics, syntax, and practical use cases of nullable types, enabling you to write safer, more reliable code by avoiding null reference errors effectively.
  • What is Params In C#?11/28/2024 4:49:01 AM. In C# programming, the "params" keyword plays a crucial role in enhancing flexibility and convenience when dealing with methods that accept a variable number of the same type of parameters.
  • High-Performance Apps Using C# Span<T>11/27/2024 11:35:46 AM. Often in application we come scenarios where we need to perform string manipulation operations. In such cases using string type take up huge memory as it is immutable. Instead Span can be used, which
  • Factory Design Pattern Using Delegates In C#11/27/2024 9:52:19 AM. Factory Pattern is a creational design pattern that provides a way to encapsulate object creation. Instead of directly instantiating objects, you delegate the creation process to a factory class.
  • Learn To Use FileSystemWatcher in .NET 911/27/2024 5:12:47 AM. This article covers the setup, key features, and practical examples for tracking events like the creation, modification, deletion, and renaming of files or folders, making your file-handling tasks sea
  • Format Literal Strings in C#11/26/2024 10:10:49 AM. Different techniques to display special characters and add different types of formatting to the output. This article explores C# string literals, including regular, verbatim, and interpolated strings,
  • Exploring Advanced Generics in C#: A Practical Guide with Examples11/25/2024 7:00:44 AM. This article aims to provide a guided tour of some advanced topics in C# generics, such as constraints, covariance and contravariance, and custom generic interfaces.
  • Limit Concurrent Execution in Asynchronous Methods11/24/2024 7:43:01 AM. In this article, we will learn how to finely control how many concurrent executions we will allow of our async methods, without blocking, using a semaphore.
  • Bulk Import of ID Card Data from Excel in ASP.NET MVC C#11/22/2024 11:33:20 AM. This guide covers the process of parsing Excel files, extracting data, and inserting it into a database, ensuring smooth data handling and optimization for large datasets in a seamless, automated proc
  • Integrating Demo Registration with External APIs in ASP.NET MVC C#11/22/2024 6:17:39 AM. We delve into the implementation of integrating an external API for vehicle registration within an ASP.NET MVC application. The method, Addadminvehicle, serves as a bridge between the web application
  • Advanced C# 13 and .NET 9 Features for Expert .NET Engineers11/22/2024 5:43:02 AM. With this guide, you will learn about enhanced pattern matching, static abstract members, Native AOT, and much more in C# 13 and .NET 9. Written by Ziggy Rafiq, this is the best resource for experienc
  • .NET 9 CountBy: A New LINQ Powerhouse11/20/2024 7:19:31 AM. .NET 9 introduces the CountBy method, a powerful addition to LINQ that enhances querying capabilities. This feature allows developers to count elements based on specified conditions efficiently.
  • What's New in C# 13?11/19/2024 10:08:54 AM. C# 13 introduces versatile features like enhanced `params` collections, scoped locking, and partial properties, boosting code flexibility, performance, and developer productivity for high-quality appl
  • What's New in ASP.NET Core 9?11/19/2024 10:07:33 AM. C# 13 enhances developer productivity with features like flexible params collections, scoped locks, and partial properties, allowing for streamlined coding, improved performance, and robust thread saf
  • Use of ItemsControl in WPF C# for Flexible UI Design11/19/2024 4:38:09 AM. This guide explores data binding, templates, and customization techniques for crafting sophisticated layouts. Enhance your WPF skills and unlock the full potential of ItemsControl for efficient UI dev
  • Explaining Dutch National Flag problem11/19/2024 3:59:58 AM. The problem involves sorting an array containing three distinct values, typically represented as 0s, 1s, and 2s, in a single pass.
  • .NET 9 : Task.WhenEach11/18/2024 11:56:11 AM. In .NET 9, the new Task.WhenEach method enhances asynchronous programming by processing tasks as they complete, allowing for more efficient handling of varying completion times. Happy coding!
  • How to Read and Write JSON Files in C#11/17/2024 10:49:03 AM. JSON is a common data format used in APIs, configuration files, and data exchange. Learn to handle JSON in C# using `System.Text.Json`. This article covers creating data models, writing to and readin
  • Repository Pattern in .NET Core for Clean Data Access11/15/2024 11:24:56 AM. Learn how to separate business logic from data logic, enhance testability, and reduce code duplication. By following these best practices, you’ll achieve modular, scalable applications in .NET Core.
  • .NET 9 : Params Collections11/15/2024 10:41:05 AM. In .NET 9 the params keyword has been extended to support not only arrays but also other collection types like ReadOnlySpan&lt;T&gt; and IEnumerable&lt;T&gt;. This enhancement offers greater flexibili
  • .NET 9 is Out Now11/15/2024 8:47:33 AM. This article explains in detail the latest release of .NET. The latest .NET ecosystem updates improve performance, security, and productivity across C# 13, ASP.NET Core, EF Core, .NET Runtime, Librari
  • Sorting with IComparable in C#11/14/2024 11:00:04 AM. Learn how to implement the IComparable interface in C# to customize sorting behavior for objects. Explore sorting techniques, comparisons, and examples to efficiently order data in collections like li
  • Testing API Endpoints Using C# and Swagger11/14/2024 6:02:21 AM. Learn how to test API endpoints effectively using C# and Swagger. This guide covers setting up Swagger for API documentation, configuring C# for testing endpoints, and automating tests to ensure relia
  • Understanding IEnumerable In C#11/14/2024 5:49:01 AM. IEnumerable in C# is an interface that defines a standard way to iterate over a collection of objects. The IEnumerable interface in C# provides a standard, efficient way to iterate over collections us
  • Visual Studio Builds and Key Features11/14/2024 5:13:31 AM. Visual Studio Builds Since 2005 and main key features. Explore the growth of Visual Studio, Microsoft&#39;s premier Integrated Development Environment, from its inception in 1997 to the latest feature
  • Converting HTML to PDF or Image in C# Using wkhtmltopdf Part 2 - Header & Footer11/13/2024 9:32:17 AM. In this tutorial, learn how to convert HTML to PDF or image in C# using wkhtmltopdf. This part covers adding and customizing headers and footers in your generated PDFs, enhancing document structure an
  • Types of Error Handling in Web API .NET 8 with Example11/13/2024 6:37:48 AM. Error handling is a mechanism to take control of unexpected situations that occur in the system during processing and return any helpful error response from a NET 8 Web API. That said, here are some d
  • KISS - Keep It Simple Stupid11/8/2024 11:39:50 AM. In this video, you will learn how to create scalable, maintainable, and on-budget software while explaining application rewrite - a piece of software with a C# .NET backend and a React front end.
  • Dev Tunnel in Visual Studio Simplifies Local Development11/5/2024 3:40:41 AM. Explore the Dev Tunnel feature in Visual Studio 2022, designed to streamline local development and debugging. This powerful tool allows developers to create a secure connection to their remote environ
  • Explaning IExceptionFilter in .NET Core11/4/2024 4:16:41 AM. This article explores ASP.NET Core&#39;s `IExceptionFilter`, which enables centralized exception handling. It highlights its advantages, such as separation of concerns, consistent error responses, and
  • Understanding API Gateways in Microservices11/1/2024 5:34:50 AM. The API Gateway pattern centralizes client requests, managing authentication, logging, rate limiting, and load balancing, optimizing resilience and scalability in complex microservice architectures th
  • Skip loops, use Virtualization in Blazor11/1/2024 4:30:17 AM. Let me teach you faster way of loading the list.
  • Explaining 3SUM Problem10/31/2024 4:38:50 AM. 3SUM Problem a classic problem in computer science and is often used in coding interviews to test problem-solving skills and understanding of algorithms.
  • How to Store Temporary Information in Table Like Format in C#?10/28/2024 8:56:49 AM. In this article, we will learn how to manipulate and manage in-memory data effectively, allowing for quick access and modifications while maintaining a structured format for your applications.
  • Create a Model with Database Table in .NET 8 using EF Core10/28/2024 7:16:12 AM. This article guides you through creating a data-driven application using .NET 8 and Entity Framework Core. You&#39;ll learn to define a model, configure a DbContext, set up a SQL Server connection str
  • DDoS Attacks and Prevention using .NET Core10/28/2024 6:30:12 AM. This article covers the basics of DDoS (Distributed Denial of Service) attacks and prevention methods in .NET Core. It explains how to identify DDoS symptoms and apply preventive techniques, including
  • How to Download Data as CSV in C# Blazor App10/25/2024 5:46:03 AM. In this article, we will explore the process of downloading data as a CSV (Comma-Separated Values) file in C#. CSV files are widely used for data interchange due to their simplicity and ease of use.
  • Mastering API Testing with Api.http Files in .NET Projects10/23/2024 6:06:57 AM. The Api.http file in a .NET project is a text file containing one or more HTTP requests that can be executed directly from the development environment, such as Visual Studio or Visual Studio Code. Thi
  • Example of Aspect Oriented Paradigm with DispatchProxy Class 10/23/2024 5:25:01 AM. This article explores how to implement cross-cutting concerns in .NET using the DispatchProxy class. It demonstrates dynamic proxy creation for logging and other concerns, highlighting the benefits of
  • Array to Text File: Detailed Overview of ArrayIOExtensionsLib Class10/22/2024 10:04:42 AM. This article provides a comprehensive overview of the ArrayIOExtensionsLib class, detailing its functionality for converting arrays to text files in C#. We explore its key features, methods, and pract
  • An in-depth Look at Advanced Pattern Matching in C# 1210/22/2024 5:27:09 AM. With Ziggy Rafiq, learn how to leverage advanced pattern matching features in C# 12, including the new let pattern and enhanced recursive patterns.
  • Vertical Slice Architecture with Code Examples in C# 1210/22/2024 5:02:12 AM. Get an overview of vertical slice architecture in C# 12 with Ziggy Rafiq. Build maintainable, scalable applications using feature-based organization with code examples, MediatR, and record types.
  • Encapsulation vs Abstraction in C#10/21/2024 9:52:41 AM. Encapsulation and abstraction are fundamental concepts in C# and object-oriented programming. Encapsulation refers to the bundling of data and methods that operate on that data within a class, promoti
  • Explaning Bucket Sort Algorithm10/21/2024 5:57:49 AM. The `BucketSort` class implements the bucket sort algorithm, which distributes elements into buckets, sorts them, and merges the sorted buckets. It&#39;s efficient for uniformly distributed data, with
  • Using Attributes and Metadata in C# 1210/21/2024 5:38:45 AM. Ziggy Rafiq demonstrates how to use attributes and metadata in C# 12 including improvements in parameter types, reflection capabilities, and best practices for maintaining self-documenting code.
  • Boyer-Moore Majority Vote Algorithm10/21/2024 4:08:19 AM. The Boyer-Moore Majority Vote Algorithm efficiently finds elements appearing more than a fraction of the time in linear time and constant space, using two candidates and counters to track occurrences.
  • Training on using WebForms Core Technology to Upload Images10/19/2024 2:52:21 PM. In this article, using WebForms Core technology, we will teach you how to send images to the server and display the images sent in the client.
  • Implementing an LRU Cache in C#10/15/2024 8:37:55 AM. This article explores the concept of caching, outlines the algorithm&#39;s mechanics, and provides step-by-step guidance on building an efficient LRU Cache using C# collections.
  • Explaining IResultFilter in ASP.NET Core10/14/2024 6:03:23 AM. This article explores the ASP.NET Core `IResultFilter`, which allows custom logic execution before and after an action result. It discusses advantages and disadvantages and includes an implementation
  • Calling Web API to Web API without User Interaction by using Azure Managed Identity10/14/2024 5:59:13 AM. This article will walk you through connecting two web APIs without any login or user interaction. It is referred to as &quot;Server-to-Server&quot; or &quot;Service-to-Service&quot; communication. You
  • How To Read CSV File Using C#10/14/2024 4:03:46 AM. This article demonstrates how to read Excel files using Microsoft&#39;s Interop Excel library in a C# Windows application. It covers adding references, handling file extensions, and displaying Excel d
  • Get All Instances of SQL Server in C#10/11/2024 12:29:27 PM. If you&#39;re writing a Database Manager application or simply want to retrieve all the instances,this trick might come in handy.
  • What is JSON and Why Is It So Important?10/10/2024 9:39:39 AM. JSON (JavaScript Object Notation) is a lightweight, language-independent data format that represents key-value pairs, supporting strings, numbers, arrays, objects, and complex structures widely used f