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]
Ajay Kumar(4)
Mariem Moalla(3)
Ziggy Rafiq(3)
Baibhav Kumar(2)
Gurpreet Arora(2)
Jaimin Shethiya(2)
Mark Pelf(2)
Subash S(2)
Mahesh Chand(2)
Jitendra Mesavaniya(2)
Riya Patel(1)
John Godel(1)
Naimish Makwana(1)
Amit Mohanty(1)
Atul Sharma(1)
Guest User(1)
Debasis Saha(1)
Vivek Kumar(1)
Vineet Kumar(1)
Gopi Chand(1)
Jasminder Singh(1)
Matthew Cochran(1)
Ishika Tiwari(1)
Sivasankar Gorantla(1)
Kevin Morales(1)
Shivprasad (1)
Saurav Kumar(1)
Nabaraj Ghimire(1)
Ajay Narkhedkar(1)
Sriganapathi Sekar(1)
Aarav Patel(1)
Aman Gupta(1)
Lokendra Singh(1)
Shaily Dubey(1)
Anu Viswan(1)
Satya Karki(1)
Lalit Bansal(1)
Kirtesh Shah(1)
Munib Butt(1)
Omar Maher(1)
Amit Choudhary(1)
Mukesh Kumar(1)
Tom Mohan(1)
Arpit Jain(1)
Sandeep Sharma(1)
Dea Saddler(1)
Praveen Kumar(1)
Resources
No resource found
What is Immutable Infrastructure and How Does it Work in DevOps?
Apr 21, 2026.
Immutable Infrastructure and How Does it Work in DevOps?
C# Performance Hack: Use record struct for Small, Immutable Models
Sep 16, 2025.
This optimization avoids heap allocation and provides value-based equality, unlike classes. See how record struct dramatically improves efficiency when comparing immutable objects, offering a significant advantage over traditional classes in specific scenarios.
Difference Between a Mutable and Immutable Data Type in Python?
Aug 26, 2025.
Unlock Python's core: mutable vs. immutable data types! Learn how lists, dictionaries, strings, and tuples behave differently, impacting memory and performance.
Why Readonly Doesn't Make Objects Immutable in C#
Aug 09, 2025.
Understanding Readonly Accessors and Their Impact on Reference Types in C#.
Demystifying Records in C#: Immutable Design for Modern Applications
Apr 20, 2025.
Unlock the power of C# Records! Learn how immutable design simplifies modern application development, boosts code safety, and enhances performance.
Creating Immutable Objects in C# with Examples
May 07, 2024.
This article explores the concept of immutability in C#, highlighting its benefits and implementation techniques. It covers creating immutable objects using read-only properties, readonly fields, and returning new instances in methods, along with the pros and cons of immutability.
C# 9 Record Types: Immutable Value Types, Syntax, & Usage
Apr 18, 2024.
Records in C# provide immutable data structures for representing data. They offer concise syntax for declaring classes with value-based equality, read-only members, and built-in methods like ToString(). Records support inheritance, pattern matching, and serialization, enhancing data modeling and manipulation in C# 9.
A Guide To Crafting Immutable Objects With C# 10's Init-Only Properties
Mar 06, 2024.
Discover how C# 10's init-only properties empower developers to craft immutable objects with precision, enhancing code readability and maintainability. In this article, Ziggy Rafiq demonstrates how you can use this powerful feature to create robust and predictable software.
Immutability: Creating Custom Immutable Types in C#
Jan 04, 2024.
In this article we will discuss about how to create custom immutable type in c#
C# 12's Records: A Game Changer for Data Objects and Immutable Types
Apr 17, 2023.
C# 12's Records: A Game Changer for Data Objects and Immutable Types
C# 11 - Immutable Object And Defensive Copy
Feb 27, 2023.
We discuss some issues related to Immutable Object and “defense copy”.
C# 11 - Immutable Object Pattern
Feb 22, 2023.
Beginner’s tutorial on Immutable Object Pattern with examples. An Immutable Object (Internal Immutability) in C# is an object whose internal state cannot be changed after it is created. That is different from an ordinary object (Mutable Object).
All About C# Immutable Classes
Mar 25, 2019.
In this article, we are going to cover all the necessary information you need to know about Immutable classes in C#.
Create Immutable Type In C#
Sep 14, 2017.
A public constructor that accepts initialization data is required so that the client can pass-in minimum state for the type to be valid. Private constructor, on the other hand, is used by methods to construct a new object and set its entire state.
AngularJS 2.0 From The Beginning - Immutable JS - Day Twenty Two
Mar 29, 2017.
In this article, we will discuss about Immutable js.
Mutable And Immutable Class In C#
Mar 29, 2017.
In this article, we are going to learn about mutable and immutable class in C#.
Why Strings Are Immutable in .Net
Mar 13, 2015.
Explore the concept of immutable strings in .NET, understanding how strings are allocated in memory, and why they are immutable. Learn how immutability enhances memory management, prevents race conditions in multi-threaded applications, and optimizes hash table usage.
Creating Immutable Class in Java
May 20, 2014.
This article shows how to create immutable classes in Java using suitable examples for a better explanation.
String is Immutable in C#
May 04, 2014.
Here we learn the behavior of strings, in terms of their performance, especially when an operation is performed on it, like we append a string to it.
XML Serialization/Deserialization of Immutable Objects
Apr 19, 2010.
Here’s a brief example of how to serialize and deserialize immutable objects to XML.
Immutable Arrays in JavaScript
Feb 21, 2024.
In this article, we will learn how to work with Immutable Arrays in JavaScript. Explore the world of immutable arrays in JavaScript, understanding their creation using the spread operator, benefits, and common operations. Learn how they contribute to predictable state management and functional programming principles.
Why String Is Immutable
Jun 20, 2017.
A string is a reference data type in C#. A string is a sequential collection of characters that is used to represent text. The value of the String object is the content of the sequential collection of System.Char objects, and that value is immutable (that is, it is read-only).
Programming With Immutable, Funtional Objects: Eliminating Conditionals
May 26, 2015.
This article is an introduction to a series that will show techniques to be used in modern software systems, blending together functional and object-oriented programming.
Demystifying: What does “Strings are immutable” means?
May 21, 2012.
In this article we will explain about String and StringBuffer.
Why Modern C# Encourages Functional Programming Concepts
Apr 05, 2026.
Explore how modern C# embraces functional programming with LINQ, lambdas, records, and pattern matching for cleaner, safer, and more maintainable code.
Immutability: The Secret Weapon for Reliable C# Applications
Mar 29, 2026.
Unlock the power of immutability in C# for building reliable applications! Learn how immutable objects prevent bugs, ensure thread safety, and simplify debugging. Master the secret weapon for robust .NET software.
What are C# Record Types and When to Use Them?
Mar 26, 2026.
Explore C# record types: a powerful feature for immutable data models. Learn about value-based equality, concise syntax, and best use cases for cleaner code. Ideal for DTOs and APIs.
Builder Pattern in C#
Mar 07, 2026.
Master the Builder Pattern in C# for elegant object creation! Simplify complex object construction with step-by-step implementation and improve code maintainability.
Record, Record Struct, and Structural Equality in C#
Dec 14, 2025.
Learn how structural equality works in modern C# using records and record structs, and why it is essential for building correct value objects in Domain-Driven Design. This guide explains when to use records, record structs, and classes for clean, scalable domain models.
Learn Data Types in C#
Dec 10, 2025.
This article provides a complete and descriptive guide to data types in C#. It explains value types, reference types, nullable types, numeric types, boolean, character types, strings, records, arrays, enums, structs, dynamic types, object types, pointer types, and memory behavior in C#. The article also covers stack vs heap storage, best practices, and clear examples, making it ideal for beginners and professional .NET developers who want to understand C# fundamentals in depth.
What Is the Difference Between a List and a Tuple in Python?
Oct 19, 2025.
Understand the key differences between Python lists and tuples — including syntax, mutability, speed, and memory efficiency. Learn when to use each with real code examples and insights for interviews.
Python - Data Types - Tuple Operations
Oct 08, 2025.
Explore Python tuples! This guide covers tuple definition, immutability, and practical operations. Learn to create, convert (list to tuple, tuple to list), concatenate, and unpack tuples. Discover methods like count, index, and techniques for handling mixed data types, nested tuples, and removing duplicates. Master tuple manipulation with clear examples and code snippets. Perfect for Python beginners and experienced developers alike!
Difference between Props and State
Aug 11, 2025.
Props are read-only data passed from parent to child components, while state is mutable data managed within a component. Together, they control UI rendering and ensure smooth data flow in React apps.
What are Java Records, and how do they improve data modeling in Java?
Aug 08, 2025.
This article explores Java Records, a feature introduced in Java 14 and finalized in Java 16—and how they simplify and enhance data modeling. Learn what Records are, how they differ from traditional Java classes, their benefits in immutability, concise syntax, and real-world use cases, with clear examples.
Designing & Retaining HIPAA Audit Logs: Best Practices for Developers
Jul 12, 2025.
Learn how to implement comprehensive HIPAA audit logging—what PHI events to capture, how to store logs immutably, retention requirements, and real-time monitoring for compliance and security.
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.
Advanced C# 13 and .NET 9 Features for Expert .NET Engineers
Nov 22, 2024.
With this guide, you will learn about enhanced pattern matching, static abstract members, Native AOT, and much more in C# 13 and .NET 9. Written by Ziggy Rafiq, this is the best resource for experienced .NET Software Engineer Leads.
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.
Java 21: The Latest Features and Improvements
Jul 26, 2024.
Java 21 introduces significant enhancements including Pattern Matching for Switch, Record Patterns, and String Templates. It also features Sequenced Collections, Virtual Threads, and Scoped Values, streamlining concurrent programming and improving code efficiency.
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.
Exploring Record Classes in Java
Jun 28, 2024.
Discover the simplicity and power of record classes in Java with our comprehensive guide. Explore how Java's record classes, introduced in Java 14, streamline the creation of immutable data structures.
Frozen Collections in .NET 8
Jun 10, 2024.
Frozen Collections in .NET 8" explores the introduction of frozen (immutable) collections in the latest .NET framework. These collections offer performance optimizations and enhanced memory management by ensuring data structures are read-only after creation.
Difference between String & StringBuilder in .NET C#
Jun 05, 2024.
In .NET C#, String is immutable, meaning any modification creates a new instance, which can be inefficient for frequent changes. StringBuilder is mutable, designed for dynamic string manipulation without creating new instances.
Building a Blockchain in .NET
May 27, 2024.
Blockchain technology offers a decentralized, immutable ledger system beyond cryptocurrency. This guide demonstrates building a basic blockchain using .NET, covering key concepts, implementation steps, and running the application.
What is Constants(const) in C#?
Apr 22, 2024.
Constants are essential elements in any programming language, providing a way to define values that remain unchanged throughout the execution of a program. This guide explores the concept of constants in C#, their usage, advantages, and best practices.
Exploring Frozen Collections in .NET 8 With Benchmarking
Apr 14, 2024.
Frozen Collections is a new .NET 8 feature that can be used to create Dictionaries and Sets for faster read operations when you don’t need to make changes after the creation. In this article, I present how to work with these collections and demonstrate the performance difference when compared with other collections.
Structs in C#
Aug 28, 2023.
Discover the significance of C# structs - lightweight alternatives to classes. Efficiently manage memory and enhance performance with value types while considering scenarios and pitfalls for optimal implementation.
Methods in Rust
Apr 26, 2023.
Rust methods, including their syntax, usage, and benefits.
IEnumerable<T> Vs IReadOnlyList<T>
Nov 28, 2022.
Understanding the differences between IEnumerable<T> and IReadOnlyList<T> when returning immutable collection from method
What Is LevelDB
Nov 16, 2021.
This article will describe the most commonly used database in blockchain technology; LevelDB which is an example of a NoSQL database and stores data as key-value.
The Role Of Blockchain As A Service In The Tech Industry
Dec 08, 2020.
Blockchain as a Service (BaaS) revolutionizes tech by offering scalable, secure, and transparent solutions. It enhances industries like finance, healthcare, and supply chain with decentralized data management and smart contracts, fostering innovation and efficiency.
C# 9.0 - Introduction To Init-Only Property
Oct 05, 2020.
C# 9.0 introduced a new feature called Init-Only Properties, enhancing the language's capabilities for defining immutable types. Init-only properties allow you to create read-only properties that can only be set during object initialization. This feature simplifies the creation of immutable objects, providing a concise and expressive syntax for initializing properties at the time of object creation and ensuring their immutability afterwards.
Using Records In C# 9.0
Sep 30, 2020.
C# 9.0 introduced a significant language feature known as records, which simplifies the creation of classes for immutable data. Records provide a concise and elegant way to define classes for storing and manipulating data by reducing boilerplate code.
Tuples In C# 7 - What Are They And How Can I Use Them?
Apr 28, 2017.
Tuples In C# 7 - What Are They And How Can I Use Them?
Arrays in F# - A Mutable Collection
Apr 12, 2016.
In this article you will learn about Arrays in F#. Arrays in F# are mutable data type.
Ref And Out keyword In C#
Oct 08, 2015.
IN this article, we will learn Ref" and "Out" keywords in C# are used to modify method parameter behavior. "Ref" passes parameters by reference, allowing method changes to reflect outside the method. "Out" is similar but used for returning multiple values from a method.
.NET 4.5 Read-Only Interfaces
Mar 26, 2015.
.NET Framework 4.5 introduced read-only interfaces, facilitating immutability in C#. These interfaces enforce that implementing classes cannot modify properties, enhancing code predictability and safety in scenarios where immutable data structures are desired.
Python Basics: Understanding The Variables
Aug 14, 2013.
In this article you will learn about Python variables, especially Numbers, Strings and Lists.
Working Of String In Java
May 07, 2013.
In this article we discuss working of string in java and also discuss Immutable string, String comparison and string concatenation.
Data Types in F#
Jul 04, 2011.
In this article you will learn about the mutable and immutable data types of F#. If you want to understand that then take a Quick review.
Method Parameter Types in C#
Dec 02, 2009.
In this article I will explain you about Method Parameter Types in C#.