C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2334 articles Updated Page 15 of 94
C# articles, tutorials, and news from the DotNetNews archive.
C# articles
Page 15 of 94
Newest first
-
How to Write Clean Code in C# Using Naming Conventions and Best Practices?
c-sharpcorner.com Issue #433
Master C# clean code: naming conventions, best practices, and SOLID principles. Write readable, maintainable, and scalable .NET applications. Improve team collaboration!
-
How to Use the New Field Keyword in C# 14 for Properties
c-sharpcorner.com Issue #433
Simplify C# property implementation with the 'field' keyword in C# 14! Reduce boilerplate, enhance readability, and maintain custom validation effortlessly. Boost productivity!
-
-
How to Use Collection Expressions in C# 13 and C# 14
c-sharpcorner.com Issue #433
Simplify collection initialization in C# 13 & 14 with collection expressions! Boost readability, reduce boilerplate, and enhance productivity. Learn how!
-
How to Handle Exceptions in C# Using Try, Catch, Finally With Real Examples
c-sharpcorner.com Issue #433
Master C# exception handling with try, catch, and finally blocks! Learn to build robust applications, prevent crashes, and improve user experience. Real examples included!
-
How to Add a Watermark to an Image in C# ?
news.google.com Issue #432
How to Add a Watermark to an Image in C# ?
-
Difference Between String and StringBuilder in C# and When to Use Each?
c-sharpcorner.com Issue #432
Unlock C# text manipulation mastery! Learn the String vs. StringBuilder difference for optimal performance. Discover when to use each for efficient code and scalability.
-
What is the Difference Between Record Struct and Class in C#?
c-sharpcorner.com Issue #432
Unlock the secrets of C#! Learn the key differences between record struct and class for optimal performance and maintainability. Master data type selection!
-
LINQ Performance Pitfalls Every C# Developer Should Know
medium.com Issue #432
Two subtle choices — IEnumerable vs IQueryable, and Func vs Expression — can mean the difference between a fast query and a silent…
-
Why Modern C# Encourages Functional Programming Concepts
c-sharpcorner.com Issue #432
Explore how modern C# embraces functional programming with LINQ, lambdas, records, and pattern matching for cleaner, safer, and more maintainable code.
-
What Are Primary Constructors in C# 12 and Their Benefits?
c-sharpcorner.com Issue #432
Discover C# 12's primary constructors! Simplify code, boost readability, and reduce boilerplate. Learn how they streamline data models and dependency injection.
-
How to Fix “Object Reference Not Set to an Instance of an Object” in C#?
c-sharpcorner.com Issue #431
Master the dreaded 'Object reference not set' error in C#! Learn to identify, fix, and prevent NullReferenceExceptions with practical C# and ASP.NET Core examples.
-
How to Optimize Memory Usage with C# Garbage Collection
c-sharpcorner.com Issue #431
Unlock C# garbage collection! Learn how it works, optimize memory usage, and boost performance in ASP.NET Core apps. Essential for scalable .NET development.
-
C# Data Types: Different Boxes for Different Stuff (Part 7)
medium.com Issue #431
How to choose the right “container” for your data
-
C# Records Explained Like a Pro
medium.com Issue #431
(With Real-World Use Cases & Performance Insights)
-
Stop NullReferenceExceptions in C# Before They Break Your App
medium.com Issue #430
A NullReferenceException occurs when you try to access a member (method, property, index) of an object that is currently null.
-
async/await in C#: What Actually Happens
medium.com Issue #430
I kept hearing that async/await makes code “run in the background” or “makes things faster,” but that never fully made sense to me.
-
Why Async/Await Changed the Way We Think About Concurrency
c-sharpcorner.com Issue #430
Explore how async/await revolutionized concurrency in C#. Learn how it simplified asynchronous programming, improved scalability, and shifted developer thinking in .NET.
-
Difference Between Abstract Class and Interface in C# With Examples
c-sharpcorner.com Issue #430
Explore the nuances of Abstract Classes vs. Interfaces in C#. Learn their key differences, use cases, and real-world examples for better C# development.
-
C# Programming Language Guide
c-sharpcorner.com Issue #429
This document is content of my research, it has piece of paragraphs that I have gained from the official vendor of .NET and C# programming language which is Microsoft.
-
How to Implement a Binary Search Algorithm in C# With Example
c-sharpcorner.com Issue #429
Master Binary Search in C#! This guide covers iterative & recursive implementations with clear examples, optimization tips, and real-world applications. Boost your search efficiency!
-
Talking to Users: How C# Shows Output (Part 4)
medium.com Issue #429
Making your programs speak to the world (and to you!)
-
C# Mistakes That Are Silently Slowing Down Your Code
medium.com Issue #429
Most C# developers don’t realize a thing. Your code might be working perfectly but still performing badly. No errors. No crashes. Just…
-
Source code generated string enums with exhaustion support
steven-giesel.com Issue #429
Some time ago (over 4.5 years ago!) I wrote a blog post titled: "A better enumeration - Type safe from start to end". While cool and so - it had some issues. Let's tackle them!
-
Explore union types in C# 15
devblogs.microsoft.com Issue #429
C# 15 introduces union types — declare a closed set of case types with implicit conversions and exhaustive pattern matching. Try unions in preview today and see the broader exhaustiveness roadmap. Th...