C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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]
Ajay Kumar(6)
Sanjay Kumar(6)
Uday Dodiya(6)
Ziggy Rafiq(5)
Ashish Bhatnagar(5)
Vishal Yelve(4)
Ayush Gupta(4)
Rikam Palkar(3)
Emanuel Martins(3)
Vijay Kumari(3)
Jaimin Shethiya(3)
Rasul Huseynov(3)
Vijay Yadav(3)
Jitendra Mesavaniya(3)
Shafaet Hossain(2)
Bimalshi Jayarathna(2)
Ganesan C(2)
Lokendra Singh(2)
Arpit Shrivastava(2)
Chetan Sanghani(2)
Mark Pelf(2)
John Godel(1)
Dashrath Hapani(1)
Maria Joshua Roy(1)
Vipul Malhotra(1)
Praveen Sreeram(1)
Mohamed Azarudeen Z(1)
Harsh Sharma(1)
Babita (1)
Raveena Attri(1)
Praveen Raveendran Pillai(1)
Jalpa Dhola(1)
Jignesh Kumar(1)
Sangeetha S(1)
Jay Krishna Reddy (1)
Jin Necesario(1)
Sarthak Varshney(1)
Hamed Niazmand(1)
Rajiv Singh(1)
Viknaraj Manogararajah(1)
Vishal Joshi(1)
Safyan Yaqoob(1)
Mamta M(1)
Devesh Omar(1)
Baibhav Kumar(1)
Akshay Shedwad(1)
Ananthakrishna V(1)
Aman Gupta(1)
Naveen Kumar(1)
Sreenath Kappoor(1)
Resources
No resource found
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.
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.
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.
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.
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.
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.
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.
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.
Copying All Elements of One Array to Another Array in Java with Code
Jan 21, 2025.
Learn how to copy arrays in Java using user input, iterative methods, and `System.arraycopy()`. This article demonstrates seamless duplication of entire arrays and subsets with practical examples.
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.
Understand the Concept of Shallow Copy and Deep Copy in C#
Jan 06, 2025.
Learn the difference between shallow and deep copying in C#. Explore their behavior, implementation, and use cases with practical code examples, helping you make informed decisions for object duplication scenarios.
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.
How to Transfer Files/Folders from AWS EC2 to Local Machine Using SCP
Dec 27, 2024.
Transferring files between an AWS EC2 instance and your local machine is easy using SCP. This guide explains the steps to securely copy files and folders, verify transfers, and ensure successful data movement using SSH.
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
How to Transfer Files or Folders from Local Machine to Remote in EC2
Dec 17, 2024.
This article explains how to transfer files or folders from your local computer to an Amazon EC2 instance using SSH and SCP. It covers the steps to connect to the EC2 instance, create a folder, and securely transfer files.
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.
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.
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.
How to Read and Write JSON Files in C#
Nov 17, 2024.
JSON is a common data format used in APIs, configuration files, and data exchange. Learn to handle JSON in C# using `System.Text.Json`. This article covers creating data models, writing to and reading from JSON files, with practical code examples for efficient JSON management.
How to Sort a List of Objects in TypeScript by Property
Nov 09, 2024.
This guide covers sorting lists of objects in TypeScript, with examples for sorting by string, numeric, and date properties. It demonstrates using the sort() method, localeCompare for strings, custom sorting functions for dates and numbers, and multi-property sorting techniques.
Explaining Bundle in Android Development
Nov 05, 2024.
In this article, we will discuss A Bundle in Android Development is a key-value data structure used to transfer data between activities, fragments, and other components.
Object Oriented Design Balancing with Anti-Single Responsibility
Nov 05, 2024.
This article will change your perspective on working with the Single Responsibility Principle (SRP). The main point is to focus on finding balance when designing object-oriented systems and applying SRP.
Encapsulation vs Abstraction in C#
Oct 21, 2024.
Encapsulation and abstraction are fundamental concepts in C# and object-oriented programming. Encapsulation refers to the bundling of data and methods that operate on that data within a class, promoting data hiding and security.
Validation of Complex Objects in Multi-Lingual Environment Using DynamicVNET With ASP.NET Core
Oct 14, 2024.
DynamicVNET is a lightweight, rule-based validation library for .NET applications, designed to validate POCOs while adhering to the Single Responsibility Principle (SRP). It integrates seamlessly with ASP.NET Core, enabling flexible and dynamic validation for API requests with minimal configuration.
What is JSON and Why Is It So Important?
Oct 10, 2024.
JSON (JavaScript Object Notation) is a lightweight, language-independent data format that represents key-value pairs, supporting strings, numbers, arrays, objects, and complex structures widely used for web applications and data interchange.
TypeScript Object Spread
Oct 10, 2024.
Object spread in TypeScript allows for copying properties of objects or arrays using the spread operator (...), with later objects overwriting properties with the same name, and it can also be used to combine arrays or insert elements at specific positions.
What is Alibaba Cloud Object Storage Service (OSS)
Oct 08, 2024.
Discover Alibaba Cloud OSS, scalable and secure cloud storage for unstructured data, offering high durability, cost-effectiveness, and global accessibility.
Pattern Matching for Switch in Java 17
Oct 07, 2024.
Pattern matching for switches in Java 17 enhances code readability and simplifies working with complex data structures. It allows you to match object types, use type patterns, and add conditions with guarded patterns.
How to Compare Two Objects in C#
Oct 03, 2024.
In this article, we’ll walk through how to create a generic method that can compare the objects of any class, even those with nested collections. We’ll break it down step by step so you can implement this in your projects effortlessly.
Construct a Deep Copy of LinkedList
Oct 03, 2024.
The task involves creating a deep copy of a linked list where each node has a random pointer that may point to any node or null. Using a dictionary to map original nodes to their corresponding new nodes, the algorithm efficiently sets next and random pointers, achieving O(n) time and space complexity.
Managing Amazon S3 Buckets
Sep 29, 2024.
This guide walks through managing AWS S3 Buckets, covering file and folder uploads, enabling bucket versioning for version control, and restoring files in case of accidental deletion.
Difference Between Static Modifier and Final Modifier
Sep 26, 2024.
Sometimes, a programmer might need to define a class member that will be used independently of any object of that class.
Explaning Wrapper Classes in Java
Sep 23, 2024.
This is essential for utilizing Java’s object-oriented features, such as collections. With autoboxing and unboxing, Java simplifies conversions between primitives and their corresponding wrapper classes, enhancing type safety and performance in data manipulation.
Prototype Pattern: Cloning Objects in C#
Sep 18, 2024.
The Prototype Pattern is a creational design pattern that simplifies object creation by cloning existing instances instead of starting from scratch. Ideal for complex objects, it reduces initialization overhead and ensures consistency.
Derived Class Constructors in Java
Sep 17, 2024.
Constructors are used to initialize an object of a particular type, as well as to allocate memory, and have the same name as the class.
Builder Pattern: Constructing Complex Objects
Sep 14, 2024.
In this article, we learn about Builder Pattern: Constructing Complex Objects. The Builder Pattern simplifies the creation of complex objects through step-by-step construction. It enables flexibility, modularity, and clarity in assembling products, making it ideal for various configurations and customizations.
What is Indexer in C#?
Sep 13, 2024.
An indexer in C# allows objects to be indexed like arrays, enabling access to elements using an index. It’s defined with this keyword and can be used to encapsulate data access in a class or struct. Indexers enhance the flexibility and readability of code by simplifying element retrieval and storage.
Exaplain Copy Constructor in C#
Sep 10, 2024.
A copy constructor in C# allows creating a new object by copying an existing object. It duplicates the values of properties and fields from the original object. This method is useful for creating independent object copies, enhancing code readability, and managing object duplication efficiently.
Abstract Factory Pattern: Designing Families of Related Objects in C#
Sep 09, 2024.
The Abstract Factory Pattern provides an interface for creating families of related objects without specifying their concrete classes. It ensures consistency and flexibility in object creation, useful in scenarios like UI design, configuration systems, and data access layers, promoting modular and decoupled design.
Singleton Pattern: Ensuring a Single Instance in .NET Core
Sep 09, 2024.
In this article, we learn about Singleton Pattern: Ensuring a Single Instance in .NET Core. The Singleton Pattern ensures a class has only one instance, providing global access. It's commonly used for managing shared resources like logging, configurations, or database connections, ensuring efficient resource usage.
Factory Method Pattern: Simplifying Object Creation in C#
Sep 06, 2024.
The Factory Method Pattern is a creational design pattern that delegates object creation to subclasses, promoting flexibility and maintainability. It defines an interface for creating objects but lets subclasses decide which class to instantiate. This approach reduces coupling and enhances scalability in complex systems.
Categorizing Design Patterns: Creational, Structural & Behavioral
Sep 05, 2024.
In this article we will learn about Categorizing Design Patterns: Creational, Structural, and Behavioral. It provides real-life examples, benefits, and challenges, offering developers insights for better software architecture.
A Guide to Using the Decorator Pattern in Your C# Code
Sep 04, 2024.
In this article, we will learn how to implement this pattern in your C# code, improve code reusability, and follow best practices for more maintainable and flexible software design.
Explain Primary Constructor in C# 12
Sep 04, 2024.
The primary constructor in C# 12 introduces a new way to define and initialize properties directly within the class declaration, simplifying object creation and reducing boilerplate code.
Understanding State Design Pattern
Sep 02, 2024.
This pattern is particularly useful for implementing state machines or managing complex state-dependent logic, as it promotes cleaner code and improves maintainability in software development.
Interface Re-implementation in C#
Aug 29, 2024.
This guide covers the principles of object-oriented programming, including inheritance and polymorphism, and demonstrates practical techniques for effective interface re-implementation and code refactoring.
Understanding of Design Patterns
Aug 29, 2024.
Design patterns are essential in software development, divided into architectural and application/code-level patterns. Architectural patterns guide the high-level structure of software, ensuring components communicate effectively, are secure, and scalable.
Working with Form Objects in JavaScript
Aug 28, 2024.
This HTML document features a user input form that collects first name, last name, email address, and comments. JavaScript functions validate these inputs to ensure fields aren't blank and the email is properly formatted. Valid data is displayed in a new window for user review before final submission.
Introduction to Python Classes
Aug 23, 2024.
Learn how to define classes, create objects, and understand key OOP concepts like inheritance and encapsulation. Perfect for new programmers looking to master Python's class-based structure.
Object-Oriented Programming (OOP) in .NET
Aug 22, 2024.
This article explores Object-Oriented Programming (OOP) within the .NET framework, focusing on core concepts such as classes, objects, inheritance, polymorphism, encapsulation, and abstraction.
The Best Way to Work with Excel in .NET: MiniExcel
Aug 16, 2024.
MiniExcel is a lightweight, high-performance .NET library for handling Excel files. Simplifies tasks like reading and writing data with minimal dependencies and fast processing. Ideal for reporting, data export/import, and automation, MiniExcel offers a streamlined approach without the complexity of heavier libraries.
Understanding the Record in C#
Aug 16, 2024.
Learn how records differ from classes, their advantages in creating immutable types, and how they enhance object initialization, equality checks, and more in .NET applications.
Understanding Adapter Design Pattern
Aug 16, 2024.
The Adapter Design Pattern is a structural pattern that allows incompatible interfaces to work together. It acts as a bridge between two incompatible interfaces by converting the interface of a class into another interface clients expect.
Best Practices for Managing Large Session States in ASP.NET MVC
Aug 14, 2024.
To manage large session states in ASP.NET MVC efficiently, follow best practices: minimize stored data, use serializable objects, enable session state compression, and implement distributed caching with Redis or Memcached.
Leveraging Records for Data Transfer Objects (DTOs) in C# .NET
Aug 12, 2024.
This article explores how to leverage C# records for implementing Data Transfer Objects (DTOs) in .NET. It delves into the benefits of using records for immutable data structures, enhancing code readability, and reducing boilerplate.
Comparing ChatGPT, Google Gemini & GitHub Copilot: Strengths & Limits
Aug 09, 2024.
ChatGPT, Google Gemini, and GitHub Copilot are leading AI tools with distinct capabilities. ChatGPT excels in natural language processing, Google Gemini offers advanced multimodal understanding, and GitHub Copilot specializes in real-time code generation.
Understanding Builder Design Pattern
Aug 01, 2024.
The Builder is a pattern that belongs to the creational design patterns family. What makes it special is its ability to provide abstraction to the client by encapsulating different types of the same object with various combinations during the creation process.
Copying Text to Clipboard in AngularJS
Jul 31, 2024.
Learn how to implement clipboard functionality in AngularJS to enable users to easily copy text with a click. This guide covers the use of AngularJS directives, JavaScript methods, and the Clipboard API to streamline copying text to the clipboard in web applications.
Constructor in .NET Core C#: Usage and Examples
Jul 29, 2024.
Learn about constructors in .NET Core with C# in this comprehensive guide. Discover how constructors initialize class instances, their role in dependency injection, and various use cases.
Understanding Constructors in .NET Core
Jul 23, 2024.
"Explore the fundamentals of constructors in .NET Core, focusing on their role in object initialization and class setup. Learn about constructor overloading, chaining, and best practices in C#.
Getting Started with ADO.NET
Jul 22, 2024.
ADO.NET (ActiveX Data Objects . NET) is a set of classes in the .NET Framework that provides access to data sources such as SQL Server, Oracle, and other databases. It is a part of the larger .NET ecosystem, enabling developers to interact with data in a structured and efficient manner.
Working with Connection Objects in ADO.NET
Jul 22, 2024.
ADO.NET is a set of classes that expose data access services for .NET Framework programmers. A primary feature of ADO.NET is the ability to work with disconnected data. However, working directly with databases is often necessary, and this is where connection objects come into play.
Detailed Explanation of Builder Design Pattern in C#
Jul 22, 2024.
The Builder design pattern is a creational pattern used to construct complex objects step by step. It separates the object's construction from its representation, allowing for varied configurations and ensuring immutability.
Understanding Sealed Classes in C#
Jul 22, 2024.
Sealed classes in C# are a vital concept in object-oriented programming, preventing other classes from inheriting them. This ensures a secure and stable class hierarchy by stopping further extension.
Object Oriented Programming in Python
Jul 19, 2024.
Object Oriented Programming in Python" delves into the principles and concepts of OOP using Python. This guide covers classes, objects, inheritance, polymorphism, and encapsulation, providing practical examples and hands-on exercises.
Wrapper Class vs. Object Composition with UseCase
Jul 18, 2024.
Explore Wrapper Classes and Object Composition in object-oriented programming. Learn how wrappers adapt interfaces and enhance functionality without altering code, ideal for legacy systems.
Encapsulation, Inheritance, and Polymorphism in C#
Jul 18, 2024.
In this article, we will learn how to encapsulate data for security, leverage inheritance for code reuse, and implement polymorphism to create flexible and scalable applications.
JavaScript – Prototypal Inheritance – Illustrated
Jul 12, 2024.
JavaScript – Prototypal Inheritance – Illustrated" is an in-depth guide that explores the concept of prototypal inheritance in JavaScript. This illustrated tutorial simplifies complex topics like object prototypes, prototype chains, and inheritance patterns.
Object Inheritance and Object Composition in Object Oriented Programming
Jul 12, 2024.
This content delves into two fundamental concepts of Object-Oriented Programming (OOP): object inheritance and object composition. It explores how inheritance enables class hierarchies and polymorphism, allowing for code reusability and extension.
JavaScript - Closures Demystified
Jul 10, 2024.
Function closures in JavaScript encapsulate variables from their defining scope, allowing functions to retain access to these variables even when executed outside that scope. This tutorial explores closures with practical examples, aimed at intermediate and advanced JavaScript developers seeking a deeper understanding of this powerful feature.
Interface Vs Abstract Class
Jul 10, 2024.
This article delves into the differences between interfaces and abstract classes in object-oriented programming. It explores their roles in languages like Java and C#, highlighting key concepts such as inheritance, polymorphism, and abstraction.
Understanding MapStruct in Spring Boot for Java Bean Mapping
Jul 09, 2024.
Explore MapStruct in Spring Boot for seamless Java Bean mapping. Discover how MapStruct simplifies object mapping between DTOs and entities, leveraging annotations for automated conversion.
Detailed explanation of Abstract Factory design pattern
Jul 08, 2024.
The Abstract Factory design pattern is a creational pattern that provides an interface for creating families of related or dependent objects without specifying their concrete classes.
Understanding Synonyms in SQL Server
Jul 08, 2024.
Understanding Synonyms in SQL Server" delves into the concept and implementation of synonyms within SQL Server. This guide covers how to create, use, and manage synonyms to simplify SQL queries, improve code readability, and streamline database administration.
How to use the Abstract Factory Pattern in C# with the Interface Pattern
Jul 03, 2024.
Learn how these design patterns improve flexibility, scalability, and maintainability in software development by exploring the Abstract Factory Pattern and Interface Pattern in C# with Ziggy Rafiq. Become proficient in object-oriented design by taking advantage of practical examples and implementing them step-by-step.
Mastering Nested Types in C#: Best Practices and Common Pitfalls
Jul 03, 2024.
Nested types in C# allow developers to define a type within another type, such as a class, struct, interface, enum, or delegate. This feature helps in organizing related types, encapsulating implementation details, and improving code readability.
Understanding C# Records with Example
Jul 02, 2024.
This article delves into the syntax and usage of records, comparing them with classes, and demonstrates how records can simplify code while improving performance and maintainability in .NET applications.
Benefits of Locking and Unlocking Objects in C#
Jul 02, 2024.
Object locking in C# ensures controlled access to shared resources in multithreaded environments, preventing race conditions and maintaining data integrity. By using the lock statement, you can synchronize threads, ensuring thread safety and avoiding deadlocks.
Design Patterns and Advantages of Different Design Patterns
Jul 01, 2024.
Design patterns are recurring solutions to common problems in software design. They provide a template for solving issues in a particular context. The advantages of using different design patterns include improved code reusability, maintainability, and scalability.
Discards in Tuple and Object Deconstruction in C# .NET
Jul 01, 2024.
In C#, deconstruction allows you to extract values from tuples and objects into separate variables. It's a powerful feature that enhances readability and simplifies code when working with complex data structures. Discards, introduced in C# 7.0, further extend this capability by enabling you to ignore values that you don’t need during deconstruction.
Understanding Builder Design Pattern
Jul 01, 2024.
Discover the Builder Design Pattern, a creational pattern that separates the construction of a complex object from its representation. Learn how it simplifies object creation, especially for objects requiring numerous parameters.
Database Objects Related to Table in Database - Transact SQL Query
Jun 29, 2024.
The SQL query retrieves distinct object names and their types from SYSCOMMENTS and SYSOBJECTS system tables, categorizing objects by their XTYPE values ('P' for procedure, 'V' for view, 'TR' for trigger). It filters results containing 'table_name' in their definitions, providing insights into database object metadata.