C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
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]
Baibhav Kumar(9)
Dashrath Hapani(6)
Ashish Bhatnagar(5)
Ziggy Rafiq(4)
Akshay Amin(3)
Bimalshi Jayarathna(3)
Jignesh Kumar(3)
Rikam Palkar(3)
Emanuel Martins(3)
Praveen Raveendran Pillai(3)
Mominul Islam(2)
Ananya Desai(2)
Jayraj Chhaya(2)
Asfaque Ansari(2)
Micheal Xavier A (2)
Aarav Patel(2)
Praveen Kumar(2)
Nitin (2)
Gowtham Rajamanickam(2)
Shafaet Hossain(2)
Vishal Yelve(2)
Vijay Kumari(2)
Jaimin Shethiya(2)
Ganesan C(2)
Ck Nitin(1)
Tuhin Paul(1)
Saurav Kumar(1)
Riya Patel(1)
Rudra Singh(1)
Patrick Kearns(1)
Niharika Gupta(1)
Vardhan Vyankatesh Chatla(1)
Deepika Sawant(1)
Mariem Moalla(1)
Pratik Chavan(1)
Mahesh Chand(1)
Kripanshu Kumar(1)
Vinoth Xavier(1)
Sardar Mudassar Ali Khan (1)
Mohammed Altaf(1)
Sangeetha S(1)
Divyansh Gupta(1)
Jay Krishna Reddy (1)
Ayush Gupta(1)
John Godel(1)
Ajay Kumar(1)
Sridharan D(1)
Mark Pelf(1)
Maria Joshua Roy(1)
Vipul Malhotra(1)
Sanjay Kumar(1)
Praveen Sreeram(1)
Mohamed Azarudeen Z(1)
Harsh Sharma(1)
Resources
No resource found
SOLID Principles Cheat Sheet 🚀
Oct 14, 2025.
Master the SOLID principles of object-oriented design with this cheat sheet! Learn Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles. Improve code maintainability, testability, and scalability. Includes clear explanations, bad/good examples, and memory tips for each principle. Boost your software architecture skills!
Chapter 10: Event Handling: Making Your Pages Interactive
Oct 12, 2025.
This chapter dives into JavaScript event handling, the key to responding to user actions like clicks, key presses, and form submissions. Learn to use addEventListener(), understand the Event Object, prevent default behaviors with preventDefault(), and control event propagation with stopPropagation(). Master common event types and event bubbling for dynamic and engaging user experiences.
How to Implement Connected Component Labeling for Object Counting Using Python
Oct 10, 2025.
Implement Connected Component Labeling (CCL) in Python from scratch using NumPy for object counting in images. This guide provides a step-by-step implementation of the two-pass algorithm with union-find, ideal for resource-constrained environments. Learn to count objects, like wildlife in remote areas, without relying on external libraries like OpenCV.
OOP is NOT Just Theory! Real-World Blueprints for Building Scalable Software Empires
Oct 08, 2025.
Unlock the power of Object-Oriented Programming (OOP) to build scalable software empires! Demystify OOP's core principles (Class/Object, Encapsulation, Inheritance, Polymorphism, Abstraction) with real-world examples from Netflix, bKash, and more. Learn how OOP drives maintainability, security, and efficiency in modern applications, including ERPs and AI-driven systems. Master OOP and cut development time by 40%!
How Can I Convert JSON to a Python Object Dynamically?
Oct 06, 2025.
Unlock the power of JSON in Python! This guide provides a comprehensive overview of converting JSON data into dynamic Python objects. Learn to use json.loads(), SimpleNamespace, dataclasses, and jsonpickle to handle various JSON structures, from simple dictionaries to complex nested objects. Master techniques for efficient data manipulation and seamless integration with APIs. Elevate your Python skills and build robust, data-driven applications.
How Can I Sort a List of Objects by Property in Java?
Oct 03, 2025.
Learn how to sort lists of objects by property in Java using Comparable, Comparator, Lambda expressions, and the Streams API. This guide provides practical examples for sorting by different object properties like ID, name, salary, and more. Discover best practices for ascending and descending order sorting, enhancing your Java coding skills for efficient and maintainable applications. Master the art of sorting with clean, concise, and SEO-friendly code examples.
SOLID Principles Explained: Enhance Your C# Skills with Practical Examples
Sep 29, 2025.
Master the SOLID principles in C# with practical examples! Learn how Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion enhance code maintainability, scalability, and testability. Elevate your C# skills and write cleaner, more robust object-oriented applications. Discover how to avoid common pitfalls and build a solid foundation for future development. Get ready to explore Dependency Injection in our next article!
Mastering Delegates in C#
Sep 28, 2025.
This article goes beyond the basics, revealing how delegates enable flexible, extensible, and testable applications. Learn how they underpin events, LINQ, asynchronous programming, and design patterns. Master delegates for clean code, separation of concerns, and building robust systems that scale. Elevate your C# skills today!
Python async function returning coroutine object
Sep 23, 2025.
Demystify Python's async/await! Learn why async functions return coroutine objects and how to properly execute them using await and asyncio.run(). Discover how async enhances performance for web requests, database operations, and API interactions by enabling concurrent task execution. Avoid common pitfalls like forgetting await and optimize your Python code for efficiency.
Document Object and Window Object in Java Script
Sep 23, 2025.
Unlock the power of JavaScript with a deep dive into the Window and Document Objects! This article explores how these essential objects enable dynamic and interactive web pages. Learn to control the browser window, manipulate HTML content, and understand the key differences between these fundamental components of client-side JavaScript. Discover practical examples and code snippets to enhance your web development skills and create user-friendly web applications.
LeftJoin in .NET 10 & EF Core 10 - A Game Changer for LINQ Developers
Sep 19, 2025.
Finally! .NET 10 and EF Core 10 introduce native LeftJoin and RightJoin LINQ methods, simplifying data queries and eliminating verbose workarounds. Learn how to use these game-changing features for cleaner, more readable code, mirroring SQL's LEFT JOIN functionality.
đź§± Object-Oriented Programming (OOP): Building Software the Smart Way
Sep 18, 2025.
Unlock the power of Object-Oriented Programming (OOP)! This guide explores the core principles of OOP: encapsulation, abstraction, inheritance, and polymorphism. Learn how to build modular, maintainable, and scalable software using classes and objects. Discover real-world applications and weigh the advantages and limitations of this essential programming paradigm. Master OOP for cleaner, more efficient code!
IEnumerable vs IQueryable in .NET
Sep 18, 2025.
Learn how IEnumerable handles in-memory data efficiently, while IQueryable shines with remote data sources like databases, translating LINQ to SQL for server-side filtering. Choosing the right interface can dramatically improve your application's speed and resource usage, preventing performance bottlenecks and ensuring smooth data handling.
What Are DTOs in ASP.NET Core and Their Benefits
Sep 12, 2025.
This article explains how DTOs enhance security by preventing sensitive data exposure, improve performance through optimized data transfer, and decouple your API from database models. Learn to implement DTOs for cleaner, more maintainable, and robust ASP.NET Core applications. Discover practical examples and best practices for effective data handling.
The History Object and Location Object in Java Script
Sep 04, 2025.
Explore JavaScript's History and Location objects for enhanced web navigation. The History object enables seamless browsing history management (back, forward, go), while the Location object empowers URL manipulation, redirection, and access to URL components (protocol, host, pathname).
Document Object Model (DOM) in JavaScript?
Aug 29, 2025.
Unlock the power of the DOM! Learn how JavaScript uses the Document Object Model to dynamically manipulate web pages, creating interactive user experiences.
What is Duck Typing in Python?
Aug 22, 2025.
Duck typing is an important idea in Python that makes the language flexible and easy to use. Instead of checking what type an object is, Python checks what the object can do. This article explains duck typing in simple words, how it works, its benefits, possible problems, and examples from real Python code.
Mastering the Filter Array Action in Power Automate: A Complete Guide for Dynamic Data Filtering 🔥
Aug 22, 2025.
Learn how to effectively use the Filter Array action in Power Automate to filter and extract specific data from arrays and objects. This guide covers practical examples, real-world use cases, and advanced tips to streamline your flow logic and handle complex conditions with ease.
JSON The backbone of modern data exchange
Aug 21, 2025.
JSON (JavaScript Object Notation) is a lightweight, human- and machine-readable data format used for exchanging information across web, mobile, and cloud applications. It’s simple, flexible, fast, and widely adopted.
What are the four pillars of OOP in Python?
Aug 21, 2025.
Object-Oriented Programming (OOP) in Python is built on four main principles: Encapsulation, Abstraction, Inheritance, and Polymorphism. These concepts help developers write cleaner, reusable, and scalable code. In this article, we’ll break down each pillar in simple terms with Python examples.
What is the difference between class method, static method, and instance methods?
Aug 21, 2025.
In Python, methods are functions defined inside a class. They can be categorized into three types: instance methods, class methods, and static methods. Each serves a different purpose and is used in different situations. This article explains the differences in simple words with detailed explanations and examples.
Understanding the __init__ Method in Python
Aug 21, 2025.
The __init__ method in Python is a special method used for initializing objects when they are created from a class. It is often referred to as the constructor because it sets up the initial state of an object. In this article, we will explore what the __init__ method is, why it is important, and how to use it with practical examples.
What are abstract classes, and how do you use them in Python?
Aug 21, 2025.
Abstract classes are a key concept in object-oriented programming (OOP) that provide a way to define a blueprint for other classes. They help enforce rules, ensuring that child classes implement specific methods. This article explains what abstract classes are, how they work in Python, and how to use them with examples.
Why is for...of not iterable on plain JavaScript objects, and how can I fix it?
Aug 20, 2025.
In JavaScript, the for..of loop works perfectly with arrays, strings, and other iterable objects, but it does not work with plain objects. This article explains why for...of cannot be used directly on objects, how iteration works in JavaScript, and different ways to fix or work around the issue with practical examples.
JavaScript Learning Path (0 → Hero in 10 Chapters) | Learn JavaScript from Basics to Advanced
Aug 19, 2025.
Learn JavaScript from zero to advanced with this complete guide. Covers variables, data types, functions, loops, DOM, events, async JS, ES6+, OOP, browser APIs, and hands-on projects for real-world web development.
What are the global objects available in Node.js, and how are they used?
Aug 19, 2025.
This article explains in simple words the global objects available in Node.js, their uses, and provides detailed examples in JavaScript.
Python Unleashed: The Power Behind Modern Programming
Aug 12, 2025.
Python has emerged as one of the most influential and versatile programming languages of the 21st century. From powering machine learning algorithms to automating mundane tasks
Why Readonly Doesn't Make Objects Immutable in C#
Aug 09, 2025.
Understanding Readonly Accessors and Their Impact on Reference Types in C#.
What are Python's Key Features and Why is it so Popular?
Aug 08, 2025.
Explore the fundamental features that make Python one of the most popular programming languages in the world. Understand its versatility, simplicity, and robust community support with examples.
How Does Python Manage Memory?
Aug 08, 2025.
Dive into the internal memory management system of Python. Understand how Python allocates, tracks, and frees memory using techniques like reference counting, garbage collection, and memory pools.
Difference between interface and abstract class?
Aug 07, 2025.
Learn the fundamental differences between interfaces and abstract classes in C#. This article breaks down their key characteristics, use cases, and performance implications with code examples. Ideal for developers and interview preparation.
What are the data types in JavaScript?
Aug 07, 2025.
This article offers a beginner-to-advanced explanation of JavaScript data types, covering primitives, objects, dynamic typing, and best practices with code examples. Learn how JavaScript handles data under the hood and avoid common pitfalls when working with variable types.
How Does JavaScript Interact with the DOM?
Aug 07, 2025.
Learn how JavaScript interacts with the DOM to create dynamic, responsive, and interactive web pages. A detailed guide with examples and best practices for modern developers.
What Is the Role of the Animator Controller in Unity
Aug 06, 2025.
The Animator Controller in Unity plays a central role in managing and organizing animation logic for characters, UI elements, and game objects.
Common Pitfalls in Selenium Automation and How to Avoid Them
Aug 05, 2025.
This article highlights common Selenium automation mistakes like weak locators, hard-coded waits, and poor exception handling, offering best practices such as POM, explicit waits, and data-driven testing for robust, maintainable tests.
What is object-oriented programming in C#?
Aug 05, 2025.
A hands-on guide to understanding object-oriented programming (OOP) in C#, complete with real-world examples. Learn the four pillars of OOP, Encapsulation, Inheritance, Polymorphism, and Abstraction, and how to apply them in modern C# applications.
Difference Between var, dynamic, and object in C#
Jul 31, 2025.
Learn the exact differences between var, dynamic, and object in C#. This in-depth guide covers syntax, performance, use cases, and practical code examples for each.
Understanding Sealed Classes in C# with Example
Jul 30, 2025.
In C#, a sealed class prevents inheritance, ensuring its behavior can't be altered through subclassing. It enhances security, enforces design rules, and can improve performance in certain scenarios.
Chapter 7: JavaScript Arrays and Objects: Storing Collections of Data
Jul 30, 2025.
This chapter explores JavaScript Arrays and Objects—powerful tools for managing data. Learn how to create, access, modify, and iterate over collections using various methods, loops, and modern techniques.
Chapter 8: Introduction to the Document Object Model (DOM)
Jul 30, 2025.
Learn how the DOM allows JavaScript to interact with and manipulate web pages using nodes. This chapter covers element selection, modification, event handling, and dynamic content creation for interactive websites.
Constructors and Finalizers in Java: From Object Creation to Efficient Cleanup
Jul 28, 2025.
Constructors are called whenever an instance of a given class is created. Finalizers are used to destroy the object created using constructors. A Constructor method is a special kind of method that determines how an object is finalized when created. They have the same name as the class and do not have any return type.
AutoMapper vs Manual Mapping in .NET: Which is Faster and More Efficient? Part - I
Jul 22, 2025.
AutoMapper in C# simplifies object-to-object mapping, reducing manual code when converting DTOs to models. It boosts productivity, ensures cleaner code, and handles complex mappings efficiently in large applications.
Managing Relationships, Migrations, and Performance Optimization in ASP.NET Core MVC
Jul 18, 2025.
This ASP.NET Core MVC project demonstrates how to manage one-to-many relationships using Entity Framework Core, handle code-first migrations, and apply performance optimization techniques such as AsNoTracking, pagination, and in-memory caching.
What is the DOM in JavaScript? A Beginner's Guide to the Document Object Model
Jul 11, 2025.
Learn the DOM—how browsers turn HTML into a tree structure that JavaScript can control. Master DOM methods, events, and real-life examples to build dynamic, interactive web pages as a frontend developer.
Object Oriented Programming Concepts in C# (2025)
Jul 08, 2025.
Explore object-oriented programming (OOP) in C# for 2025, covering core principles—encapsulation, inheritance, polymorphism, and abstraction, along with modern features like records, pattern matching, and more.
Data View and LINQ in C# and VB.NET
Jul 07, 2025.
Learn how to fetch unique values from a DataTable using DataView and LINQ in C# and VB.NET. Explore sorting, filtering, and displaying distinct book records with examples compatible with .NET Core and .NET 9.
What Is the DOM(Document Object Model)
Jul 04, 2025.
The DOM (Document Object Model) is a browser-generated tree structure representing HTML. JavaScript utilizes the DOM to access, modify, and interact with page elements dynamically in real-time.
Page Object Model Design Pattern: Benefits and Implementation
Jun 30, 2025.
The Page Object Model (POM) design pattern in Selenium improves test automation by separating UI structure from test logic, ensuring maintainability, reusability, readability, and scalability for growing web applications.
Mastering LINQ in C#
Jun 25, 2025.
Language Integrated Query (LINQ) is a game-changer in C#. It brings SQL-like data querying capabilities directly into your C# code, making data manipulation more intuitive, type-safe, and readable.
Understanding Select vs SelectMany in LINQ
Jun 19, 2025.
In this article, we are going to learn about the importance of LINQ features of select and SelectMany and the difference between them.
Building Objects in JavaScript
Jun 18, 2025.
JavaScript is an object-based language, which does not Completely support object oriented programming concepts. It provides a mechanism by which user-defined Objects can be created.
How To Run JavaScript in Power Automate Desktop Using “Run JavaScript” Action
Jun 17, 2025.
Learn how to run JavaScript directly in Power Automate Desktop using the “Run JavaScript” action. Build objects, return JSON via WScript.Echo(), and integrate JS logic seamlessly into your PAD flows.
FirstOrDefault vs. SingleOrDefault in LINQ: Key Differences and Use Cases
Jun 16, 2025.
In this article, we'll dive into the key differences between FirstOrDefault and SingleOrDefault, examining their behaviours, ideal use cases, and guidance on when to use each one. By the end, you'll gain a better understanding of how to utilize these methods to optimize data queries in your C# applications.
Liquid Objects in Power Pages Portal – Explained with Examples
Jun 02, 2025.
Learn how to use Liquid Objects in Power Pages Portal with clear examples. This guide helps you customize dynamic content, enhance user experience, and master Power Platform Liquid syntax.
PLINQ vs LINQ: Use Cases, and Performance Insights in C#
May 25, 2025.
Discover the key differences between LINQ and PLINQ in C#, including their syntax, execution models, performance benchmarks, use cases, and when to choose parallelism for processing large datasets efficiently.
Creating a "Pooled" Dependency Injection Lifetime in C# 13
May 19, 2025.
Discover how Ziggy Rafiq demonstrates how to set up a custom "pooled" dependency injection lifetime in C# 13 using ObjectPool<t> with best practices, DI registration, and high-performance service examples.</t>
The Spread Operator in JavaScript
May 04, 2025.
The spread operator (...) in JavaScript lets you quickly expand arrays or objects into individual elements. This article covers how to use it for copying, merging, and passing values, with real examples and common pitfalls explained.
Destructuring in JavaScript
May 03, 2025.
How to use destructuring in JavaScript. We’ll cover the basics, real-life use cases (like working with functions, APIs, and nested data), and throw in some practical tips along the way.
How to Convert a DataTable to a List of Objects in C#
Apr 27, 2025.
Learn how to convert a DataTable to a List<T> in C#. Explore manual, reflection-based, and LINQ methods for better performance, type safety, and cleaner code. Improve maintainability in modern C# applications.
How to Convert a List of Objects to a DataTable in C#
Apr 23, 2025.
In real-world C# applications, especially when working with data layers or exporting data (e.g., to Excel, reports, or grids), you may often need to convert a generic list of objects (List<T>) to a DataTable.This article shows you how to do that in a clean, reusable way using reflection.
Order of Execution in LINQ Queries
Apr 22, 2025.
This article explains the difference between deferred and immediate execution, outlines the execution order, and shares best practices to write efficient and optimized LINQ queries for real-world applications.
Primary Constructors in C# 12
Apr 18, 2025.
Primary constructors in C# 12 simplify class and struct initialization by allowing parameters to be declared directly in the class signature. This new feature reduces boilerplate code, making object creation cleaner and more concise. Great for writing modern, readable C# code.
LINQ in C# Tutorial for Beginners: 101 C# LINQ Operations
Apr 17, 2025.
Learn LINQ in C# with 101 essential operations for beginners. Simple examples of filtering, sorting, and joining data to make your code better and faster. Perfect for new C# developers.
.NET 8 - System.Linq.Dynamic.Core – using SQL LIKE
Apr 11, 2025.
System.Linq.Dynamic.Core library does not support SQL LIKE, and I added support for it. Added SQL LIKE support to the System.Linq.Dynamic.Core in .NET 8 using a custom patch. Enables dynamic SQL pattern matching in EF8 projects where built-in LIKE functionality was missing.
Interface Segregation Principle (ISP)
Apr 08, 2025.
The Interface Segregation Principle (ISP) is one of the SOLID principles of object-oriented design. It promotes creating small, specific interfaces so that implementing classes don’t need to depend on methods they don’t use, leading to cleaner, modular code.
Updating an Object in the Local Database in MAUI .NET 9 [GamesCatalog] - Part 11
Apr 03, 2025.
Learn how to retrieve and update game statuses in a local database using MAUI .NET 9. Implement async functions in GameRepo and GameService, manage game status, and enhance UI interactions efficiently.
Adding Objects to a Local Database in MAUI .NET 9 [GamesCatalog] - Part 10
Apr 02, 2025.
Learn how to store game reviews in a local SQLite database using MAUI .NET 9. This guide covers setting up repositories, handling images, adding games, and implementing dependency injection for seamless functionality.
New LINQ Features in .NET 9
Mar 29, 2025.
Discover the latest LINQ features in .NET 9 that enhance query performance, simplify data manipulation, and introduce new methods for better efficiency.
Exploring PLINQ (Parallel LINQ) for Parallel Processing
Mar 29, 2025.
PLINQ (Parallel LINQ) is a powerful feature in .NET that enables parallel processing of queries to improve performance on multi-core processors.
Understanding the Page Object Model (POM) in Test Automation
Mar 28, 2025.
The Page Object Model (POM) enhances test automation by improving maintainability, readability, and scalability. Implementing POM with best practices ensures efficient and reliable UI testing.
Integrating Java with QA Automation: Selenium WebDriver Testing
Mar 28, 2025.
Java and Selenium WebDriver offer a robust foundation for QA automation, enabling scalable, maintainable, and efficient testing. Implementing best practices ensures a high-quality software delivery process.
Understanding Expressions in C#: Dynamic Code and Query Generation
Mar 19, 2025.
Expressions in C# allow dynamic query generation, runtime compilation, and code transformation using Expression Trees. They are widely used in LINQ, ORM frameworks like Entity Framework, and reflection to optimize performance and enable flexible, data-driven logic.
A Simpler Way to Initialize Objects
Mar 18, 2025.
With the release of C# 12, Primary Constructors were introduced to simplify class and struct initialization. This feature allows parameters to be declared directly in the class or struct definition, eliminating the need for boilerplate code and improving readability.
Learn C#: Refactor Code
Mar 18, 2025.
Refactoring in C# enhances code readability, maintainability, and performance by eliminating redundancy, utilizing LINQ, extracting methods, applying null-coalescing operators, and implementing async/await patterns.
The Object Oriented Programming
Mar 17, 2025.
The Object Oriented Programming (OOP)  improves the scalability and reusability of the code. This comprise of class and objects.
Select vs SelectMany in C# LINQ
Mar 17, 2025.
In C# LINQ, Select transforms each element of a collection individually, maintaining the original structure, while SelectMany flattens nested collections into a single sequence, combining all sub-elements.
Azure Computer Vision - Object Detection
Mar 10, 2025.
This article is about exploring object detection in images using Azure Computer Vision service. Azure AI Vision offers robust object detection capabilities, enabling applications to identify and locate objects within images by providing bounding box coordinates and confidence scores.
Passing an Object from a List to Another Page in MAUI MVVM .NET 9 [GamesCatalog] - Part 6
Mar 10, 2025.
This article covers object passing techniques using navigation, data binding, and command binding in the GamesCatalog app. Enhance your cross-platform development skills with structured MVVM patterns for seamless data transfer.
Scope Communication Object in JSP
Feb 28, 2025.
The Scope Communication object consist of session object, application object and pageContext object.
Detailed Explanation of Use of Private Class vs Private Method
Feb 19, 2025.
A private class and a private method serve different purposes in object-oriented programming. A private class is restricted to its containing class, ensuring encapsulation, while a private method is used within a class to perform internal operations.
Various Methods to Count Occurrences of Each Number in Array or List
Feb 17, 2025.
In this article, I'll show you different ways to count how often a number appears in C#. We'll look at methods like LINQ, Dictionary, GroupBy, and Parallel.ForEach, and see which ones work best for small and large datasets.
Understanding Bridge Design Pattern
Feb 13, 2025.
This article explains its benefits, use cases, and implementation in C# with a real-world message-sending example using SmsMessageSender and EmailMessageSender.
Track Deployments Easily Using az.deployer().objectId
Feb 13, 2025.
Bicep v0.32 introduces az.deployer().objectId, enabling retrieval of the principal ID executing deployments. This enhances governance, audit trails, and resource tagging, improving visibility, compliance, and automation in Azure infrastructure.
A C# 13 Tip for building Data Transfer Objects (DTOs) Using Records
Feb 12, 2025.
C# records, introduced in C# 9 and improved in C# 13, offer immutable data models ideal for DTOs. They provide value semantics, concise syntax, automatic method generation, and enhanced data integrity for clean, maintainable code.
Most common GlideRecord objects in ServiceNow
Feb 04, 2025.
This article provides an overview of common GlideRecord methods in ServiceNow, which are essential for interacting with the platform's database. It covers key methods like querying, inserting, updating, deleting records, and managing permissions.
How to Convert a DataTable to a List of Objects in C#
Jan 27, 2025.
In many scenarios, you may need to convert this DataTable into a list of custom objects for easier manipulation and readability. In this article, we’ll go through a simple yet effective way to convert a DataTable to a list of any object type using C#.
The SOLID Principles in C# 13
Jan 25, 2025.
Ziggy Rafiq's detailed examples provide an overview of the SOLID principles of object-oriented design in C# 13. You'll learn how to adhere to SRP, OCP, LSP, ISP, and DIP to write maintainable, scalable, and extensible code.
Using C# 13's Method Overloading and Method Overriding
Jan 23, 2025.
With practical examples, key differences, and tips for mastering these core OOP concepts, Ziggy Rafiq explores Method Overloading and Method Overriding in C# 13.
Learn Quantifier Operations in LINQ
Jan 21, 2025.
Quantifier operations in LINQ simplify logical evaluations of collections using methods like `Any`, `All`, and `Contains`. They enhance readability, reduce boilerplate, and support efficient data validation and filtering.
Checking Two Matrices Are Equal in Java or Not
Jan 14, 2025.
Learn how to compare two matrices in Java by implementing a `Matrix` class to handle creation, input, and comparison. This article covers object-oriented concepts, user input, and array manipulation.
Why We need Factory Design Pattern?
Dec 31, 2024.
The Factory Design Pattern is a creational design approach that simplifies object creation by providing a central mechanism. It promotes code reusability, maintainability, and decoupling, making software development efficient and scalable.
Understanding the JavaScript Object Notation (JSON)
Dec 31, 2024.
JSON (JavaScript Object Notation) is a lightweight, human-readable data format used for data interchange between web applications and servers. It supports key-value pairs, arrays, and objects, making it easy to parse and widely supported across programming languages.
Implement FluentValidation in a .NET Web API
Dec 20, 2024.
Learn how to implement data validation in a .NET Web API using FluentValidation. Explore creating validation rules, handling nested objects, custom validations, and conditional logic. Customize error messages for user-friendly responses.
How to use AutoMapper in .NET Web API
Dec 20, 2024.
In this article, we are going to explore how to use AutoMapper in the .NET Web API Application with examples. How to use AutoMapper in .NET Web API
Understanding JavaScript Inheritance
Dec 13, 2024.
Programming paradigms such as object-oriented programming (OOP) are supported by JavaScript, a strong and adaptable programming language. Inheritance is a fundamental aspect of OOP that permits a class to inherit methods and properties from another class.
New LINQ Methods in .NET 9: Index, CountBy, and AggregateBy
Dec 11, 2024.
In this article, I will showcase the new methods: Index, CountBy, and AggregateBy. These powerful additions in .NET 9 bring significant enhancements to LINQ, aimed at improving your coding experience and simplifying data manipulation tasks.
Take Input in Java using Scanner Class with Code
Dec 06, 2024.
Learn how to capture user input in Java using the Scanner class. This guide covers importing, creating Scanner objects, reading inputs (strings, integers, doubles), and handling exceptions with examples.
C# Foundation - Implicitly Typed Variables
Nov 28, 2024.
Implicitly typed variables in C#, declared using the var keyword, let the compiler infer the data type from the initialization expression. This improves code readability and reduces verbosity, especially with complex types.
.NET 9 CountBy: A New LINQ Powerhouse
Nov 20, 2024.
.NET 9 introduces the CountBy method, a powerful addition to LINQ that enhances querying capabilities. This feature allows developers to count elements based on specified conditions efficiently.
Understanding .NET Binary Serialization
Nov 19, 2024.
.NET Binary Serialization simplifies the process of converting objects into binary formats for efficient storage or data transfer. This guide explores serialization techniques, the BinaryFormatter class, custom serialization, and best practices.