.NET/C#

18 Artikel

 12  Next page

Sealed classes and methods

This article originally appeared on earthli News and has been cross-posted here.

According to the official documentation, the sealed keyword in C# serves the following dual purpose:

“When applied to a class, the sealed modifier prevents other classes from inheriting from it. […] You can also... [More]”

Cross MonoTouch off the list

This article originally appeared on earthli News and has been cross-posted here.

Apple presented the iPhone OS 4.0 late last week. The new version includes hundreds of new API calls for third-party developers, including long-sought-after support for multi-tasking. The changes extended to the... [More]

Building pseudo-DSLs with C# 3.5

This article originally appeared on earthli News and has been cross-posted here.

DSL is a buzzword that’s been around for a while and it stands for [D]omain-[S]pecific [L]anguage. That is, some tasks or “domains” are better described with their own language rather than using the same language... [More]

Designing a small API: Bit manipulation in C#

This article originally appeared on earthli News and has been cross-posted here.

A usable API doesn’t usually spring forth in its entirety on the first try. A good, usable API generally arises iteratively, improving over time. Naturally, when using words like good and usable, I’m obliged to... [More]

Waiting for C# 4.0: A casting problem in C# 3.5

This article originally appeared on earthli News and has been cross-posted here.

C# 3.5 has a limitation where generic classes don’t necessarily conform to each other in the way that one would expect. This problem manifests itself classically in the following way:

class A { }
class B : A { }... [More]

Creating fluent interfaces with inheritance in C#

This article originally appeared on earthli News and has been cross-posted here.

Fluent interfaces—or “method chaining” as it’s also called—provide an elegant API for configuring objects. For example, the Quino query API provides methods to restrict (Where or WhereEquals), order (OrderBy),... [More]

Pre-generating Entity Framework (EF) Views

These instructions apply to the 1.x release of EF and its designer integration into Visual Studio 2008.

Overview

The Entity Framework requires what it calls “views” in order to access a database. EF generates these views automatically if they are not available. In order to avoid generating these... [More]

Microsoft Code Contracts: Not with a Ten-foot Pole

This article originally appeared on earthli News and has been cross-posted here. In the meantime, a lot has changed and the major complaint—a lack of explicit contracts in C#—will finally be addressed in the next version of C#, 4.0.

After what seems like an eternity, a mainstream programming... [More]

An analysis of C# language design

This article originally appeared on earthli News in 2004 and has been cross-posted here. In the meantime, a lot has changed and the major complaint—a lack of explicit contracts in C#—will finally be addressed in the next version of C#, 4.0.

A Conversation with Anders Hejlsberg (Artima.com) is a four-part... [More]

Remote Debugging with [ASP].NET

When a .NET application exhibits behavior on a remote server that cannot be reproduced locally, you’ll need to debug application directly on the server. The following article includes specific instructions for debugging ASP.NET applications, but applies just as well to standalone executables.

Prerequisites... [More]

 12  Next page