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]
Sandhiya Priya(11)
Jignesh Kumar(7)
Raghunath Bhukan(4)
Sandeep Singh Shekhawat(3)
Ajay Narkhedkar(3)
Akshay Amin(3)
Sachin Kalia(2)
Mahesh Chand(2)
Lajapathy Arun(2)
Ashish Shukla(2)
Sateesh Arveti(2)
Saurav Kumar(2)
Abhishek Yadav(2)
Jayant Kumar(2)
Rikam Palkar(1)
Faisal Pathan(1)
Gnanavel Sekar(1)
Mukesh Kumar(1)
Sourav Kayal(1)
Devesh Omar(1)
Santhosh Kumar Jayaraman(1)
Jaganathan Bantheswaran(1)
Jean Paul(1)
Allani Saikumar(1)
Jitendra Mesavaniya(1)
George (1)
Amit Mohanty(1)
Rafnas T P(1)
Hannan Kamran(1)
Surya Prakash Pandey(1)
Rion Williams(1)
Ehsan Sajjad(1)
Bruno Leonardo Michels(1)
satish suthar(1)
Harpreet Singh(1)
Rahul Singh(1)
Michal Habalcik(1)
Marcus Santodonato(1)
Surender Kumar(1)
Sourabh Mishra(1)
Gautam Mokal(1)
Vishwakant Tripathi(1)
Sukesh Marla(1)
Pragati (1)
Akkiraju Ivaturi(1)
Rishi Mishra(1)
Manish Singh(1)
Vipul Kelkar(1)
Reeta Singh Lodhi(1)
Mukesh Kumar(1)
Biswa Pujarini Mohapatra(1)
Felipe Ramos(1)
C# Curator(1)
Moustafa Arafa(1)
Phil Curnow(1)
Gautam Singh(1)
John Godel(1)
Riya Patel(1)
Nabaraj Ghimire(1)
Aarav Patel(1)
Deepika Sawant(1)
Tuhin Paul(1)
Sriganapathi Sekar(1)
Mariem Moalla(1)
Mominul Islam(1)
Jaimin Shethiya(1)
Praveen Kumar(1)
Resources
No resource found
Creating An Extension Method To Get Enum Description
Mar 30, 2022.
This article will take you down the rabbit hole to understand the extension methods in C#.
Real-Time Example Of Extension Method In C#
Jan 24, 2020.
This article demonstrate how to create extension method for long type and it can be used across all your classes within your project.
Generic Extension Method To Map Objects From One Type To Another
Jan 28, 2019.
In this article, we will learn about Generic Extension method to map objects from one type to another.
Custom Extension Method In C#
Aug 23, 2017.
In C#, extension methods are a powerful feature that allows you to add new methods to existing classes without modifying their source code. A custom extension method in C# is a user-defined method that is added to an existing class or interface using the this keyword as the first parameter of the method. This enables you to invoke the extension method on instances of the target class or interface as if it were a native method.
How To Use Extension Method In C#
Nov 26, 2015.
In this article you will learn how to use Extension Method in C#.
Extend Sealed Class in C# Using Extension Method - A Simple Approach
Aug 11, 2015.
In this article you will learn how to extend a sealed class in C# using an extension method.
Understand Extension Method in C#
May 17, 2014.
This article explains extension methods of C#. The extension method is a modified version/slightly changed version of a static method.
Create And Use An Extension Method In C#
May 05, 2014.
In this article, learn how to create a extension method in C# and why we need extension methods.
Create HTML Helpers Extension Method to Get Id and Name in jQuery Function
Oct 03, 2013.
This article introduces two extension methods of the HtmlHelper class, one that obtains the Id in a jQuery function and another obtains the Name in a jQuery function.
Custom Extension Method to Compare List in C#
May 24, 2012.
In this article, we will see how to create a custom extension method to compare 2 lists in C#.
PIN Extension Method Using C#
Jun 07, 2011.
An extension method is a special kind of static method that allows you to add new methods to existing types without creating derived types. PIN stands for the three extension methods PreviousItem, IndexOfCurrentItem and NextItem.
ToLookup Extension Method explained
May 28, 2011.
The ToLookup() method can be used to quickly create lookup items based on different conditions.
Data Pagination with Extension Methods in C#
May 20, 2024.
Pagination is a common technique used to manage and display data in chunks. This article discusses implementing pagination in C# using extension methods, which allow adding new functionality to existing types without modifying their source code, making data handling clean and reusable.
What is Extension Methods in C#?
Mar 26, 2024.
This article delves into the concept of extension methods in C#, exploring their syntax, benefits, and best practices through practical examples. It offers a means to extend existing types without altering their original implementation, enabling developers to augment functionality.
Exploring .NET 6's MinBy() and MaxBy() Extension Methods
Mar 22, 2024.
In this article, I will demonstrate the exciting new additions to LINQ extension methods introduced in.NET 6: MinBy() and MaxBy(). Let's explore how these powerful methods simplify code, providing efficient solutions for selecting extreme values within a generic sequence.
Extending List Functionality with C# Extension Methods
Jan 22, 2024.
In this article, I will demonstrate How to create an extension method in c# for List type. I will explain how we can extend the functionality of List without a new derived class. I will create extension methods for list type will help us use across project without creating new class.
Extension Method in C#
Dec 27, 2023.
Extension Methods in .NET, a powerful feature introduced in .NET Framework 3.0. Learn how to seamlessly add or extend methods to existing types, enriching your coding experience. ??
Simplify Your Code with C# 12 Extension Methods
Apr 26, 2023.
C# 12's New Extension Method Features: Simplifying Your Code and Making It More Modular
Learn About Extension Methods In C#
Dec 26, 2019.
In this article I am explaining about how we can extend the existing methods.
LINQ Extension Methods - Partitioning Operator - Part Four
Aug 16, 2018.
This article is continuation of Linq extension methods. In this article I am going to demostrate partitionaning operators like skip, skipWhile, take and TakeWhile.
LINQ Extension Methods - Element Operator And Set Operator - Part Three
Aug 14, 2018.
In this article, we are going to explore another two operators like element operator and set operators. Element operators are used to returning the particular element from the collection and set operators like distinct, excepts, Intersect and union which are used to get the unique element or all element from a single collection or multiple collections based on specific condition or based on our requirement.
LINQ Extension Methods Quantifier And Aggregation Operator - Part Two
Aug 08, 2018.
This article is continuation of Linq extension methods. If you want to read first part please click here Part One. In this article I will demonstrate quantifier operator and aggregation operators.
LINQ Extension Methods - Part One
Aug 05, 2018.
This article explains linq extension methods like filtering, grouping and sorting and projection orators
Learn About Extension Methods In TypeScript
May 17, 2018.
Extension-method gives you the power to add new methods to existing types. You don’t have to create a new derived-type. You can write extension-method of any data-type you want. It’s just like writing a simple function of a specific class. These are static methods. We can extend any class or interface to write our own extension-method but remember, we cannot override the existing ones. Even if we have the same name and signature of our own extension-method as of the existing one, then our method cannot be called in any case. So, make sure that whenever you write your extension-method, name and signature should differ from the existing ones.
Extension Method In C#
May 23, 2017.
Extension Method In C#. Extension method is a special kind of static method which we can access throughout or outside of a program. Extension method helps us to extend the class with new methods without any changes in base type or class. We can create new methods in the dll library class also without changing the old code though extension method.
Handling Casing Issues Though Extension Methods In C# And Visual Basic
Nov 06, 2015.
In this article you will learn how to handle casing issues though Extension Methods in C# and Visual Basic.
Extension Methods in C#
Jul 13, 2015.
In this article you will learn Extension Methods feature in C# with simple example.
Frequently Used String Extension Methods in C#
Jun 02, 2015.
This article has a small collection of string extension methods for use in daily development.
What Are Extension Methods and How to Use Them
May 25, 2015.
This article describes extension methods and explains how and when to use them.
Extension Methods in C#
Apr 14, 2015.
This article explains extension methods of C#.
Extension Method in C#
Feb 17, 2015.
In this article, we will learn what extension methods are and how to create and implement your own extension method.
Extension Methods in C#
Dec 26, 2014.
In this article you will learn about Extension Methods in C#.
Extend the C# Types Easily With Extension Methods
Dec 12, 2014.
Easily extend C# types using extension methods for enhanced functionality without modifying the original type. Improve code readability and reusability by adding custom methods to existing types, fostering a fluent and intuitive coding experience."
Facts About Extension Methods in C# With Practices
Sep 18, 2014.
In this article you will learn Extension Methods in C# with Practices.
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.
Extension Methods in C# 3.0
Jul 02, 2014.
This article explains Extension methods, a new existing feature of C# 3.0.
Extension Methods In C#
Feb 17, 2014.
This article explains Extension methods. Extension methods are static methods, that are always implemented in a static class. In C# we already have some built-in extension methods like Union, Where and Zip.
Extension Methods in C# Simplified
Dec 22, 2013.
In this article, you will learn the basics of extension methods in C# and why and how to use them.
Extension Methods in C#
Dec 13, 2013.
In this article, I will try to explain what an Extension Method is and in which scenario it is used.
How To Use Extension Methods In C#
Aug 08, 2013.
This article explains use of Extension Methods in C# to increase the functionality of a type (class).
Extension Method In C#
Jun 15, 2013.
Extension Methods are a new feature in C# 3.0. An Extension Method enables us to add methods to existing types without creating a new derived type, recompiling, or modify the original types.
Creating Extension Methods in ASP.NET
Sep 26, 2012.
In this article we will create some extension methods for an ASP.Net application.
Overview of Extension Methods in C#
Sep 21, 2012.
This article is an overview of Extension Methods in C#.
C# Extension Methods: Explained
Aug 06, 2012.
The intention of the article is to give an idea of what extension methods are and their benefits.
Practical Usage of Complete Extension Methods in LINQ
Apr 18, 2012.
In this article we are going to see the complete usage of extension methods in LINQ with the help of a Lambda expression.
Frequently Used Extension Methods in LINQ
Apr 15, 2012.
In this article we are going to see the frequently used extension methods in LINQ with the help of Lambda expressions.
Extension Methods In .NET
Feb 06, 2012.
To put it in a simple manner, Extension Methods have been introduced in the .NET 3.5 framework to add methods to a class without altering the code of that class.
Extension Method in C#
Nov 16, 2011.
In this article we will define the Extension Method and perform the sum arithmetic operation in C#.
Extension Methods in C#
Oct 17, 2011.
.NET framework comes with a set of inbuilt classes and types which we use extensively in our applications. Integer, string, float etc are some of these which are very frequently used.
Extension Methods in .NET
Jul 21, 2011.
In this article we will see what extension methods are, why we need them and how to create them.
Extension Methods in C#
Feb 11, 2011.
Extension methods make it possible to write a method to a class that doesn't offer the method at first. You can also add a method to any class that implements a specific interface, so multiple class can make use of the same implementation.
What are Extension Methods and how to implement them
Dec 14, 2010.
In this article you will learn what are Extension Methods and how to implement Extension Methods.
C# Extension Methods
Sep 06, 2010.
In this article you will learn how to use Extension Methods in C#.
Extension Methods for Daily Use
Sep 01, 2010.
Extension Methods allows the programmer to extend the functionality of a type without having to derive from the type.
Introduction to LINQ, Extension methods and Lambda Expressions
Oct 18, 2009.
This article is an introduction of LINQ, Extension methods and Lambda Expressions. In my following articles, I will delve into more details.
Extension Method in C#. Everything You Need To Learn
Aug 31, 2009.
This article explains Extension Methods in C#. Extension methods enable you to add methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type.
Extension Methods in C#
Mar 17, 2009.
In this article I would like to introduce one of new C# 3.0 enhancements “Extension Methods” and so on.
Secrets of Extension Methods: Part II
Dec 23, 2008.
This article explains how Extension Methods are used in LINQ.
Secrets of Extension Methods: Part I
Dec 22, 2008.
This article gives an introduction to Extension Methods.
Extension methods under .NET Framework v2 and v3
Mar 31, 2008.
This artilce tells you how to implement extension methods when using the .NET Framework v2 or v3 within Visual Studio 2008.
Integrating WhatsApp with OpenClaw AI Agents (2026) - The Correct Method Most Tutorials Miss
Mar 06, 2026.
Integrate WhatsApp with OpenClaw AI agents in 2026 using the correct QR-based method. Avoid outdated tutorials and unlock powerful AI automation. Learn the step-by-step process!
How to Understand the GenerateJwtToken Method in ASP.NET
Feb 13, 2026.
Explore ASP.NET JWT generation using two methods: a specific implementation and a generic one. Understand their differences, advantages, and which suits your project best for secure API integration.
How to Implement Two-Factor Authentication (2FA) in Web Applications?
Feb 13, 2026.
Secure your web apps! Learn how to implement Two-Factor Authentication (2FA) with our step-by-step guide. Protect user accounts and prevent attacks effectively.
GSCP-15 Prompt Engineering: A Technical, Governance-Grade Method for Deterministic LLM Systems
Jan 28, 2026.
GSCP-15: A governance-grade prompt engineering method for deterministic LLM systems. Turns prompts into executable specifications for predictable AI.
How to Automate Dependency Injection in .NET Using Scrutor, Step‑by‑Step Guide
Jan 20, 2026.
Simplify .NET dependency injection with Scrutor by automating service registration using assembly scanning, convention-based patterns, and decorators, with a practical, step-by-step guide to cleaner, scalable DI.
Why Do Browser Extensions Stop Working After Recent Microsoft Edge Updates?
Jan 19, 2026.
Edge extensions broken after updates? Discover why! Security policies, API changes, manifest upgrades, and more can cause extension failures. Learn how to troubleshoot.
Factory Method Pattern in C#
Jan 16, 2026.
Learn how to implement the Factory Method Pattern in C# with dependency injection for loosely coupled object creation. Improve code maintainability and extensibility.
Understanding GET, POST, PUT, and PATCH in ASP.NET Core Web APIs
Jan 15, 2026.
Master ASP.NET Core Web APIs! Learn GET, POST, PUT, & PATCH methods with clear examples. Efficiently manage data with RESTful best practices. 158 characters
What Are the Security Risks of Using Browser Extensions in Enterprise Apps?
Jan 16, 2026.
Browser extensions pose security risks to enterprise apps. Learn about data leakage, credential theft, supply chain attacks, and how to mitigate these threats effectively.
Methods in C# – A Complete and Practical Guide
Jan 11, 2026.
Master C# methods! This guide covers syntax, parameters, return values, overloading, static/instance methods, ref/out, and best practices for clean, scalable code.
Working with DELETE Method, Postman Testing, Entity Framework
Jan 01, 2026.
Master DELETE requests, Postman API testing, and Entity Framework Core integration in ASP.NET Core. Learn to build robust and efficient data management APIs.
Async Method
Jan 01, 2026.
Master C# async methods! Learn how to use async and await for non-blocking operations, improving responsiveness and scalability. Explore Task, Task<T>, ValueTask, and async void.
Introduction to Delegates in C#
Dec 28, 2025.
Unlock C# delegates: Learn how to declare, use, and master single-cast, multicast, and built-in delegates (Func, Action, Predicate) for flexible code!
C# 14- Beyond Methods: Exploring Advanced Extension Member Scenarios
Dec 25, 2025.
Unlock the power of C# 14 extension members beyond basic methods! Discover advanced techniques for cleaner APIs, fluent design, and improved code readability. Elevate your C# skills!
C# 14: From Helper Classes to First-Class APIs
Dec 24, 2025.
C# 14 extension members introduce extension properties, operators, and static members. Learn how they transform helper classes into first-class APIs and enable modern, expressive, and binary-safe .NET domain modeling.
What’s New in C# 14 (.NET 10): 7 Powerful Language Features Every C# Developer Should Know
Dec 23, 2025.
Explore C# 14's powerful features in .NET 10! Boost productivity with extension members, extension operators, field keyword, null-conditional assignment, and more. Write cleaner, safer, and faster code!
Efficient Bulk Data Retrieval in EF Core Using Extensions
Dec 15, 2025.
Traditional EF Core queries often result in multiple database round trips and extensive change tracking, which can significantly degrade performance. To address these limitations, developers leverage bulk operation extensions that optimize data access and retrieval.
Abstract Class and Abstraction in C#: A Technical Deep Dive
Dec 12, 2025.
Learn abstraction in C# with practical examples. This article explains abstract classes, their structure, usage, and real-world code implementations in detail.
Polymorphism in C#: Simple Guide with Examples for Beginners
Dec 04, 2025.
Explore C# polymorphism: static (compile-time) and dynamic (run-time). Learn function/operator overloading, abstract classes, method overriding, and interfaces. Enhance code reusability!
Enterprise-Grade Path Parsing in Python: Securely Extracting Filename, Extension, and Directory in Cloud Systems
Nov 30, 2025.
Securely parse file paths in Python for enterprise cloud systems. Extract filename, extension, and directory using pathlib. Prevent path traversal and data leaks.
Understanding Inheritance in C# with Practical Examples
Nov 28, 2025.
Master C# inheritance! Learn about base/derived classes, single/multi-level/hierarchical inheritance, method overriding, 'base' keyword, and preventing inheritance.
Mastering Dependency Injection in ASP.NET Core – Complete Beginner to Advanced Guide
Nov 23, 2025.
This article provides a complete and detailed understanding of Dependency Injection (DI) in ASP.NET Core, covering everything from basic concepts to advanced topics such as IoC containers, service lifetimes, middleware injection, captive dependency issues, and multiple service implementations. With real-world examples, clean architecture explanations, and interview-oriented insights, this guide helps developers build scalable, maintainable, and testable applications while improving their professional knowledge and .NET development skills.
Python - File Path Handling Methods
Nov 17, 2025.
Master Python file path handling with the 'os' and 'pathlib' modules. Learn to create directories, join paths, check file existence, and extract file information. Ensure cross-platform compatibility!
String Methods in JavaScript – A Complete Article
Nov 15, 2025.
Master JavaScript strings! This guide covers essential methods like slice, replace, trim, and more, with examples for efficient text manipulation. Perfect for learning!
C# 14: The Next Step in Language Evolution for .NET 10
Nov 12, 2025.
Explore C# 14's new features in .NET 10: extension members, field keyword, null-conditional assignment, span improvements, and more. Boost code clarity and performance!
What you need to know about Extension Members in C#
Nov 09, 2025.
Learn how to extend existing types without modification, adding functionality and improving code readability.
FormData.delete() Method in JavaScript: Deleting _viewstate or Particular Key-Value Pair
Nov 06, 2025.
Learn how to use the FormData.delete() method in JavaScript to remove specific key-value pairs like _viewstate, enhancing data control before submission. Optimize form data!
Understanding JavaScript Arrays
Nov 06, 2025.
Master JavaScript arrays! Learn to create, access, modify, and iterate through arrays. Explore essential methods like push, pop, splice, and concat for efficient data management.
JavaScript Array Methods
Nov 06, 2025.
Master JavaScript arrays! This guide covers essential methods like push(), pop(), map(), filter(), and more, with clear examples for efficient data manipulation.
Migrating SharePoint Customized List Form to a Standalone Power App (Using “Copy Code” Method)
Oct 31, 2025.
Migrate SharePoint customized list forms to standalone Power Apps using the 'Copy Code' method. Avoid export/import issues and gain a cleaner, scalable app. Step-by-step guide included!
Sort array elements without using built-in methods
Oct 29, 2025.
Learn how to sort array elements in C# without using built-in methods! This tutorial uses Bubble Sort with a practical ASP.NET example for hands-on learning.
Creating a Student Class with Fields and Methods in C# WebForms
Oct 29, 2025.
Learn to create a Student class in C# WebForms with fields, properties, and methods. This tutorial covers object-oriented programming principles and real-time use cases.
Understanding Method Overloading and Overriding in C# WebForms
Oct 29, 2025.
Master C# WebForms with method overloading and overriding! This tutorial provides a real-time example, showcasing compile-time and run-time polymorphism in action.
Chapter 11: Inheritance: Building Class Hierarchies in C++
Oct 23, 2025.
Unlock the power of inheritance in C++! This chapter explores building class hierarchies, enabling code reuse and establishing 'is-a' relationships. Learn about base and derived classes, access specifiers (public, protected, private), and the order of construction/destruction. Discover method overriding for specialized behavior, setting the stage for polymorphism.
Static Classes and Static Methods in Python
Oct 22, 2025.
Explore static methods and emulated static classes in Python. Learn how to define and use static methods with @staticmethod, understand the difference between class methods and static methods, and discover how to group related utility functions using class design. Improve code organization and avoid global namespace clutter by encapsulating helper functions within classes, promoting cleaner, modular, and maintainable Python code.
ASP.NET Core Pro Setup Guide Part 2 - Visual Studio, CLI, Extensions & Workflow Optimization
Oct 15, 2025.
Elevate your ASP.NET Core development skills! This comprehensive guide (Part 2 of a series) transforms your environment into a professional powerhouse. Master Visual Studio & VS Code configuration, .NET CLI, essential extensions, debugging, Git, Docker, CI/CD, and performance optimization. Boost productivity and build enterprise-grade applications with ease. Set up your development environment like a seasoned pro!
Chapter 15: Object-Oriented Programming (OOP) with Classes
Oct 12, 2025.
Explore Object-Oriented Programming (OOP) in JavaScript using ES6 Classes. Learn how to define classes, create objects, and implement inheritance with extends and super. Discover static methods for utility functions and leverage getters and setters for controlled property access and encapsulation. Master OOP principles for cleaner, more maintainable JavaScript code. This guide provides practical examples for building robust applications.
Chapter 16: Functional Programming: Map, Filter, and Reduce
Oct 12, 2025.
Unlock the power of Functional Programming in JavaScript! This chapter dives into map, filter, and reduce – essential array methods for transforming, selecting, and aggregating data. Learn how to write cleaner, more maintainable code with immutability and pure functions. Master these techniques to manipulate data collections effectively and chain methods for complex operations.
Three Ways to Define Middleware in .NET Core (with Examples)
Oct 09, 2025.
Unlock the power of .NET Core middleware! This article explores three distinct methods for defining middleware: inline, custom, and extension methods. Learn when to use each approach with practical examples for logging, diagnostics, and request processing. Discover how to build composable pipelines for robust and maintainable .NET Core applications. Choose the right technique for quick prototypes or complex, reusable components, and elevate your .NET Core development skills.
How to build a custom extension (plugin) for Gemini CLI?
Oct 09, 2025.
Unlock the full potential of Gemini CLI by building custom extensions! This comprehensive guide walks you through designing, developing, testing, and publishing your own Gemini CLI extension. Learn to integrate custom tools, APIs, and domain knowledge, create shareable workflows, and enhance your terminal AI agent with tailored functionality. Includes practical examples, security best practices, and a ready-to-download project to get you started quickly. Supercharge your productivity and streamline your development process with Gemini CLI extensions!