C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Lajapathy Arun(5)
John Godel(4)
Juan Francisco Morales Larios(4)
Matthew Cochran(3)
Mahesh Chand(3)
Sardar Mudassar Ali Khan (2)
Yatendra Sharma(2)
Ankit Bansal(2)
Jasminder Singh(2)
Sandeep Singh Shekhawat(2)
Devesh Omar(2)
Shirsendu Nandi(2)
Pawan Jajoo(2)
Michael Bouck(2)
Raghunath Bhukan(1)
Akshay Amin(1)
Niharika Gupta(1)
Mariem Moalla(1)
Shubham Sidnale(1)
Jochen Bartlau(1)
Siddhesh Chavan(1)
Jitendra Mesavaniya(1)
Arindam Dawn(1)
Esamaldin Mohammed(1)
Jaydeep Patil(1)
Munib Butt(1)
Manikandan M(1)
Matea Andrei(1)
Varun Setia(1)
Ashutosh Gupta(1)
Nirmal Dayal(1)
Jamil Moughal(1)
Tomas Herceg(1)
John Kocer(1)
Praveen Sreeram(1)
Allen Oneill(1)
Ahmed Abdi(1)
Prakash Tripathi(1)
Michael Griffiths(1)
Vithal Wadje(1)
Ramakrishna Basagalla(1)
Mukesh Kumar(1)
Rakesh (1)
Akhil Mittal(1)
Harpreet Singh(1)
Prasham Sabadra(1)
Shaili Dashora(1)
Rahul Singh(1)
Selva Ganapathy(1)
Marcus Santodonato(1)
Santosh Gadge(1)
Sanjay Gupta(1)
Abhishek Goswami(1)
Nimit Joshi(1)
Satya Prakash(1)
Jean Paul(1)
Varun Bansal(1)
Richa Garg(1)
Santhosh Kumar Jayaraman(1)
Rohatash Kumar(1)
Vulpes (1)
Sandeep Yadav(1)
Raj Kumar(1)
Nipun Tomar(1)
Kirtan Patel(1)
Jeroen van den Heuvel(1)
Sridhar Subramanian(1)
Bechir Bejaoui(1)
Moses Soliman(1)
Scott (1)
Mike Gold(1)
Chandra Hundigam(1)
Kenneth M H(1)
Narayana Rao Surapaneni(1)
mingyongy (1)
Aarav Patel(1)
Micheal Xavier A (1)
Resources
No resource found
From LLMs to PT-SLMs: How GSCP-15 Turns Generic Models into Governed, Enterprise-Grade Delivery
Jan 19, 2026.
Discover PT-SLMs: tailored small language models for enterprise. Learn how GSCP-15 ensures governed, cost-effective, and reliable AI delivery at scale.
Generative AI: How GSCP-15 Turns Generic Models into Governed, Enterprise-Grade Delivery
Jan 19, 2026.
Unlock enterprise-grade AI with PT-SLMs & GSCP-15. Govern generic models for controlled, cost-effective, and auditable AI delivery at scale. Learn how!
AI Agents: How GSCP-15 Turns Generic Models into Governed, Enterprise-Grade Delivery
Jan 19, 2026.
Discover how GSCP-15 transforms generic AI models into governed, enterprise-grade delivery systems using PT-SLMs for enhanced control, cost-efficiency, and auditability.
Artificial Intelligence: How GSCP-15 Turns Generic Models into Governed, Enterprise-Grade Delivery
Jan 19, 2026.
Unlock enterprise-grade AI with GSCP-15! Transform generic LLMs into governed, cost-effective PT-SLMs for reliable, scalable, and auditable AI delivery.
Exploring nameof Support for Unbound Generic Types in C# 14 (.NET 10)
Dec 29, 2025.
Unlock compile-time safety with C# 14's nameof operator for unbound generic types! Simplify logging, DI, and validation. Boost code maintainability in .NET 10.
Chapter 14: Templates and Generic Programming in C++
Oct 23, 2025.
Explore C++ templates, the cornerstone of generic programming. Learn how to write functions and classes that work with any data type, avoiding redundant code. Discover function templates, class templates, and template instantiation with practical examples like swap_values and a Pair class. Understand how templates power the Standard Template Library (STL).
Difference Between Generic Host and Web Host in .NET Core
Sep 12, 2025.
Understand the crucial differences between Generic Host and Web Host in .NET Core. This article clarifies their roles, evolution, and when to use each. Learn why Microsoft shifted to Generic Host for unified hosting, supporting web apps, worker services, and console applications. Discover the benefits of flexibility, scalability, and a consistent development experience. Choose the right host for your .NET Core project and future-proof your applications.
When to Use Generic vs Non-Generic Collections in C#
Aug 19, 2025.
Discover the differences between generic and non-generic collections in C#. Learn their impact on performance, type safety, and usability with examples, helping you choose the right collection for efficient development.
The Hidden Costs of Null Checks in Generic C# Code
Apr 27, 2025.
Learn how to properly perform null checks in generic C# code. Avoid hidden performance issues like boxing by using EqualityComparer<T>.Default and modern is null techniques for efficient, clean code.
ScopedValueChanger<T> - A very helpful Generic Helper Class to Temporary Change Values
Apr 25, 2025.
This article explores the ScopedValueChanger<T> class, a utility designed to manage temporary value modifications with automatic restoration. Implementing the IDisposable interface ensures that changes made within a scoped context are reversed, maintaining application state integrity.
Fix Generic Error in Custom Activity Using Batch Account in ADF
Jun 11, 2024.
While executing a C# code in custom activity using batch activity in ADF sometimes it would get the error "The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection.
Understanding Generic Constraints in C#
May 21, 2024.
Generics in C# allow you to define classes, methods, and interfaces with a placeholder for the type of data they store or use. This flexibility enables you to write more general and reusable code.
Bubble Sort Algorithm in C# with Generic Method Example
Apr 15, 2024.
Bubble Sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.
Unleashing the Power of a Generic Event Bus in Angular: Building a Powerful and Scalable Architecture
May 30, 2023.
A generic event bus in Angular acts as a central communication hub that enables components to publish and subscribe to events. It promotes loose coupling and enhances the flexibility and scalability of large-scale applications. By leveraging the event bus, developers can establish efficient communication between different parts of the application, facilitating seamless cross-component and cross-module interactions.
Create Generic HttpClient Call Function With Error Handling In C#
Mar 09, 2023.
This article presents a step-by-step guide on how to create a generic HttpClient call function in C# that can handle different request methods, request body types, response types, and error handling using optional parameters. By following the provided code examples and explanations, readers can learn how to simplify HTTP requests in their C# applications and reduce the risk of errors.
Generic Interface And Generic Repository For Developing ASP.NET Core Web API
Feb 28, 2023.
In this article, you will learn about Generic Interface and Generic Repository for Developing Asp.net Core Web API.
Unit Of Work With Generic Repository Implementation Using .NET Core 6 Web API
Dec 04, 2022.
Unit Of Work with Generic Repository implementation using .NET Core 6 Web API.
Using The New Generic Number Interface In .NET 7
Nov 28, 2022.
In this article, you will learn how to use the new generic number interface in .NET 7.
Implement The Generic Badge View In Xamarin.Forms
Aug 03, 2022.
In this article, I will explain the Generic Badge in xamarin forms. We can implement the badge for Android, iOS and UWP. The plugin creates a custom renderer for each platform and a custom attached property for adding tab bar badges, which can be bound in XF shared code.
Implement Unit Of Work And Generic Repository pattern in a Web API .NET Core Project Using EF
Feb 21, 2022.
Complete guide to implement Unit of Work with Generic Repository Pattern with Entity Framework in a WEB API .NET Core project
New Generic Collection In .NET 6 - A Priority Queue
Jun 17, 2021.
In this article, you will learn about the new Generic Collection in .NET 6 a Priority Queue.
Implementing C# Generic Collections Using Collection<T>, ICollection<T> With IEnumerator<T>
Jan 24, 2020.
In this article, you will learn how to create your own custom collections using Generic Collections class.
Lazy Loading with Generic Methods
Nov 11, 2019.
In this article, we will learn Lazy Loading using Generic Method in C#
Implementing Generic Repository And CRUD Operations In ASP.NET Core Web API
May 03, 2019.
In this article, I will implement CRUD operations in ASP.NET Core Web API using generic repository pattren.
DotVVM In Real-World Apps - Generic CRUD - Part Two
Apr 27, 2018.
In the previous article, I was writing about building a basic CRUD scenario using DotVVM, an open-source MVVM framework for line of business web apps.
Building Entity Framework Generic Repository 2 Connected
Dec 18, 2017.
A few weeks ago, we looked a first article about Disconnected Repository. In this article let’s complete it with another piece off the puzzle, the connected Generic Repository.
Building Entity Framework Disconnected Generic Repository
Nov 29, 2017.
The repository pattern separates and retrieves data model mapping logic from the business logic. We will create a repository class for each entity class in our application. All these classes usually have a main group of equals methods.
.NET Entity Framework Core Generic Async Operations With Unit Of Work Generic Repository
Oct 05, 2017.
The advantage of generic repository is that you can inherit from it, pass an entity type, and you will get CRUD operations. It will save you a lot of coding time when your domain objects are likely to grow over 50+. Another advantage is change history functionality; you can inherit your entities from the change history interface.
Introduction To Dapper Generic Repository
May 15, 2017.
This article introduces you to the introduction to Dapper Generic Repository.
Azure Functions - Create Generic Webhook Trigger
Mar 26, 2017.
This article briefs you on Azure functions – Create Generic Webhook Trigger.
Reuse Your Code .. Generic Save/Load!
Jan 24, 2017.
Get the overview of Generic C# .NET Object Save/Load pattern and code.
MVC Crud Using Generic Repository And jQuery
Dec 28, 2016.
In this article, you will learn how to create simple Crud operations, using generic repository pattern and jQuery.
Introduction To Generic IEqualityComparer
Nov 20, 2016.
In this article, you will learn about Generic IEquality Comparer.
Preparing For .NET Interviews: Traditional And Generic Collections - Part Eight
May 19, 2016.
This article presents the common questions asked in .NET interviews related to traditional and generic collections and explains the answers easily.
JavaScript: Attach Generic Event Handler
Apr 13, 2016.
In this article you will learn about Attaching Generic Event Handler in JavaScript.
Convert Generic List Into XML In ASP.NET MVC
Apr 12, 2016.
In this tutorial, learn to convert dynamic data stored in generic lists to XML files using ASP.NET MVC. This approach simplifies managing complex data types, such as customer orders with multiple items. Follow step-by-step instructions to create an MVC application, model class, controller, and view to achieve this.
Generics And Generic Collections In C#
Dec 16, 2015.
In this article you will learn about Generics and Generic Collections in C# language.
Repository Pattern And Generic Repository Pattern
Oct 12, 2015.
In this article, I will demonstrate you what repository pattern is and what the benefits of repository pattern are.
Call Web API Using Generic Handler In ASP.NET
Oct 09, 2015.
In the article we will learn how to call Web API using generic handler in ASP.NET
Call Generic Handler Using jQuery In ASP.NET
Oct 08, 2015.
In this article we will learn how to call generic handler using jQuery in ASP.NET.
Image Store and Retrieve From Database Using Generic Handler in ASP.Net
Jul 07, 2015.
We will see in this article how to store image file in a binary format and retrieve the file using HttpHandler and display it in a GridView Control.
Upload Multiple Files Using jQuery AJAX and JQueryUI Progressbar With ASP.Net Generic Handler
Jul 06, 2015.
In this article you will learn how to upload multiple files using jQuery AJAX and jQueryUI Progressbar with ASP.NET Generic Handler.
jQuery UI Autocomplete Widget Using ASP.Net Generic Handler
Jun 28, 2015.
This article explains the use of jQuery UI Autocomplete Widget using ASP.NET Generic Handler.
RESTful Day 1: Enterprise Level Application Architecture With Web APIs Using Entity Framework, Generic Repository Pattern and Unit of Work
May 10, 2015.
Explore the intricacies of Web APIs, leverage Entity Framework for seamless data access, implement the efficient Generic Repository Pattern, and ensure transactional integrity with the Unit of Work pattern.
How to Convert an Array Into a Generic Type in C#
Mar 03, 2015.
In this article, we will see how to convert an array to a generic type.
Enabling Incoming Email Setting For Custom Generic List in SharePoint
Feb 15, 2015.
In this article you will learn how to enabling the Incoming Email Setting for a Custom Generic List in SharePoint.
Store n Number of Lists of Different Types in a Single Generic List
Nov 27, 2014.
In this article you will learn how to store n number of Lists of a different type in a single generic List in C#.
Func Generic Delegate in C#
Nov 26, 2014.
In this article, we will discuss the concept of Func generic delegate.
Convert a DataTable to Generic List Collection
Nov 25, 2014.
In this article, I am sharing a generic method I have developed while solving a question here on C# Corner.
Generic Classes Using Generic Type Parameter
Nov 24, 2014.
In this article, we will discuss the concept of the generic classes in C#, including what exactly this concept of generics means.
CRUD Operations Using the Generic Repository Pattern and Dependency Inversion Principle With IoC Container and DI in MVC
Nov 02, 2014.
Learn how to implement CRUD operations using the Generic Repository Pattern and Dependency Inversion Principle (DIP) in an MVC application. Explore the integration of an IoC Container for Dependency Injection (DI), enhancing modularity and testability.
The Generic Scripts
Sep 27, 2014.
Improved efficiency in combination with Unit Testing and User Interface or User Experience testing by generic script of dynamic values.
CRUD Operations Using the Generic Repository Pattern and Unit of Work in MVC
Aug 31, 2014.
Implement CRUD operations in MVC using the Generic Repository Pattern and Unit of Work. Abstract data access logic, promote code reusability, and maintainability. Ensure separation of concerns and scalability in application development.
Extending the Behavior of an Interface Using Contravariance, Generic Typing and Extension Methods
Aug 05, 2014.
In this article, I demonstrate how to take this approach a step further by using contravariance and generic typing to extend a public interface.
Generation of CAPTCHA Image Using Generic Handler for Login Page
Jul 15, 2014.
This article explains how to create a CAPTCHA image using a generic handler.
A Basic Understanding of Generic List
May 15, 2014.
This article provides a basic introduction to the Generic List.
Exporting Generic List<T> to Excel in C# Using Interop
May 09, 2014.
In this article, we will learn how to export a Generic List<T> to Excel using Interop.
Basics Of Generic Classes In C#
May 01, 2014.
This article explains how to use a Generic class and why we need to use it.
A Generic Library For Accessing and Creating Microsoft Project Plan File
Mar 16, 2014.
Here you will learn about a generic library for accessing and creating Microsoft Project Plan files.
Uploading Multiple Files Using jQuery and Generic Handler in ASP.Net 4.5
Feb 10, 2014.
This article describes how to upload multiple files in ASP.NET Web Forms using the jQuery and Generic Handler.
Find Out Generic Root of Number in Windows Store App
Feb 05, 2013.
In this article I will describe generic roots and how to determiine them in a Windows Store App.
SharePoint Copy List Items in a Generic Way
Dec 15, 2012.
In this article we can explore the scenario of copying List Items in a Generic Way.
Decompiling A Generic Method
Sep 03, 2012.
Generics is not new to .NET and they are easy to use, But out of curiosity I was searching to find how generic types work and declared behind the scenes.
Binding a GridView With Generic List Collection
May 30, 2012.
In this article I explain how to bind the GridView with the System.Collection.Generic.List, and also the join operation of the list.
Compare 2 Objects of Generic Class Type in C#
May 11, 2012.
In this article I am going to explain how to compare 2 objects of generic class type in C#.
Advance Usage of Generic Dictionary
Using C#
Apr 29, 2012.
Here we will see advance usages of generic dictionaries using C#.
Dynamically Creating Generic List<T> and Generic Dictionary<k,T> at Runtime Using C#
Apr 12, 2012.
In this article we are going to see how to generate a Generic List<T> and Generic Dictionary<K,T> dynamically and add items to it.
Practical Approach of Converting DataTable to Generic Dictionary
Using LINQ
Apr 10, 2012.
In this article I will show how to convert a DataTable to a Generic Dictionary<K,T>.
Practical Usage of Generic List as a Data Source in LINQ
Apr 09, 2012.
In this article we will learn usages of generic lists as a data source in LINQ.
Practical Approach of Adding, Removing and Inserting Item Using Generic List
Apr 06, 2012.
In this article we are going to see, how to do various types of mechanisms like adding, removing and inserting.
Basic Generic Repository Pattern and Unity of FrameWork in ASP.NET MVC3: Part 2
Feb 17, 2012.
In this article I will describe for you how to implement an actual generic repository pattern with a unity of work pattern class with Entity Framework.
Basic Generic Repository Pattern and Unity of Work Frame Work in ASP.NET MVC3 : Part 1
Feb 07, 2012.
In this article I will describe what a repository pattern is in ASP.NET MVC3 and how it is wrapped with the Unity of Work Framework.
Bind Database Values to Generic List Using ASP.NET
Jan 11, 2012.
Here I will explain how to bind a generic list to a GridView and how to bind database values to a generic list using ASP.NET.
Creating Generic Enums using C#
Oct 11, 2011.
An enum variable can then be set to any one of these constants or (in the case of ‘Flags’ enums) to a meaningful combination of them.
Implement a Generic Filtering Module Using Dynamic LINQ to Provide a Search Functionality
Jun 28, 2011.
Here you will see how to implement a Generic Filtering module using Dynamic LINQ to provide a search functionality over different entities.
Upload multiple files using Generic Handler in Silverlight 4
Sep 14, 2010.
In this article we will learn how to upload multiple files using Generic Handler in Silverlight 4.
Remove Duplicate Items From Generic Collection
Sep 06, 2010.
In this article Remove Duplicate Items From Generic Collection
Creating our own Generic Stack T Class like Inbuild Stack Class
Mar 04, 2010.
Basic intention of this article is to teach you how to build simple generic classes by our own.
How To: Create a Generic WebPart in Sharepoint
Aug 21, 2009.
This article is a detailed description on how to create a generic webpart in SharePoint.
Understanding Generic WebParts in SharePoint
Aug 01, 2009.
This article is an introduction to Generic WebParts in Sharepoint.
The quest for the Generic Singleton in C#
Nov 17, 2008.
While it is a bit tricky to implement the Singleton pattern in C#, the steps necessary are well known. There has however been debate about a generic solution for this. This paper provides 3 possible solutions for the generic singleton, and makes a brief comparison.
Populating a Generic Data List with Generic method
Oct 17, 2008.
This article describes how to use a Generic List as a data object and how to fill it with a generic method.
Why and when using where keyword within a generic class context
May 05, 2008.
In this article, I will try to make understand the importance of the where keyword used as a part of a generic class context.
C# Generic Identity Map -- Creating an Object Pool for Multiple Object Types
Jan 27, 2008.
This article demonstrates a technique through which we can have a type-safe pool object that holds references to many different types of objects.
Cartesian Products and Permutations of Groups Using C# Generic Iterators
Oct 09, 2007.
Many problems we run into as developers deal with slicing and dicing groups of objects. In this article I'll cover building a library of utility methods using C# object enumerators to perform group permutations and find Cartesian products of groups.
Custom Generic EventArgs
May 14, 2007.
Before .NET 2.0, I found myself frequently creating custom EventArgs classes just to return a value from an event and would end of with a lot of extra classes bloating my code base that all basically had the same purpose.
Building Generic Data Access Class using ADO.Net 2.0
Jan 03, 2006.
In this article we are going to explore some new features of the generic data access supported by ADO.Net 2, and also we will have a look at generic collections and generic interfaces.
Revised Generic 'T, K' Database Component
Dec 20, 2005.
This is the code behind the Generic 'T, K' Database Component.
Using Generic Algorithms to Layout Circuit Boards
Apr 07, 2003.
This article tells you how to use a Genetic Algorithm to optimally layout parts on a circuit board so they have the shortest connections between them.
Understanding Generic Type in C#
Aug 15, 2002.
Before we start tampering around the code, lets understand why we need a generic type?
A Generic Data Access Component using Factory Pattern
Jul 24, 2002.
Another way to solve this problem is to utilize the System.Activator class and a factory pattern to create the concrete provider classes as was pointed-out in Dan Fox's article Design an Effective Data-Access Architecture (.netmagazine, vol. 2, no. 7).
A Generic Data Access Component using Factory Pattern
Jul 24, 2002.
This article shows to utilize the System.Activator class and a factory pattern to create the concrete provider classes.
Writing A Generic Data Access Component - Flexible Approach
Jul 18, 2002.
Here is one more flexible approach to achieve the same. I prefer this approach to generic data access.
Writing a Generic Data Access Component
Jul 17, 2002.
OK, I've received couple of emails people asking me how can they use a common data provider to access various types of data sources without loosing the power and flexibility of native data provider libraries.
Writing a Generic Data Access Component
Jul 17, 2002.
I've received couple of emails people asking me how can they use a common data provider to access various types of data sources without loosing the power and flexibility of native data provider libraries.
Customizable Generic Form Validation Control
Oct 01, 2001.
This control performs form validations at the client-side irrespective of the web server.
CDataService: A Generic Database Access Class
Aug 09, 2001.
Using a generic database access component in data-aware applications can simply development and separate data tier from business tier.
How to Use Generics in C# to Write Reusable and Type-Safe Code
Apr 03, 2026.
Master C# generics! Learn how to write reusable, type-safe code, avoid duplication, and boost performance. Explore generic classes, methods, collections, and constraints.
How Do I Use AI to Personalize Sales Outreach at Scale Without Sounding Generic?
Dec 31, 2025.
Learn how to use AI, like ChatGPT, to personalize sales outreach at scale without sounding generic. Discover proven strategies for relevance and credibility.
Generics in C#: Introduction and Usage
Dec 02, 2025.
Unlock the power of Generics in C#! This guide introduces Generics, explaining how they enhance type safety and performance by deferring data type specification. Learn with examples!