All About Span: Exploring a New .NET Mainstay

Mon, 01 Jan 2018 10:00:00 GMT

Span<T> is a new type in .NET that enables efficient access to contiguous regions of arbitrary memory. Stephen Toub introduces Span<T>, Memory<T>, and related functionality, while providing details on how these assets are quickly permeating throughout the .NET ecosystem.

Read article

All About Span: Exploring a New .NET Mainstay

Fri, 15 Dec 2017 10:00:00 GMT

Span<T> is a new type in .NET that enables efficient access to contiguous regions of arbitrary memory. This article introduces Span<T>, Memory<T>, and related functionality, and provides details on how they are quickly permeating their way throughout the .NET ecosystem.

Read article

Asynchronous Programming - Async Performance: Understanding the Costs of Async and Await

Mon, 26 Sep 2011 10:00:00 GMT

It’s easy to get started writing asynchronous methods in C# and Visual Basic, but there can be hidden performance costs. Stephen Toub explores the ins and outs of asynchronous methods to give you a solid understanding of how they’re implemented under the covers and show some of the more nuanced costs involved.

Read article

Parallel Programming - The Past, Present and Future of Parallelizing .NET Applications

Fri, 29 Jul 2011 10:00:00 GMT

In the world of multi-core and manycore everywhere, parallelism is now something every developer must at least consider, and something that the millions of developers that use managed languages must be able to take advantage of.Stephen Toub shows how parallelism is evolving in .NET.

Read article

.NET Matters - Aggregating Exceptions

Fri, 24 Jul 2009 10:00:00 GMT

Exceptions in .NET are the fundamental mechanism by which errors and other exceptional conditions are communicated. This month’s column provides information about how to aggregate exceptions to help manage a variety of scenarios in which multiple exceptions might result from one operation, including scenarios involving parallelism and concurrency.

Read article

.NET Matters - Parallelizing Operations With Dependencies

Thu, 19 Mar 2009 10:00:00 GMT

In this month’s installment, Stephen Toub examines some techniques for enforcing dependencies in the running order of asynchronous operations and builds a DependencyManagement class to help.

Read article

.NET Matters - Ordered Execution With ThreadPool

Fri, 23 Jan 2009 10:00:00 GMT

This month we demonstrate how you can use the ThreadPool to support ordered execution without having to build custom thread pools yourself.

Read article

Net Matters - Round-Robin Access To The ThreadPool

Fri, 19 Dec 2008 10:00:00 GMT

Stephen Toub shows you how to add round-robin scheduling support on top of the ThreadPool for more granular processing control.

Read article

.NET Matters - Asynchronous I/O with WebClient

Fri, 20 Jun 2008 10:00:00 GMT

In this month’s installment of .NET Matters, columnist Stephen Toub answers reader questions concerning asynchronous I/O .

Read article

.NET Matters - Asynchronous Stream Processing

Wed, 20 Feb 2008 10:00:00 GMT

This month Stephen Toub discusses asynchronous stream processing.

Read article

.NET Matters - Stream Pipeline

Tue, 18 Dec 2007 10:00:00 GMT

This month Stephen Toub explains how to make the most of dual processors when running encryption and compression tasks.

Read article

.NET Matters - IFileOperation in Windows Vista

Wed, 24 Oct 2007 10:00:00 GMT

The author creates a managed wrapper to use the new IFileOperations interface in Windows Vista from managed code.

Read article

.NET Matters - Debugging finalizers

Fri, 28 Sep 2007 10:00:00 GMT

Find out how to use finalizers as a way to warn developers who use your custom types when they are garbage collected without having been disposed of correctly.

Read article

.NET Matters - Deadlock monitor

Wed, 19 Sep 2007 10:00:00 GMT

This month Stephen Toub discusses deadlocks that can occur when synchronizing threads.

Read article

Editor's Note - Thanks for the Memories!

Tue, 19 Jun 2007 10:00:00 GMT

Stephen Toub gets nostalgic as he prepares to leave MSDN Magazine.

Read article

.NET Matters - Handling Messages in Console Apps

Wed, 18 Apr 2007 10:00:00 GMT

Many developers who use the Microsoft .NET Framework think that application type is tied to the libraries that can be used in that application. Stephen Toub clarifies.

Read article

.NET Matters - Restart Manager and Generic Method Compilation

Tue, 13 Mar 2007 10:00:00 GMT

This month Stephen Toub answers questions pertaining to the Windows Vista Restart Manager API and generic method compilation.

Read article

Vista and Office - View Data Your Way With Our Managed Preview Handler Framework

Wed, 22 Nov 2006 10:00:00 GMT

Stephen Toub shows you how to write your own Preview handlers for Windows Vista and Outlook 2007.

Read article

.NET Matters - Deserialization Progress, and More

Wed, 18 Oct 2006 10:00:00 GMT

Build a standard progress bar that indicates how much deserialization has completed and how much still remains. Plus, System.Collection.Generics performance.

Read article

.NET Matters - Event Accessors

Thu, 12 Oct 2006 10:00:00 GMT

Creating events on classes by adding the event keyword to a delegate member variable declaration.

Read article

.NET Matters - Scope<T> and More

Thu, 03 Aug 2006 10:00:00 GMT

This month Stephen Toub explains how you can get some of the functionality found in the TransactionScope class in your own classes.

Read article

.NET Matters - Parameterized ThreadStart, EventWaitHandle, and More

Thu, 04 May 2006 10:00:00 GMT

This month Stephen Toub answers readers questions that include: How do I pass data to a new thread? Why can't I convert from 'ref string' to 'ref object'? And what's the difference between EventWaitHandle, AutoResetEvent and ManualResetEvent?

Read article

Bug Bash - Let The CLR Find Bugs For You With Managed Debugging Assistants

Thu, 06 Apr 2006 10:00:00 GMT

Managed Debugging Assistants are new to the .NET Framework 2.0 and help you to discover serious bugs quickly.Learn how to harness their power.

Read article

.NET Matters - Abortable Thread Pool

Thu, 09 Feb 2006 10:00:00 GMT

Read article

.NET Matters - Iterating NTFS Streams

Tue, 13 Dec 2005 10:00:00 GMT

Read article

.NET Matters - BigInteger, GetFiles, and More

Tue, 08 Nov 2005 10:00:00 GMT

Read article

High Availability - Keep Your Code Running with the Reliability Features of the .NET Framework

Tue, 13 Sep 2005 10:00:00 GMT

Reliability requires the capacity to execute a sequence of operations in a deterministic way, even under exceptional conditions. This allows you to ensure that resources are not leaked and that you can maintain state consistency without relying on application domain unloading (or worse, process restarts) to fix any corrupted state. Unfortunately, in the.NET Framework, not all exceptions are deterministic and synchronous, which makes it difficult to write code that is always deterministic in its ability to execute a predetermined sequence of operations. In this article Stephen Toub will show you why, and explore features of the .NET Framework 2.0 that help you to mitigate these situations and write more reliable code.

Read article

.NET Matters - NamedGZipStream, Covariance and Contravariance

Tue, 13 Sep 2005 10:00:00 GMT

Read article

.NET Matters - Stream Decorator, Single-Instance Apps

Tue, 09 Aug 2005 10:00:00 GMT

Read article

.NET Matters - StringStream, Methods with Timeouts

Tue, 14 Jun 2005 10:00:00 GMT

Read article

.NET Matters - ICustomTypeDescriptor, Part 2

Tue, 12 Apr 2005 10:00:00 GMT

In last month's . NET Matters column, I answered a question concerning the PropertyGrid control, specifically about using it with classes that expose fields instead of properties.I demonstrated how the ICustomTypeDescriptor interface in the Microsoft® .

Read article

.NET Matters - ICustomTypeDescriptor, Part 1

Tue, 15 Mar 2005 10:00:00 GMT

Read article

{ End Bracket } - Creating a Custom Metrics Tool

Tue, 15 Mar 2005 10:00:00 GMT

Metrics play an important role in our lives.Even if we don't realize it or characterize it as such, many daily activities have the potential to be quantified to some degree.So it's not surprising that metrics play an even greater role in the workplace, where there are goals and a bottom line and where much of a day's activity can be summarized in numbers.

Read article

.NET Matters - File Copy Progress, Custom Thread Pools

Tue, 11 Jan 2005 10:00:00 GMT

Read article

.NET Matters - Sepia Tone, StringLogicalComparer, and More

Tue, 14 Dec 2004 10:00:00 GMT

Read article

.NET Matters - Asynchronous HttpWebRequests, Interface Implementation, and More

Tue, 16 Nov 2004 10:00:00 GMT

Read article

.NET Matters - ThreadPoolPriority, and MethodImplAttribute

Tue, 19 Oct 2004 10:00:00 GMT

Read article

.NET Matters - ThreadPoolWait and HandleLeakTracker

Tue, 14 Sep 2004 10:00:00 GMT

Read article

.NET Matters - Debugger Visualizations, Garbage Collection

Tue, 20 Jul 2004 10:00:00 GMT

Read article

.NET Matters - XML Comments, Late-bound COM, and More

Tue, 18 May 2004 10:00:00 GMT

Read article

C++ - Write Faster Code with the Modern Language Features of Visual C++ 2005

Tue, 20 Apr 2004 10:00:00 GMT

The next version of Visual C++ has a new syntax that is both elegant and powerful. It has new optimization technology that has improved the speed of Microsoft. It has new compilation modes that ensure Common Language Infrastructure compliance and verifiability for the .NET Framework, and it has new models for interop. In this article Stephen Toub explains these and other improvements to Visual C++.

Read article

.NET Matters - Finalizers, Assembly Names, MethodInfo, and More

Tue, 20 Apr 2004 10:00:00 GMT

Read article

.NET Matters - Const in C#, Exception Filters, IWin32Window, and More

Tue, 16 Mar 2004 10:00:00 GMT

Welcome to . NET Matters.This new column will delve into the ins and outs of the Microsoft® . NET Framework, answering readers' questions on various topics related to its extensive libraries, languages, and the common language runtime.

Read article

.NET Remoting - Secure Your .NET Remoting Traffic by Writing an Asymmetric Encryption Channel Sink

Tue, 13 May 2003 10:00:00 GMT

As .NET Remoting gains popularity in the enterprise space, it must meet business demands for trustworthy computing. Remoting traffic can be secured when objects are hosted in IIS, but when they aren't hosted in IIS, custom security solutions can be developed to secure them. This article provides an in-depth look at writing channel sinks for .NET. It also details the flow of data through custom channel sinks and explains the kinds of manipulations that can be performed on that data.

Read article