• Spotlight: AI in Enterprise
  • 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
  • Spotlight: AI in Enterprise
  • 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 ProgrammingHow-ToPage 7

.NET Programming

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

When to use WebClient vs. HttpClient vs. HttpWebRequest

Understand the pros and cons of the .Net Framework's various native classes for working with HTTP requests and responses

By Joydip Kanjilal
Jan 22, 2018 4 mins
Small and Medium Business Web Development Software Development
how-to

How to build custom middleware in ASP.NET Core

Take advantage of ASP.NET Core middleware to customize your application’s handling of HTTP requests and responses.

By Joydip Kanjilal
Jan 15, 2018 5 mins
Small and Medium Business Web Development Open Source
how-to

How to work with the Interpreter design pattern

This article provides a know how on the Interpreter pattern and how it can be implemented. The code examples are provided in C#.

By Joydip Kanjilal
Jan 08, 2018 4 mins
Microsoft .NET Software Development
how-to

How to create asynchronous web pages in ASP.Net

Take advantage of asynchronous web pages in ASP.Net to improve the responsiveness and scalability of your applications

By Joydip Kanjilal
Dec 18, 2017 4 mins
Small and Medium Business Software Development
how-to

How to implement a feature toggle in C#

Take advantage of feature toggles to manage application features without having to maintain multiple source code branches

By Joydip Kanjilal
Dec 11, 2017 4 mins
Small and Medium Business C# Software Development
how-to

How to avoid temporal coupling in C#

Two approaches to solving temporal coupling, a 'design smell' that results when members of a class must be invoked in a specific sequence

By Joydip Kanjilal
Dec 04, 2017 5 mins
Small and Medium Business C# Software Development
how-to

How to use the Memento design pattern in C#

Take advantage of the Memento design pattern to store and restore an object's state to support undo or rollbacks in your application.

By Joydip Kanjilal
Nov 27, 2017 4 mins
Small and Medium Business C# Software Development
how-to

How to implement a custom exception class in C#

Take advantage of custom exception classes to extend error handling or add meaningful information to the errors thrown by your .Net applications

By Joydip Kanjilal
Nov 20, 2017 4 mins
Small and Medium Business C# Software Development
how-to

How to avoid memory leaks in .Net applications

Learn the causes of memory leaks in .Net, how to detect them, and how avoid them in your applications

By Joydip Kanjilal
Nov 13, 2017 5 mins
Small and Medium Business Software Development
how-to

How to secure ASP.Net Web APIs using authorization filters

Take advantage of ASP.Net Web API authorization filters to authorize incoming requests to your web API

By Joydip Kanjilal
Nov 10, 2017 4 mins
APIs Software Development
how-to

How to implement a simple logger in C#

It's easy to create a custom logging framework to log your .Net application's errors and events to a flat file, a database, or the event log

By Joydip Kanjilal
Nov 06, 2017 4 mins
C# Software Development
how-to

How to work with logging in ASP.Net Core

Take advantage of ASP.Net Core's flexible, customizable and extendable Logging API to plug in a custom logger with ease

By Joydip Kanjilal
Oct 30, 2017 4 mins
Software Development
how-to

Testing with the InMemory provider in Entity Framework

How to use the InMemory provider in Entity Framework Core to test your methods without hitting the database or using fakes and mocks

By Joydip Kanjilal
Oct 23, 2017 5 mins
Small and Medium Business Web Development App Testing
how-to

How to use dependency injection in ASP.NET Core

Take advantage of dependency injection in ASP.NET Core to plug in components and improve code maintenance and testability

By Joydip Kanjilal
Oct 16, 2017 5 mins
Small and Medium Business Software Development
how-to

How to use in-memory caching in ASP.NET Core

Take advantage of in-memory caching in ASP.NET Core to improve the performance and scalability of your application

By Joydip Kanjilal
Oct 09, 2017 7 mins
Software Development
how-to

When to use the volatile keyword in C#

How to take advantage of the volatile keyword in C# to ensure that concurrent threads get the latest value of an object

By Joydip Kanjilal
Oct 02, 2017 5 mins
Small and Medium Business C# Software Development
how-to

How to perform lazy initialization in C#

Use lazy initialization to save resources and improve performance by deferring the initialization of expensive objects until they're requested

By Joydip Kanjilal
Sep 25, 2017 5 mins
Small and Medium Business C# Software Development
how-to

How to work with MongoDB in .NET

Get started with documents and collections in the popular, open source, NoSQL database using C#

By Joydip Kanjilal
Sep 18, 2017 5 mins
Small and Medium Business NoSQL Databases Microsoft .NET
how-to

How to work with Elasticsearch in .Net

Take advantage of the open source search engine using C# to search and analyze your application’s data in real time

By Joydip Kanjilal
Sep 11, 2017 5 mins
Small and Medium Business Microsoft .NET Open Source
how-to

How to use the object pool design pattern in C#

Boost application performance by using the object pool design pattern to recycle objects that are expensive to create

By Joydip Kanjilal
Sep 04, 2017 4 mins
Small and Medium Business C# Development Tools
how-to

How to get started with Akka.Net

Take advantage of Akka.Net to build concurrent, fault tolerant, event-driven applications using the high-level abstractions of the actor model

By Joydip Kanjilal
Aug 28, 2017 5 mins
Small and Medium Business Software Development
how-to

How to speed your code using CPU caches

Techniques include using cache-friendly structs provides a huge performance gain

By Joydip Kanjilal
Aug 21, 2017 4 mins
Software Development
how-to

How to use Apache Kafka messaging in .Net

Take advantage of the fast and scalable open source message broker to meet high-volume data processing challenges on Windows

By Joydip Kanjilal
Aug 14, 2017 5 mins
Small and Medium Business Data Management Software Development
how-to

How to (not) use the large object heap in .Net

Understand why the large object heap in .Net is prone to fragmentation and how to use memory more efficiently

By Joydip Kanjilal
Aug 07, 2017 5 mins
Small and Medium Business Software Development
how-to

How to log request and response metadata in ASP.NET Web API

Take advantage of a custom message handler to log request and response metadata in Web API for debugging, tracing, and inspection of the incoming and outgoing calls

By Joydip Kanjilal
Jul 31, 2017 7 mins
Software Development
how-to

How to write performance tests using NBench

Take advantage of NBench to analyze code throughput, memory allocations, and GC overhead in your .NET application

By Joydip Kanjilal
Jul 24, 2017 4 mins
Small and Medium Business Web Development App Testing
how-to

How to make your Web API responses consistent and useful

A custom wrapper for your Web API responses can provide meaningful information and ensure consistency regardless of success or failure.

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

How to do partial updates to REST API resources

Take advantage of HTTP PATCH to partially update resources and transfer less data over the wire

By Joydip Kanjilal
Jul 10, 2017 4 mins
Small and Medium Business Web Development Software Development
how-to

How to use the mediator design pattern in C#

Take advantage of the mediator design pattern to promote loose coupling and simplify the coding of object interactions

By Joydip Kanjilal
Jul 03, 2017 4 mins
Small and Medium Business C# Software Development
how-to

How to use correlation IDs in ASP.Net Web API

Take advantage of the built-in correlation IDs in Web API to track HTTP requests that flow through multiple back-end services

By Joydip Kanjilal
Jun 26, 2017 4 mins
Small and Medium Business Web Development Software Development
how-to

Understand the .Net CLR thread pool

Knowing how thread injection works in .Net is key to allowing your ASP.Net application to make the best use of system resources

By Joydip Kanjilal
Jun 19, 2017 5 mins
Small and Medium Business Software Development
how-to

How to work with RabbitMQ in C#

Take advantage of RabbitMQ, an open source, fast message broker to store and retrieve messages in your applications

By Joydip Kanjilal
Jun 12, 2017 4 mins
C# Open Source Software Development
how-to

How to implement the template method design pattern in C#

The template method design pattern allows you to define the skeleton of an algorithm in a base class and defer the details to subclasses

By Joydip Kanjilal
Jun 05, 2017 3 mins
Small and Medium Business C# Software Development
how-to

How to work with Redis Cache in .NET

Redis is an open source, fast, feature rich, in-memory caching engine that can be used to store and retrieve data in your applications

By Joydip Kanjilal
Apr 05, 2017 4 mins
Microsoft .NET Software Development
how-to

How to enable CORS on your Web API

Cross-Origin Resource Sharing in ASP.NET Web API allows cross-domain access to your Web API methods.

By Joydip Kanjilal
Feb 24, 2017 4 mins
C# Microsoft .NET Web Development
how-to

How to use the prototype design pattern in .NET

The prototype design pattern enables you to create new instances by copying existing instances to avoid the overhead involved in creating objects that can consume more resources

By Joydip Kanjilal
Jan 12, 2017 4 mins
Microsoft .NET C# Software Development
how-to

When to use Task.WaitAll vs. Task.WhenAll in .NET

Understand the differences between Task.WaitAll and Task.WhenAll methods and when to use which in your application.

By Joydip Kanjilal
Dec 23, 2016 4 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with NLog in .NET

NLog can log your app data and create logs regardless of the size and complexity of your application.

By Joydip Kanjilal
Nov 28, 2016 3 mins
Microsoft .NET Software Development
how-to

How to work with log4net in C#

Log4net is an easy to use, reliable, fast, popular, extensible, and open source library for logging data to various configured log targets

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

How to work with HttpModules in ASP.NET

HTTP modules intercept incoming requests and inject pre-processing logic in the ASP.Net request processing pipeline

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

How to use covariance and contravariance in C#

You can use covariance and contravariance to provide polymorphic extension to delegates, arrays, and generics in C#. Here’s how.

By Joydip Kanjilal
Jun 10, 2016 4 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to implement an asynchronous socket in C#

You can increase the performance and scalability of your client-server applications by using asynchronous sockets. Here’s how.

By Joydip Kanjilal
Jun 09, 2016 4 mins
C# Microsoft .NET Web Development
how-to

How to build your own task scheduler in C#

Take advantage of a custom task scheduler to provide added functionalities over the default task scheduler and manage how tasks are scheduled in .Net

By Joydip Kanjilal
Apr 29, 2016 5 mins
Software Development
how-to

How to version your Web API

Take advantage of the various ways to version your Web API to make it more flexible and adaptable to changes while keeping the functionality intact

By Joydip Kanjilal
Mar 24, 2016 4 mins
Microsoft .NET C# APIs
how-to

How to work with Sessions in ASP.NET

Take advantage of sessions to store and manage information pertaining to a logged user's session.

By Joydip Kanjilal
Jan 28, 2016 4 mins
C# Microsoft .NET Web Development
how-to

How to work with Windows services in C#

Take advantage of Windows services to build applications that you want to run in the background or execute automatically at predefined intervals of time.

By Joydip Kanjilal
Jan 08, 2016 4 mins
Small and Medium Business Microsoft .NET C#
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Show me more

feature

14 great preprocessors for developers who love to code

By Peter Wayner
Nov 18, 202410 mins
Development ToolsSoftware Development
Image
feature

Designing the APIs that accidentally power businesses

By Jean Yang
Nov 18, 20246 mins
APIsSoftware Development
Image
news

Spin 3.0 supports polyglot development using Wasm components

By Paul Krill
Nov 18, 20242 mins
MicroservicesServerless ComputingDevelopment Libraries and Frameworks
Image
video

Building Python wheels to distribute your programs

Nov 15, 20246 mins
PythonSoftware Development
Image
video

Creating a pip install-able Python package

Nov 14, 20243 mins
PythonSoftware Development
Image
video

How to get better web requests in Python with httpx

Oct 07, 20244 mins
Python
Image
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.