!Dan Vallejo's WebLog!

Visual Studio .NET Developer

Browse by Tags

Tagged Content List
  • Blog Post: C# 2.0 Generic Interfaces

    Just as in generic classes, it is useful to define generic interfaces. It's useful to define generic interfaces for collections such as linked lists. In this example, we are defining a generic interface that requires T to be a reference type. // File: GenericInterfaces.cs using System; public interface...
  • Blog Post: C# 2.0 Constraints on Generic Types

    You can also set up constraints on generic classes. What if you wanted to create a generic list of objects that derived from a certain base class? This would allow you call certain functions that existed in that class. By constraining the type, you increase the number of functions you can perform on...
  • Blog Post: C# 2.0 Generics

    Visual Studio 2005 also introduces the next version of C#. C# 2.0 introduces generics, iterators, partial class definitions, nullable types, anonymous methods, the :: operator, static classes, accessor accessibility, fixed sized buffers (unsafe), friend assemblies, and #pragma warnings. Generic types...
  • Blog Post: Test Driven Development

    If you go up to http://www.msdn.com/express it takes you to the beta versions of the Express skus. It has some cool features that help out in doing Test Driven development. For example, when you have an open file of a project a refactor menu option shows up. The Extract Method... option is used to extract...
  • Blog Post: Heads Down on Express Skus

    I've been heads down investigating fixes for the Express skus. I want to thank everyone for their help in assisting me. I've emailed many of you to get more information. We are making changes to make the Express skus more robust when downloading the large packages. The changes have been based on...
  • Blog Post: Express Download Failure Investigation

    I'm currently investigating the source of the download failures for the Express skus. Our number one problem is that we are seeing timeout problems. Unfortunately, that could be caused by many factors, including just Internet problems. Please contact me. I will return every message posted to me...
  • Blog Post: Microsoft Visual C# 2005 Express Edition Beta Setup

    We finally put the Express skus up on the web. Our first attempt was on Wednesday at midnight. We've been working on making our setups downloadable. We use the BITS technology to download the files and then install them. One of the major reasons for using BITS is to facilitate the downloading of large...
  • Blog Post: Getting an Interface Object

    You have several ways of getting an interface object. The implicit way has the advantage in that the compiler makes sure that the interface is implemented by the class. The disadvantage is that someone reading your code won't know that this is an interface being torn off. This just might need some...
  • Blog Post: Creating Datatips for Debugging Your Classes

    How do you display the contents of your custom classes. When you hover over a variable in the debugger, it shows you the contents of the variable. How do you do that for your own classes? In the directory C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger , there is a file...
  • Blog Post: Events versus Delegates

    So what is the difference between event s and delegate s? The reality is that currently they are basically the same. The difference is that the += operator that is used to add a delegate function to an event is thread-safe whereas when using a delegate the += operator is not thread-safe. event s have...
  • Blog Post: Implementing Properties on an Interface

    When you implement an interface that has a property. You would think that you wouldn't be able to add additional accessors. Given the IDisplay interface below then class should only be allowed to implement the set accessor. But in reality since properties really resolve down to just functions, all you...
  • Blog Post: Explicit Implementation of Multiple Interfaces

    If you have interfaces derived from other interfaces it makes explicit implementation of them a little funny in the class. Notice that in the following code (class TestBar) when you implement IBar that you need to use IFoo even though the class only indicates that it's implementing IBar. interface...
Page 1 of 1 (12 items)