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#
  • 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'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'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'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 "Server-to-Server" or "Service-to-Service" 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'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'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
  • Simple Load Balancer in .NET Core with YARP10/8/2024 3:40:14 AM. Load balancing ensures efficient traffic distribution in distributed systems. YARP enables load balancing with sticky sessions for consistent routing, improving scalability, performance, and availabil
  • What is Inline Arrays in C# 1210/7/2024 6:44:43 AM. C# 12 unveils a hidden gem - inline arrays. This article delves into these performance powerhouses, showcasing how they boost speed, simplify memory management, and enhance type safety. Discover their
  • Real-World Expression Trees: Dynamic Filtering in C# with Minimal API10/6/2024 7:51:48 AM. This article explores the practical use of expression trees in C# by building an ASP.NET Core web API with dynamic filtering functionality. It demonstrates how to construct flexible queries using expr
  • A Virtual Photo Album in C# and .NET10/3/2024 11:33:00 AM. This album allows you to drag your images directly from Windows Explorer into the spot you want your picture to occupy. You can also edit the captions by clicking on the labels under the pictures.
  • How to Compare Two Objects in C#10/3/2024 7:08:40 AM. In this article, we’ll walk through how to create a generic method that can compare the objects of any class, even those with nested collections. We’ll break it down step by step so you can implement
  • Delete the Element from the Binary Tree Using C#10/3/2024 5:04:27 AM. Learn how to efficiently delete an element from a binary tree using C#. This guide covers the complete process of node deletion, including leaf nodes, nodes with one or two children, and root node rem
  • Find And Replace Text In Word Document Using C#10/1/2024 9:09:25 AM. Learn how to efficiently find and replace text in a Word document using C#. This guide covers essential concepts such as Microsoft Word automation, leveraging the Word Interop library, and implementin
  • Collections in C#10/1/2024 9:06:58 AM. This article describes Collections in C#. A collection is a way to create and manage groups of related objects. The group of objects can grow and shrink dynamically depending on the requirements in th
  • Understanding the Working of Garbage Collector in .NET 99/30/2024 10:27:30 AM. The .NET 9 Garbage Collector enhances memory management through dynamic tuning, improved generation collections, and a refined compaction algorithm, ensuring efficient, automated memory handling while
  • Palindrome Check: Normalize Strings in C#9/30/2024 4:32:32 AM. Learn essential string manipulation techniques, including whitespace removal, case insensitivity, and character comparison. We’ll provide clear code examples and algorithms to efficiently determine if
  • Understanding the Concept of Rule Engine through Shopping Cart Discount feature9/29/2024 4:59:27 AM. This article explores how a rule engine can be used to implement a shopping cart discount feature, automating discount logic based on conditions such as cart value, product category, and promotions.
  • Inserting Form Data Into DataBase Using Stored Procedure In ASP.NET C#9/27/2024 10:10:24 AM. Learn how to insert form data into a database using stored procedures in ASP.NET with C#. This guide covers setting up a form, handling user input, creating a stored procedure, and securely inserting
  • REPR Pattern - For C# Developers9/27/2024 8:14:53 AM. Discover the REPR Pattern, a powerful design technique tailored for C# developers. Learn how this pattern can simplify code structure, improve maintainability, and optimize performance in C# applicati
  • How Func Delegates Work in LINQ9/27/2024 4:31:27 AM. In this article, we explore how Func delegates operate within LINQ (Language Integrated Query) in C#. Func delegates enable concise and powerful data manipulation by allowing developers to pass method
  • QUIZ Application With ASP.NET MVC 59/26/2024 8:45:26 AM. Create a dynamic Quiz Application using ASP.NET MVC 5, showcasing the power of the Model-View-Controller architecture. This project involves user authentication, database integration for question mana
  • Solid Introduction to Expression Trees in C#9/26/2024 4:50:55 AM. This article provides a comprehensive introduction to Expression Trees in C#. You'll learn about their structure, how they represent code as data, and their applications in LINQ queries.
  • Understanding Callbacks with Func and Action Delegates9/26/2024 4:11:38 AM. This article explains how to use Func and Action delegates in C# to implement callbacks, providing flexible and reusable code. It includes practical examples for both returning and non-returning metho
  • Sitecore Experience Editor Tips for Content Author Instructions9/26/2024 3:38:16 AM. This article demonstrates how to use a helper method in Sitecore to display informative or warning messages within the Experience Editor, aiding Content Authors in managing components effectively.
  • How C# Generics is different from Java Generics9/24/2024 11:29:42 AM. In this article, we explore the distinctive features of C# generics and how they enhance programming efficiency. We compare generics with non-generic types, focusing on benefits like type safety, code
  • Using C# 12 with Clean Code Practices9/21/2024 3:37:12 PM. Learn how to write cleaner, more maintainable code with C# 12 features such as primary constructors and improved pattern matching. This article explores practical examples and tips for applying clean
  • With code examples, learn how to develop ASP.NET Core C# 12 using domain-driven design9/21/2024 4:15:04 AM. In this guide, you will learn how to develop applications using ASP.NET Core with C# 12, applying domain-driven design principles. Through clear code examples, we’ll explore how to create effective do
  • A Comprehensive Guide to Migrating Azure Functions C# to C# 12 with .NET 8 Isolated9/21/2024 4:12:20 AM. Ziggy Rafiq shows how to leverage modern C# features, and how to optimize the performance and scalability of Azure Functions by migrating them to .NET 8 Isolated Processes.
  • C# Code To Overcome "The Process Cannot Access The File XYZ Because It Is Being Used By Another Process" Error9/20/2024 6:27:51 AM. This guide provides practical C# code solutions for handling file access issues, including techniques for managing file locks and ensuring smooth file operations without interruptions.
  • Design Principle (2): Inversion of Control (IoC) Principle9/19/2024 3:44:37 PM. This series delves into Software Design Principles, with a focus on the Inversion of Control (IoC) Principle in this article. It covers Dependency Inversion, Dependency Injection, IoC Containers, and
  • Ignoring Merge Conflicts for Files in Git, Visual Studio9/18/2024 12:55:54 PM. This article is to discuss Git Merge with ignoring some conflict files. This article addresses resolving merge conflicts in Git when multiple users modify the same file. It covers project setup, confl
  • An overview of the Task Parallel Library (TPL) in C#9/17/2024 5:07:16 AM. The Task Parallel Library (TPL) is a collection of public types and APIs within the .NET framework that facilitates the integration of parallelism and concurrency into applications.
  • A New Era of .NET Development with MongoDB - Software Architecture Conference9/16/2024 11:10:36 AM. In this video, you'll learn how MongoDB is improving the .NET/C# developer experience with the MongoDB Provider for Entity Framework Core (EFCore), alongside other integrations like Microsoft Sema
  • Explaning IActionFilter in ASP.NET Core9/16/2024 10:52:30 AM. This article explains ASP.NET Core's `IActionFilter`, highlighting its use in handling cross-cutting concerns like logging, validation, and authentication while outlining its advantages and potent
  • Explaning IExceptionFilter in .NET Core9/16/2024 10:41:53 AM. This article explores ASP.NET Core's `IExceptionFilter`, which enables centralized exception handling. It highlights its advantages, such as separation of concerns, consistent error responses, and
  • POCO to Dictionary Conversion Techniques in C#9/16/2024 5:02:08 AM. This article explores five methods for converting a C# POCO to a dictionary using reflection, LINQ, JSON libraries, and ExpandoObject, comparing their performance through Benchmark.NET to find the bes
  • What is Indexer in C#?9/13/2024 5:39:00 AM. An indexer in C# allows objects to be indexed like arrays, enabling access to elements using an index. It’s defined with this keyword and can be used to encapsulate data access in a class or struct. I
  • Create A Simple Web Service In ASP.NET Using C#9/12/2024 6:14:14 AM. This guide covers building a REST API, handling HTTP requests, and integrating with JSON/XML data formats. Ideal for beginners, it provides step-by-step instructions using Visual Studio, focusing on p
  • Explain Switch Case Uses in C#9/11/2024 6:46:10 AM. In C#, the switch statement serves as a control structure that enables the execution of distinct code blocks based on the value of a variable. It is frequently utilized when there is a need to compare
  • Entity Framework Core Code-First Approach with Seed Data9/9/2024 7:11:51 AM. It will be beneficial to beginners who are struggling with Entity Framework Core and Creating Code-First Approach. The EF-Core Code-First approach involves creating domain classes first and then gener
  • Lazy Loading (3): JavaScript9/5/2024 7:46:58 PM. This article will discuss Lazy Loading for JavaScript. This article on Lazy Loading for JavaScript demonstrates techniques to dynamically load images as users scroll, reducing page load time and enhan
  • Working With FTP Using C#9/5/2024 11:26:20 AM. Learn how to work with FTP (File Transfer Protocol) using C# in this comprehensive guide. Explore how to connect to FTP servers, upload and download files, and manage file transfers programmatically.
  • Export Large Data from GridView to Excel File using C#9/5/2024 11:00:25 AM. Learn how to export large data from a GridView to an Excel file in C#. This guide covers the steps to efficiently handle and export substantial datasets, ensuring smooth data transfer to a spreadsheet
  • Serialization And Deserialization In C# Using Protobuf-net.dll9/4/2024 6:53:55 AM. This article describes how to implement serialization and deserialization using Protobuf-net.dll. This article explores Protobuf-net, a .NET library for efficient serialization and deserialization usi
  • Explain Primary Constructor in C# 129/4/2024 6:23:27 AM. The primary constructor in C# 12 introduces a new way to define and initialize properties directly within the class declaration, simplifying object creation and reducing boilerplate code.
  • A Guide to Using the Decorator Pattern in Your C# Code9/4/2024 5:40:43 AM. In this article, we will learn how to implement this pattern in your C# code, improve code reusability, and follow best practices for more maintainable and flexible software design.
  • Web API in Azure (2), Set a Client Credential Secret9/2/2024 10:31:29 PM. This article will discuss how to Set a Client Credential Secret for Azure Web API. This series of articles guides users through setting up and consuming a Web API registered on the Azure Identity Plat
  • Advance Chat Application with .NET and SignalR9/2/2024 8:30:14 PM. Build an advanced real-time chat app with .NET 8, SignalR, and MS-SQL. This guide covers creating a chat app with one-to-one and group messaging, utilizing ASP.NET Identity for user roles and permissi
  • Using Factory Patterns in C# 12 to simplify A/B testing8/31/2024 4:40:36 AM. Find out how Ziggy Rafiq simplifies A/B testing with feature toggles in C# 12 by using Factory and Abstract Factory design patterns.
  • Dynamic LINQ with Gridify in .NET8/30/2024 6:07:05 AM. Learn how to leverage Gridify to simplify complex filtering, sorting, and pagination tasks. Perfect for developers seeking to optimize and extend their use of LINQ in C# applications.
  • C# 12 Design Patterns: Factory and Abstract Factory8/29/2024 2:29:42 PM. By Ziggy Rafiq, discover how Factory and Abstract Factory design patterns simplify the creation of complex objects in C# 12.
  • Ethical AI Development in C#: Ensuring Fairness and Transparency8/29/2024 8:30:10 AM. It covers strategies for identifying and mitigating bias, implementing transparent algorithms, and adhering to responsible AI practices to build trustworthy systems.
  • Interface Re-implementation in C#8/29/2024 6:04:07 AM. This guide covers the principles of object-oriented programming, including inheritance and polymorphism, and demonstrates practical techniques for effective interface re-implementation and code refac
  • RESTful API Design with .NET8/29/2024 5:49:32 AM. Explore the principles of RESTful design and learn how to implement robust, scalable, and maintainable web APIs in a .NET environment. This guide covers key REST concepts like statelessness, client-se
  • Abstract Factory Design Pattern in .NET Core C# 128/29/2024 4:29:33 AM. In this detailed article by Ziggy Rafiq, you will learn how to implement key components like AbstractFactory, ConcreteFactory, AbstractProduct, and ConcreteProduct in .NET Core with C# 12. By leveragi
  • Default Implementation in C# Interfaces8/28/2024 9:00:12 AM. This article details creating a `StringUtils` utility class in Java to centralize common string operations. It covers methods for checking if a string is alphanumeric with underscores or consists sole
  • Understanding CQRS Design Pattern8/28/2024 5:57:21 AM. CQRS (Command Query Responsibility Segregation) is a pattern that separates the responsibilities of reading and writing data into distinct models. This separation can help optimize both aspects indepe
  • Understanding Dependency Inversion Principle (DIP) with C#8/27/2024 9:40:32 AM. This guide explains how DIP enhances software design by decoupling high-level and low-level modules, promoting flexibility and maintainability. Understand its implementation using Dependency Injection
  • Integrating AI into C# Applications8/26/2024 4:07:23 AM. It covers essential concepts, tools, and techniques, helping developers enhance their C# projects with powerful AI capabilities, from machine learning algorithms to real-world applications.
  • Singleton Pattern Caching in .NET C#8/26/2024 4:05:29 AM. Learn how to implement caching using this pattern to enhance memory management, ensure thread safety, and optimize performance in your applications.
  • Understanding of Code Coverage Analysis in C#8/23/2024 7:43:58 AM. In my previous article, I explained about Unit testing in C# and in this article, we will take a look at code coverage.
  • Middleware in ASP.NET Core8/23/2024 5:00:15 AM. This content explains sharing data between Angular components via a service. It covers steps such as service creation, data sharing via click, and retrieval using data services.
  • Basics Of C#8/22/2024 10:08:56 AM. This article explains C# basics with C# code examples including C# data types, class, objects, properties, and methods. You'll also learn basic OOP concepts such as overloading, polymorphism, abst
  • Getting Started with Unit Testing in ASP.NET Core8/22/2024 7:09:07 AM. Learn about essential testing frameworks like xUnit and NUnit, explore mocking and dependency injection techniques, and gain insights into best practices for writing robust test cases. Improve code qu
  • Building an ASP.NET Core Web API with Gridify8/22/2024 5:31:08 AM. This guide walks you through setting up a .NET Core API, integrating Gridify for dynamic query handling, and enhancing your application's performance with clean, maintainable code.
  • Object-Oriented Programming (OOP) in .NET8/22/2024 5:03:34 AM. This article explores Object-Oriented Programming (OOP) within the .NET framework, focusing on core concepts such as classes, objects, inheritance, polymorphism, encapsulation, and abstraction.
  • Create QR Code Report Using RDLC Report With Preview8/21/2024 6:37:40 AM. In this article we can learn how to make our own QR code. Make a QR report using RDLC reports with preview condition.
  • Learn About Pipeline in .NET 8.08/21/2024 4:47:55 AM. Learn how to configure and optimize the .NET 8.0 pipeline for improved performance in ASP.NET Core applications. Dive into new features and enhancements in the latest .NET release.
  • Advanced gRPC Communication in .NET Core8/20/2024 7:27:56 AM. Explore advanced techniques for implementing microservices communication using gRPC in .NET Core. This article dives into high-performance, real-time communication patterns with practical code example
  • Learn Advanced CQRS with .NET Core8/20/2024 7:12:32 AM. Dive into the advanced implementation of the Command Query Responsibility Segregation (CQRS) pattern using .NET Core and MediatR. This article explains the benefits of CQRS in modern application devel
  • Brief Overview of Collection Types in C#8/20/2024 7:10:00 AM. Learn how each collection type is used in C# programming for efficient data storage and manipulation. Perfect for beginners and developers looking to strengthen their .NET skills.
  • Introduction to Guard Clauses in .NET8/20/2024 7:08:02 AM. Guard clauses in .NET are a simple yet powerful technique to improve code readability and maintainability. By handling errors and edge cases early, guard clauses prevent deep nesting and make your cod
  • Data Structures and Algorithms (DSA) using C# .NET Core — Binary Trees and Binary Search Tree (BST) - I8/20/2024 5:13:56 AM. In this article we will learn about - Binary Trees. Explore the fundamentals of trees and delve into binary trees, focusing on Binary Search Trees (BST). Understand key terminologies, tree traversal,
  • A brief introduction to ASP.NET Core using C#12 and .NET 88/18/2024 1:40:52 PM. A brief introduction to ASP.NET Core using C# 12 and .NET 8 by Ziggy Rafiq. This modern framework enables you to build cross-platform, high-performance web applications. To get started, discover key f
  • Code Examples for .NET 8 Features with C# 128/18/2024 1:22:31 PM. An in-depth look at performance enhancements, language improvements, and new libraries in this comprehensive article by Ziggy Rafiq.
  • Detailed use of Tuples and Value Tuples in C#8/16/2024 10:48:51 AM. This guide explores the detailed use of Tuples and ValueTuples in C#. It covers their differences, how to create and manipulate them, and practical examples for implementing them in real-world applica
  • Training a Sequence-to-Sequence Model Using C#8/16/2024 7:32:11 AM. Explore how to train a Sequence-to-Sequence model using C#. This guide covers the fundamentals of Sequence-to-Sequence models, essential for tasks like language translation and text generation.
  • Understanding the Record in C#8/16/2024 5:53:13 AM. Learn how records differ from classes, their advantages in creating immutable types, and how they enhance object initialization, equality checks, and more in .NET applications.
  • Learn Server-Sent Events in C# .NET8/14/2024 5:36:57 AM. Server-Sent Events (SSE) in C# .NET enable real-time, one-way communication from server to client over HTTP, ideal for live updates like notifications or data streaming. Unlike WebSockets, SSE is simp
  • Rockin’ The Code World with dotNetDave ft. Khalid Abuhakmeh - Ep. 1058/13/2024 11:57:34 AM. In this episode, you will learn about C# 13 features and .NET 4.8 vs .NET 9.
  • Running .NET Core Application using Docker Container8/13/2024 9:32:48 AM. Creating a microservice with .NET 8.0 and Docker. It covers installing .NET, setting up a .NET Core API project, creating a Dockerfile, and building and running a Docker image. Learn to verify images,
  • Iterations and Improving Code Quality with C# yield return8/13/2024 4:10:48 AM. This article explores how the yield return statement in C# can simplify iteration logic and enhance code quality. By allowing deferred execution and creating custom iterators, developers can write mor
  • Tortoise SVN Automation Using C#8/12/2024 11:05:48 AM. In this article, we will look into automation of Tortoise SVN activities like checkout, delete, rename on a SVN repository using C# in a console application.
  • Understanding Filters in .NET Core with Examples8/12/2024 10:23:14 AM. ASP.NET Core filters enable developers to run custom code at various stages of the request pipeline, supporting tasks like logging, authentication, and error handling. They enhance modularity and main
  • async, await, ConfigureAwait(true/false) Asynchronous Programming in C#8/12/2024 9:34:42 AM. Explore asynchronous programming in C# with a focus on async and await keywords. Learn how to use ConfigureAwait(true/false) to manage context switching and avoid deadlocks.