• Videos
  • Newsletters
  • Resources

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides
Popular Topics
  • Artificial Intelligence
  • Cloud Computing
  • Data Management
  • Software Development
  • Videos
  • Newsletters
  • Resources

Topics

  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
HomeBlogs.NET ProgrammingPage 3

.NET Programming

Filter by
Analysis
BrandPost
Feature
How-To
Interview
News
News Analysis
Opinion
Reviews
Tip
how-to

How to create a custom configuration provider in ASP.NET Core 6

ASP.NET Core configuration providers read configuration data from common sources such as JSON files and databases. But you can use other sources by creating custom configuration providers.

By Joydip Kanjilal
Sep 15, 2022 7 mins
C# Microsoft .NET Web Development
how-to

How to use EF Core as an in-memory database in ASP.NET Core 6

Entity Framework Core allows you to store and retrieve data to and from an in-memory database. It’s a quick and easy way to test your ASP.NET Core 6 web applications.

By Joydip Kanjilal
Sep 08, 2022 9 mins
C# Microsoft .NET Web Development
feature

The best new features in ASP.NET Core 6

Learn the most important new features and enhancements in Microsoft’s cross-platform framework for building modern web applications.

By Joydip Kanjilal
Jul 21, 2022 6 mins
C# Microsoft .NET Web Development
how-to

How to work with a priority queue in .NET 6

Take advantage of the PriorityQueue class in .NET 6 to create queues that work based on priority values you assign to the elements.

By Joydip Kanjilal
Jul 14, 2022 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to migrate ASP.NET Core 5 code to ASP.NET Core 6

It’s easy to update your ASP.NET Core 5 code to ASP.NET Core 6. Learn how by following these examples.

By Joydip Kanjilal
Jul 07, 2022 6 mins
C# Microsoft .NET Web Development
feature

The best new features in .NET 6

Microsoft .NET 6 marks a new era of developing performant, modern-day applications for web, cloud, desktop, and mobile devices.

By Joydip Kanjilal
Jun 30, 2022 8 mins
Microsoft .NET C# Software Development
how-to

How to work with trace listeners in ASP.NET Core 6

Take advantage of trace listeners in ASP.NET Core 6 to add performance and debugging instrumentation to your applications with ease.

By Joydip Kanjilal
Jun 23, 2022 7 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to implement IP whitelists in ASP.NET Core 6

Take advantage of middleware in ASP.NET Core 6 to check the remote IP address of every request, and allow requests only from known and trusted addresses.

By Joydip Kanjilal
Jun 16, 2022 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

Use logging and DI in minimal APIs in ASP.NET Core 6

How to implement logging, read from the configuration system, and use dependency injection in minimal APIs in ASP.NET Core 6.

By Joydip Kanjilal
Jun 02, 2022 6 mins
C# Microsoft .NET Web Development
how-to

How to work with String.Create in C#

Take advantage of String.Create to create strings with no allocation overhead and improve the performance of your .NET 6 applications.

By Joydip Kanjilal
May 26, 2022 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to compress and decompress strings in C#

Take advantage of the GZip and Brotli compression methods to reduce the size of string data and improve performance in your .NET Core applications.

By Joydip Kanjilal
May 12, 2022 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with Azure Functions in C#

Take advantage of Azure Functions to run small pieces of code that can be triggered by events in the Azure cloud.

By Joydip Kanjilal
Apr 28, 2022 10 mins
C# Microsoft .NET Microsoft Azure
how-to

How to enforce architecture rules in C#

Take advantage of the NetArchUnit to enforce architecture rules in your application and ensure consistency of quality and standards.

By Joydip Kanjilal
Apr 14, 2022 7 mins
Microsoft .NET C# Software Development
how-to

How to work with disconnected entities in Entity Framework Core

Learn how you can track changes to entities while disconnected from the EF context in Entity Framework Core.

By Joydip Kanjilal
Mar 10, 2022 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with IAsyncDisposable in .NET 6

Take advantage of the IAsyncDisposable interface to dispose of objects in a non-blocking way and make your .NET applications more efficient.

By Joydip Kanjilal
Feb 10, 2022 5 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

Demystifying the Program and Startup classes in ASP.NET Core

Program and Startup are the main classes for configuring .NET applications. Learn how to use them in ASP.NET Core 6.

By Joydip Kanjilal
Jan 06, 2022 6 mins
C# Microsoft .NET Web Development
how-to

How to use the minimal hosting model in ASP.NET Core 6

The minimal hosting model in ASP.NET Core 6 means having to write less boilerplate code to get your application up and running.

By Joydip Kanjilal
Dec 16, 2021 5 mins
C# Microsoft .NET Web Development
how-to

How to resolve dependencies in ASP.NET Core

Explore three different ways to resolve dependencies in ASP.NET Core 6, using constructor injection, action method injection, or IServiceProvider instances.

By Joydip Kanjilal
Nov 11, 2021 5 mins
C# Microsoft .NET Web Development
how-to

How to improve StringBuilder performance in C#

Take advantage of best practices for using StringBuilder to reduce memory allocations and improve the performance of your string operations.

By Joydip Kanjilal
Nov 04, 2021 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use IDisposable in ASP.NET Core

Learn the different ways to dispose of objects that implement IDisposable in ASP.NET Core.

By Joydip Kanjilal
Oct 21, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to use Simple Injector in ASP.NET Core MVC

Take advantage of the fast, easy, and lightweight Simple Injector inversion of control library to implement dependency injection in your ASP.NET Core MVC applications.

By Joydip Kanjilal
Oct 14, 2021 6 mins
C# Microsoft .NET Web Development
how-to

How to prevent CSRF attacks in ASP.NET Core

Take advantage of anti-forgery tokens in ASP.NET Core to protect users of your applications against cross site request forgery exploits.

By Joydip Kanjilal
Sep 30, 2021 7 mins
C# Microsoft .NET Web Development
how-to

How coupling impacts software quality

Why loose coupling between components makes your .NET application more flexible, manageable, scalable, and testable.

By Joydip Kanjilal
Sep 16, 2021 7 mins
Microsoft .NET C# Software Development
how-to

How to use string interpolation in C# 9

Take advantage of string interpolation to incorporate variable substitution in formatted strings in C#.

By Joydip Kanjilal
Aug 19, 2021 4 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to build lightweight services in ASP.NET Core 6

Take advantage of the extension methods of the IEndpointConventionBuilder interface to implement lightweight services sans template or controller in ASP.NET Core 6.

By Joydip Kanjilal
Aug 11, 2021 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with Azure Queue Storage in C#

Take advantage of Azure Storage queues to store large numbers of messages for asynchronous or even distributed processing.

By Joydip Kanjilal
Aug 05, 2021 7 mins
C# Microsoft .NET Microsoft Azure
how-to

How to use correlation IDs in ASP.NET Core MVC

Capture and pass correlation IDs in ASP.NET Core MVC 5 to track HTTP requests that flow through multiple back-end services.

By Joydip Kanjilal
Jul 28, 2021 6 mins
Microsoft .NET Software Development
how-to

How to use HTTP logging in ASP.NET Core 6

Take advantage of the HTTP logging middleware in ASP.NET Core to log request and response information with flexibility and ease.

By Joydip Kanjilal
Jul 20, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to use advanced Serilog features in ASP.NET Core MVC

Take advantage of filters and request logging middleware in Serilog to reduce log verbosity and generate useful log summaries in your ASP.NET Core MVC applications.

By Joydip Kanjilal
Jul 13, 2021 8 mins
C# Microsoft .NET Web Development
how-to

How to use filters in ASP.NET Core MVC

Take advantage of filters to execute custom code at specific points in the request processing pipeline and avoid code duplication across actions.

By Joydip Kanjilal
Jun 30, 2021 6 mins
Microsoft .NET C# Software Development
how-to

How to avoid redundant DI code in ASP.NET Core

Take advantage of base controllers to avoid dependency injection code duplication and enforce the DRY principle in ASP.NET Core MVC.

By Joydip Kanjilal
Jun 23, 2021 6 mins
C# Microsoft .NET Web Development
how-to

How to use Razor View Engine in ASP.NET Core MVC

Take advantage of the friendly syntax of Razor View Engine to more easily create views from templates in ASP.NET Core MVC.

By Joydip Kanjilal
Jun 16, 2021 7 mins
Microsoft .NET C# Software Development
how-to

How to validate method parameters using PostSharp in C#

Take advantage of aspect-oriented programming using PostSharp to validate method parameters in C#.

By Joydip Kanjilal
Jun 09, 2021 5 mins
Microsoft .NET C# APIs
how-to

How to use closures in C#

Take advantage of closures in C# — including anonymous methods, delegates, and lambda expressions — to make your code robust, efficient, readable, and easier to maintain.

By Joydip Kanjilal
Jun 01, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to build AWS Lambda functions in .NET Core

Learn how to use .NET Core and the AWS Toolkit for Visual Studio to build serverless functions and deploy them to AWS Lambda in the Amazon cloud.

By Joydip Kanjilal
May 18, 2021 7 mins
C# Microsoft .NET Serverless Computing
how-to

How to read request headers in ASP.NET Core 5 MVC

Learn how to read request headers and work with optional data that is passed between the server and client in ASP.NET Core 5 applications.

By Joydip Kanjilal
May 11, 2021 5 mins
C# Microsoft .NET Web Development
how-to

Get started with Blazor in .NET 5

Take advantage of Blazor, Microsoft’s answer to full-stack development, to build rich web apps with C# and .NET Core.

By Joydip Kanjilal
May 05, 2021 5 mins
C# Microsoft .NET Web Development
how-to

When to use String vs. StringBuilder in .NET Core

Take advantage of these best practices when working with strings in .NET Core for the optimal performance of your applications.

By Joydip Kanjilal
Apr 27, 2021 7 mins
Microsoft .NET C# Software Development
how-to

How to use SortedDictionary, SortedList, and SortedSet in C#

Take advantage of the SortedDictionary, SortedList, and SortedSet classes in C# to store key-value pairs and sort them based on keys.

By Joydip Kanjilal
Apr 20, 2021 7 mins
Microsoft .NET C# Software Development
how-to

How to use Parallel.For and Parallel.ForEach in C#

Take advantage of lock-free, thread-safe implementations in C# to maximize the throughput of your .NET or .NET Core applications.

By Joydip Kanjilal
Apr 13, 2021 8 mins
Microsoft .NET C# Software Development
how-to

How to avoid GC pressure in C# and .NET

Take advantage of these best practices to avoid memory pressure and improve performance when working in .NET or .NET Core applications.

By Joydip Kanjilal
Apr 06, 2021 9 mins
Microsoft .NET C# Software Development
how-to

How to use target typing and covariant returns in C# 9

Learn two of the most important features in C# 9.0 to make your code more concise, readable, flexible, and efficient.

By Joydip Kanjilal
Mar 30, 2021 6 mins
Microsoft .NET C# Software Development
how-to

How to use top-level programs in C# 9

Take advantage of the new top-level statements in C# 9.0 to eliminate boilerplate code and make your programs more readable, maintainable, and efficient.

By Joydip Kanjilal
Mar 23, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to use pattern matching in C#

Take advantage of the new relational and logical patterns in C# 9.0 to make your code more readable, maintainable, and efficient.

By Joydip Kanjilal
Mar 15, 2021 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with static anonymous functions in C# 9

Take advantage of static anonymous methods in C# 9 to improve the performance of your .NET applications.

By Joydip Kanjilal
Mar 01, 2021 6 mins
Microsoft .NET C# Software Development
how-to

How to use LazyCache in ASP.NET Core MVC 5

Take advantage of LazyCache to improve the performance and scalability of your ASP.NET 5 Core applications in heavy load scenarios.

By Joydip Kanjilal
Feb 22, 2021 6 mins
C# Microsoft .NET Web Development
how-to

How to work with record types in C# 9

Take advantage of record types in C# 9 to build immutable types and thread-safe objects.

By Joydip Kanjilal
Feb 15, 2021 8 mins
Microsoft .NET C# Software Development
how-to

How to create PDF documents in ASP.NET Core 5

Take advantage of the DinkToPdf and wkhtmltopdf libraries to generate PDF documents from HTML templates in ASP.NET Core 5.

By Joydip Kanjilal
Feb 01, 2021 6 mins
Microsoft .NET C# Software Development
how-to

How to use immutable objects in ASP.NET Core MVC 5

Take advantage of init-only setters to make configuration options immutable in ASP.NET Core MVC 5 to avoid unnecessary assignments and eliminate opportunities for errors.

By Joydip Kanjilal
Jan 25, 2021 7 mins
Microsoft .NET Software Development
how-to

Dependency injection best practices for ASP.NET Core MVC 5

Learn how to use constructor injection, property injection, method injection, and the service locator pattern in ASP.NET Core MVC 5, along with their caveats.

By Joydip Kanjilal
Jan 18, 2021 9 mins
Microsoft .NET C# Software Development
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Show me more

analysis

Beyond the usual suspects: 5 fresh data science tools to try today

By Serdar Yegulalp
Jul 12, 20242 mins
PythonProgramming LanguagesSoftware Development
Image
analysis

Generative AI won’t fix cloud migration

By David Linthicum
Jul 12, 20245 mins
Generative AIArtificial IntelligenceCloud Computing
Image
news

HR professionals trust AI recommendations

By Paul Krill
Jul 11, 20243 mins
Technology IndustryCareers
Image
video

How to use dbm to stash data quickly in Python

Jul 04, 20244 mins
Python
Image
video

How to auto-generate Python type hints with Monkeytype

Jun 11, 20245 mins
Python
Image
video

How to make HTML GUIs in Python with NiceGUI

Jun 04, 20245 mins
Python
Image

Sponsored Links

  • Get Cisco UCS X-Series Chassis and Fabric Interconnects offer.
About
  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Reprints
  • Newsletters
  • BrandPosts
Policies
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights
  • Privacy Settings
Our Network
  • CIO
  • Computerworld
  • CSO
  • Network World
  • LinkedIn
  • X
  • Facebook
Copyright © 2024 IDG Communications, Inc.