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#
  • A Comprehensive Guide to Secure Coding in C#3/18/2024 8:10:51 PM. A Comprehensive Guide to Secure Coding in C# by Ziggy Rafiq. Learn how to write robust and secure C# applications by implementing input validation, encryption, authentication, and error handling. This
  • Understanding Deadlocks in C# and .NET Core3/18/2024 6:03:22 AM. Deadlocks, common in concurrent C# programs, occur when threads wait indefinitely for each other's resources. Learn prevention strategies and understand scenarios to ensure robust application exec
  • What is difference between .NET and .NET Framework?3/18/2024 5:59:32 AM. The ".NET Framework" and ".NET" (formerly known as ".NET Core") are two different implementations of the .NET platform, each serving different purposes and targeting diff
  • A Comprehensive Guide to Entity Framework Core in .NET 83/17/2024 8:41:25 AM. Explore the comprehensive guide to Entity Framework Core in .NET 8, enriched with the latest features of C# 10. Authored by Ziggy Rafiq, this detailed overview covers everything from basic concepts to
  • Implementing Resilient HTTP Requests in C# 3/16/2024 11:08:30 AM. Ensuring reliable communication between systems is vital. Learn how to implement resilient HTTP requests in C# using Polly for robust, fault-tolerant applications.
  • Handling JSON in C#3/16/2024 11:01:45 AM. C# provides seamless JSON handling with System.Text.Json. Easily parse JSON strings into C# objects and vice versa for efficient data manipulation.
  • TINYINT Data Type in SQL and Its C# Equivalent3/16/2024 10:35:58 AM. Understanding data types is crucial for effective data manipulation and storage. In this article, we will learn about TINYINT in SQL efficient storage for small integers. In C#, use byte or sbyte for
  • What is Use of ‘Using’ Statement in .NET?3/15/2024 9:15:56 AM. In this article, we will cover What is the use of the ‘Using’ statement in .NET. The 'using' statement in .NET ensures efficient resource management, prevents memory leaks, and promotes cleane
  • Implementing AI and ML in C# Projects3/14/2024 9:35:14 AM. Explore the integration of AI and ML into C# projects with this beginner-friendly guide. Power of ML.NET, TensorFlow.NET, and Accord.NET to implement machine learning algorithms in your C# application
  • Restrict Uploaded File Type in ASP.NET Core3/14/2024 5:02:01 AM. In ASP.NET Core MVC, you can restrict the uploaded file types by implementing validation on the server side. Here's a basic example of how you can achieve this.
  • .NET Internals: Writing .NET IL/MSIL Code3/13/2024 8:56:33 AM. Learn about .NET IL, the bridge language of the .NET runtime, compiling all high-level .NET languages into a single language. Write multi-language applications in .NET, gaining insights into program e
  • Central Package Management (CPM) in .NET Core3/13/2024 5:54:30 AM. Learn the power of NuGet's central package management (CPM) for efficient dependency handling across projects. Utilize Directory.Packages.props to centrally manage package versions for simplified
  • Understanding Implicit Usings in C#3/13/2024 4:29:15 AM. In C# 10, a new feature called "Implicit Usings" has been introduced. This feature aims to simplify the process of including commonly used namespaces in C# code files.
  • What is DateTime Manipulation in C#?3/12/2024 9:09:31 AM. Master DateTime manipulation in C# with this comprehensive guide. Explore methods like 'Add' and properties for modification, extract components, and learn about rounding and truncating DateTi
  • Simulating Multiple Users in App Insights with Integration Tests3/12/2024 8:49:36 AM. Learn how to simulate multiple users in Application Insights when running integration tests for your web application. Simulate multiple users in integration tests to analyze monitoring setups and imp
  • Revolutionizing Software Architecture: .NET Core Web API and Microservices Paradigms3/12/2024 6:16:27 AM. As we navigate the dynamic landscape of software development, it is paramount to consider real-world scenarios and apply architectural patterns that foster separation of concerns and flexibility. The
  • A Seamless Debugging Experience with Source Link in .NET 83/12/2024 5:48:06 AM. Discover how to enhance your debugging experience in .NET 8 with Source Link, authored by Ziggy Rafiq. This article guides about the efficient use of Source Link for debugging, providing invaluable in
  • Land Area Calculation with Heron's Formula in C#3/12/2024 5:16:17 AM. In this article, we'll explore how to utilize Heron's formula, a geometric approach, to calculate land area using a straightforward C# program. This program empowers users to input side length
  • Understanding the .NET Internal Compile Process3/11/2024 11:16:32 AM. In this article, we will learn about CLR, Jit Compiler, and how the .NET compilation process works. Understanding the .NET internal compile process involves dissecting how source code is translated in
  • Difference Between .NET Framework, .NET Core, and .NET Standard3/11/2024 10:18:50 AM. This article, delves into the distinctions between .NET Framework, .NET Core, and .NET Standard. Exploring their histories, open-source nature, cross-platform capabilities, and performance aspects, th
  • GraphQL In .NET Web API With Entity Framework Core - Part Two3/11/2024 9:23:26 AM. Explore advanced GraphQL integration in .NET Core Web API using Entity Framework Core. Learn efficient data modeling, schema design, and resolver implementation for seamless API development.
  • Exploring Various Triggers and Their Applications in WPF3/11/2024 8:27:29 AM. Triggers play a crucial role in defining interactions and behaviors within the WPF user interface. This article explores the various types of triggers in WPF and their implementation within the MVVM p
  • Learn about Keyed Services Use in .NET3/11/2024 7:34:48 AM. .NET 8 introduces native support for keyed services in Dependency Injection (DI), eliminating the need for third-party packages. Learn about registering and resolving keyed services with examples for
  • Exception Handling In ASP.NET Core Web API3/11/2024 7:27:08 AM. Exception handling is crucial for robustness in ASP.NET Core Web API. Learn about global handling, custom middleware, action filters, and ProblemDetails for effective error management and client commu
  • Restrict Uploaded File Size in ASP.NET Core3/11/2024 7:09:58 AM. In ASP.NET Core, you can restrict the uploaded file size using the RequestSizeLimit attribute in the Program.cs file or by configuring it in the appsettings.json file. Additionally, you can set the ma
  • Understanding "out var _" in C#3/11/2024 6:31:09 AM. In this article, we will learn about the use of "out var _" in C#, a syntax that allows declaring a variable inline without specifying its type. Learn its purpose, usage, and how it enhances
  • Leveraging Azure OpenAI with .NET Core3/11/2024 4:21:51 AM. This article discusses leveraging Azure OpenAI with .NET Core. Discover the synergy of Microsoft Azure and OpenAI with .NET Core. This guide unveils the seamless integration, empowering developers to
  • Creating Custom NuGet Packages in C#3/10/2024 9:32:06 AM. Learn how to create custom NuGet packages in C# with this step-by-step guide. Set up a project, add components, create a .nuspec file, package your project, and optionally publish to nuget.org.
  • .NET MAUI - Base64 Image Encode/Decode3/9/2024 5:27:43 AM. This blog guides 10th-grade students through incorporating Base64-encoded images in .NET MAUI apps. Covering project setup, implementation steps, and a demo, it empowers users to enhance app visuals s
  • Misconceptions About the Four LINQ methods3/9/2024 5:22:36 AM. Misconceptions about the four LINQ methods. Single(), SingleOrDefault(), First(), and FirstOrDefault(). This article addresses misconceptions surrounding four LINQ methods—Single(), SingleOrDefault()
  • Nameof in C#3/8/2024 2:16:37 PM. In C#, the nameof operator is a relatively recent addition to the language, introduced in C# 6.0. It provides a convenient way to obtain the name of a variable, type, or member as a string.
  • Decoding Expression Trees in C#3/8/2024 1:21:48 PM. This article contains the details of how to Decoding Expression Trees in C#.
  • A Comprehensive Guide to Nullable Reference Types in C# 103/8/2024 2:55:22 AM. Explore a comprehensive guide to leveraging nullable reference types in C# 10 by Ziggy Rafiq, providing detailed explanations, code examples, and best practices for improving code safety and robustnes
  • What is Difference Between Rest API and Graph API3/7/2024 11:26:04 AM. Know the difference between "Rest" API and "Graph" API with an example.
  • How To Generate Curl Script of the HttpClient in .NET3/7/2024 11:22:06 AM. The HttpClientToCurl is a NuGet package for generating the curl script of HttpClient in C# (.Net) supported features: Post, Get, Put and Delete. content types: application/json, text/xml, application/
  • Generate QR Code with Text Around It Using ASP.NET3/7/2024 7:02:08 AM. To generate a QR code with text around it using ASP.Net, leverage the QRCoder NuGet package. This code snippet demonstrates creating, customizing, and adding text to a QR code.
  • Unit Test in ASP.NET Core Application3/7/2024 6:43:16 AM. Creating unit tests for an ASP.NET Core API controller involves service mocking and exception handling. Set up your project, install packages, create a test project, mock the service, write tests, han
  • Building AI Applications in .NET3/7/2024 5:48:23 AM. Artificial Intelligence (AI) can seem complex and shrouded in mystery. But for developers, the power of AI is becoming increasingly accessible, particularly within the .NET framework. This guide aims
  • Rockin’ The Code World with dotNetDave ft. Ante Tomic - Ep. 983/7/2024 4:52:00 AM. In this episode, you will learn about Diversity in software engineering and Soft skills.
  • Implement Global Exception Handling Middleware in .NET Project3/7/2024 4:37:09 AM. Implementing custom global exception handling in your project involves setting up a system to manage errors across your application. By defining exception classes and configuring error logging, you ca
  • Implementing Broadcasting in Blazor3/7/2024 4:31:21 AM. Blazor inherently doesn't have a broadcasting model. To address this limitation, we need to implement a broadcasting model within Blazor. Broadcasting allows components to exchange information reg
  • Exploring AI-Driven C# Development with GitHub Copilot3/7/2024 4:00:58 AM. One of the most exciting advancements in this space is GitHub Copilot, an AI-powered coding assistant specifically designed to streamline the development process for C# programmers. This article delve
  • A Guide To Crafting Immutable Objects With C# 10's Init-Only Properties3/7/2024 2:14:37 AM. Discover how C# 10's init-only properties empower developers to craft immutable objects with precision, enhancing code readability and maintainability. In this article, Ziggy Rafiq demonstrates ho
  • Practical Introduction To Entity Framework: Day 53/6/2024 10:39:36 AM. Day 5 of our practical introduction to Entity Framework delves deeper into database management with advanced concepts like relationships and efficient CRUD operations. Explore Entity Framework Core fo
  • Why Any() Outperforms Count() in Collection Checks3/6/2024 8:50:13 AM. Efficiency in programming is vital, and choosing the right method for tasks is crucial. Explore why Any() often outperforms Count() in specific scenarios with illustrative examples in C#.
  • How to use Local Storage in Blazor3/6/2024 6:53:42 AM. Local storage provides a convenient way to store data locally in the browser, offering persistence data across sessions and page refreshes. Lets explore how to effectively utilise local storage in you
  • Creating an Autoclose Sidebar in Blazor3/6/2024 6:53:33 AM. We'll explore how to implement a auto-collapsible sidebar in Blazor.
  • Best Practices for Handling Exceptions in C# 3/6/2024 2:44:55 AM. Learn effective exception handling techniques in C# with Ziggy Rafiq's comprehensive guide. Discover best practices for managing exceptions, including specifying exception types, logging errors, a
  • Understanding Directives in .NET3/5/2024 10:08:21 AM. Explore the significance of directives in .NET development, understanding types like preprocessor, reference, warning suppression, and nullable context directives. Learn their syntax and implementatio
  • Create A Tic-Tac-Toe Game In Blazor3/5/2024 6:13:59 AM. There are a lot of small things I wanted to cover so why not create a game to cover all of them?
  • How Do I Open an OCR File in PDF?3/5/2024 4:22:46 AM. Explore methods to open OCR files in PDF. Get the best guides to open an OCR file in PDF with easy steps. Open OCR PDF files in C# using the iTextSharp library. Install iTextSharp, write C# code to ex
  • A simplified approach to serializing and deserializing objects in C# 103/5/2024 2:09:04 AM. This comprehensive guide teaches how to streamline data interchange processes efficiently using C# 10 Records. Authored by Ziggy Rafiq.
  • What is Serialization and Deserialization in C#?3/4/2024 9:35:16 AM. Serialization and deserialization are processes used to convert objects into a format that can be easily stored, transmitted, or persisted, and then reconstructed back into objects when needed.
  • Mastering Object Creation in C#3/4/2024 9:30:39 AM. Learn to create objects in C# step-by-step. Define classes, instantiate objects, access members, use constructors, and explore static constructors—master object creation for robust C# applications.
  • Learn about Data Structures in .NET3/4/2024 8:56:01 AM. Explore key .NET data structures—Lists, Queues, Stacks, and Dictionaries. Learn their practical applications through examples for efficient and scalable software development in the .NET ecosystem.
  • What is New in .NET 93/4/2024 8:06:59 AM. .NET 9, succeeding .NET 8, places particular emphasis on cloud-native applications and enhancing performance. It will receive standard-term support (STS) for 18 months.
  • What are Properties in C#? 3/4/2024 6:00:37 AM. In this article, we will learn about properties in C#, different types of properties, how to define and use them, and some best practices when working with properties in C#, properties in C# are a way
  • How Much C# Development can Dynamics 365 Accommodate3/4/2024 5:33:09 AM. In this presentation, we will unravel the capabilities and possibilities that arise when marrying C# with Dynamics 365.
  • Web Developers' Guide to URL Encoding and Decoding Mastery3/3/2024 5:13:04 AM. URL encoding and decoding are fundamental processes in web development, ensuring the secure and reliable transmission of data over the internet. We will explore the essentials of both URL encoding and
  • C# 10 and .NET Interactive Web Applications with Blazor WebAssembly3/3/2024 4:48:27 AM. This framework, emphasizing C# and .NET, simplifies UI updates, fosters code reusability, and seamlessly integrates with .NET Standard libraries for enhanced functionality. Dive into component-based a
  • Product Management Application using .NET Core and React JS with CRUD Operations3/2/2024 9:31:29 AM. In this article, learn to create a product management web API with CRUD operations using .NET Core 6 and React JS. Utilize SQL Server for the backend and Axios for API consumption.
  • TCP Client and Server3/1/2024 11:10:46 AM. It guides users through compiling separate server and client programs, emphasizing the importance of adjusting the IP address to match the machine's configuration. Upon running the server program,
  • How to Get the MAC Address of System Using ASP.NET/C#3/1/2024 10:35:18 AM. In this article, we will learn how to retrieve the MAC address of a system using Asp.net/C#. Explore methods to access network interface information, retrieve hardware identifiers, and ensure system s
  • What is Network Tool Whois in C#?3/1/2024 10:26:06 AM. WHO is query tool in C# with a user-friendly interface using various components such as Combo Box, Text Box, Button, Label, and Progress Bar. It covers the design aspect of the user interface, backgro
  • How to Create a Simple Screen Sharing Application in C#3/1/2024 9:36:09 AM. In this article, we will learn to develop a basic screen-sharing app in C#. Explore real-time collaboration, network communication, and user interface design. Create seamless remote access for sharing
  • Network Programming in C# - Part 13/1/2024 9:35:16 AM. Explore C# network programming fundamentals in Part 1. Cover TCP/IP, UDP, socket programming, client-server communication, and asynchronous techniques for efficient networking solutions.
  • Peer-To-Peer Chat Program Using Asynchronous Socket3/1/2024 9:34:58 AM. Discover the essence of peer-to-peer chat through asynchronous sockets. Learn to design interfaces, implement real-time messaging, and ensure security for seamless communication in decentralized netwo
  • Understanding the Art of C# Generics3/1/2024 4:22:06 AM. Unlock the power of C# Generics with our comprehensive guide. Master best practices, explore advanced scenarios, and elevate your coding skills with this in-depth C# Generics tutorial. Learn to write
  • Repository Pattern with Multiple Databases in C# and .NET3/1/2024 4:10:35 AM. Implementing the Repository Pattern with multiple databases in C# and .NET requires strategic abstraction, database-specific implementations, entity mapping, and transaction management. Explore challe
  • Exception Handling in C#2/29/2024 10:09:08 AM. In this article, we will learn Exception handling in C# is a mechanism in .NET to detect and handle run-time errors. This article teaches you everything about exception handing in C#.
  • C# - Understand Equality For Value Type And Reference Type2/29/2024 9:55:15 AM. In this article, you will learn about the nuances of equality comparison in C#, distinguishing between value types (like structs) and reference types (like classes). Understand how the == operator beh
  • Introduction to Apache Kafka with .NET2/29/2024 6:00:50 AM. This is an introduction to Apache Kafka and how to work with Kafka with .NET. This article introduces Apache Kafka, a distributed event streaming platform, and explains how to set it up with .NET. It
  • Developing XP Style Applications2/28/2024 11:36:26 AM. In this article, we will be Developing XP Style Applications that involve creating user interfaces with visual elements reminiscent of Windows XP's iconic design.
  • Learn Exception Handling in C#2/28/2024 11:14:25 AM. Exception Handling in C# is crucial for robust code. Using try-catch blocks, catch blocks, and finally blocks, developers manage unexpected issues gracefully, ensuring dependable and solid application
  • [Solved]: Permission to send an SMS has not been enabled for the region indicated by the 'To' number in Twilio2/28/2024 9:44:30 AM. In this article, we will see how to resolve the Twilio error: Permission to send an SMS has not been enabled for the region indicated by the 'To' number in C#
  • Detecting File Changes using FileSystemWatcher2/28/2024 7:12:07 AM. This article is about detecting file changes like file renaming, file creation, deletion and changes in a folder using FileSystemWatcher class.
  • Shell Commands within C#2/28/2024 7:11:49 AM. Using shell commands within C# involves leveraging the ProcessStartInfo and Process classes to execute commands. You specify the command to run, handle input/output streams, and manage execution setti
  • Accessing Network Drive in C#2/28/2024 7:10:13 AM. Network Drives are those locations that are mapped to a drive or folder in another system that can be accessed over a network. I will show you how to access the network drives.
  • Mastering Pattern Matching in C#2/28/2024 5:30:16 AM. Mastering Pattern Matching in C# provides comprehensive insights into leveraging pattern matching techniques to enhance code readability and efficiency. From type patterns to constant patterns, proper
  • Understanding Caching in .NET With Example2/28/2024 5:20:20 AM. Caching is a cornerstone in .NET development, enhancing application performance and scalability. This article explores its significance, and diverse caching techniques, and offers a practical example
  • Better Implementation Of Singleton Pattern in .NET2/28/2024 4:09:40 AM. This article explains the mistakes made in writing Singleton Pattern in the multithreaded environment create a bug and how to bring a solution to it.
  • Usage of Classes, Structs, and Records in C#2/26/2024 10:34:08 AM. In the world of C# programming, choosing the right data structure can significantly impact the efficiency and readability of your code. In this article, we'll delve into the nuances of each const
  • How to Integrate Twilio in C# .NET MVC Project to Send SMS?2/26/2024 10:01:02 AM. In this article, we will learn how to integrate Twilio in a C# .NET MVC project to send SMS. Learn to enhance user engagement by integrating Twilio into a C# MVC project. Follow the steps from setting
  • How Do I Implement a 'Mouse Double Click' for a ListBox2/26/2024 9:53:24 AM. Implementing a "mouse double click" event for a ListBox typically involves subscribing to the ListBox's MouseDoubleClick event and specifying the action you want to perform when the even
  • Rockin’ The Code World with dotNetDave ft. Jodie Burchell - Ep. 972/26/2024 7:07:09 AM. In this episode, you will learn about what large language models can and cannot do, and current approaches to overcome these limitations.
  • Learn about C# Operators and Their Uses2/26/2024 6:54:17 AM. This article on C# operators from unary and binary operators to overloadable operators, relational operators, implicit and explicit cast operators, short-circuiting operators, the ternary operator, nu
  • Why we should learn C#?2/26/2024 6:11:34 AM. This article explores the reasons behind choosing C# over other languages, delving into its evolution, key features like object orientation, lambda expressions, LINQ, generics, and its adaptability fo
  • How to Set Long Expiry to JWT Token?2/26/2024 5:31:43 AM. To set a long expiry time for a JSON Web Token (JWT) in C#, you need to configure the token's expiration claim accordingly.
  • .NET Delegates in Event-Based Asynchronous Pattern for Seniors2/26/2024 5:06:24 AM. This article dives into the practical learning of delegates, emphasizing real-world examples. It explores the Event-Based Asynchronous Pattern (EAP) in C# and its advantages, using delegates to implem
  • Service Lifetimes in .NET Core Applications2/26/2024 4:37:19 AM. In .NET Core, understanding service lifetimes is crucial for efficient dependency management. This article explores transient, scoped, and singleton lifetimes with practical examples in ASP.NET Core a
  • An in-depth look at C# 10 and performance improvements2/25/2024 2:25:50 AM. Get a comprehensive analysis of Ziggy Rafiq's latest C# 10 enhancements and how they affect application performance. Discover how function pointers simplify method invocation, records enhance memo
  • Code Generation and Productivity in C#10 with Source Generators2/25/2024 2:24:29 AM. Find out what C# 10 has to offer in Ziggy Rafiq's insightful article, "Code Generation and Productivity in C# 10 with Source Generators." Learn about the power of source generators, whic
  • Create a Custom Wait Loader in .NET MAUI 2/24/2024 7:40:55 AM. Within MAUI, a loading indicator, also known as a "wait loader," is commonly employed to notify the user of an ongoing time-consuming task, such as data retrieval, processing, or any operati
  • Disable WebView Scrolling in Windows Store Apps2/23/2024 9:17:00 AM. This article delves into the intricacies of the WebView control in Windows Store Apps, focusing on disabling scrolling functionality. Despite the limitations in the WinRT framework compared to WPF web
  • Code readability is enhanced with C# 10 top-level statements2/23/2024 2:20:46 AM. This article explores the simplicity and enhanced code readability introduced by C# 9 through its top-level statements feature. Top-level statements eliminate the need for an explicit Main method, pro
  • Understanding the C# 10 Memory Model2/23/2024 2:18:27 AM. Ziggy Rafiq discusses the C# memory model, including stacks, heaps, garbage collection, and memory leaks
  • Async Patterns in MVC Controllers for Efficiency or Adding Unnecessary Complexity?2/22/2024 8:08:10 AM. Explore the necessity of async patterns in MVC controllers—unveiling the intricacies of conventional and alternative coding styles
  • .NET MAUI - Video Player using Community Toolkit2/22/2024 4:21:54 AM. .NET MAUI simplifies app development across devices, while the Community Toolkit enhances it. Dive into video integration for exciting apps! Follow setup steps, install the toolkit, and implement the
  • Dynamic Model Binding in ASP.NET Core Web API 2/22/2024 4:12:40 AM. Dynamic model binding in ASP.NET Core Web API allows flexible data binding for HTTP requests with varying structures. Follow these steps to implement dynamic model binding in your ASP.NET Core project
  • A Comprehensive Guide to Best Practices and Common Scenarios Using Dependency Injection in .NET 8 with C#102/21/2024 2:51:59 AM. This comprehensive resource covers everything you need to know to leverage Dependency Injection effectively in .NET 8 with C# 10. Ziggy Rafiq explains how to use Dependency Injection in the best possi