Alright, consider the following situation: There’s a data class with two properties, Index
and Content
. There’s a specialised collection typed to contain instances of the data class. Something like this:
public class DataClass {
public DataClass(string index, string content) {
this.index = index;
this.content = content;
}
string index;
public string Index { get { return index; } }
string content;
public string Content { get { return content; } }
}
public cl ...
In this post I showed how nullable types can be simulated in .NET 1, especially for use with XPO. Prompted by Miha Markic, I had a look at the possibility of data binding with those simulated nullable types. I found that while the implementation I had suggested could be used without problems in a read-only situation, it obviously didn’t contain any logic that would enable editing the types via data-bound controls. Nevertheless, this is easy to do by creating a custom TypeConverter
. Like this: …
I have received several e-mails asking me about the real use of Generics. Why I like them so much and what makes them such an interesting feature in .NET 2.0. Programmers who use one of many other languages may not have had contact with anything similar to Generics, so I guess that’s quite a legitimate question. Generics are one of the features of the next version of the CLR (Common language runtime), as delivered by Microsoft with .NET 2.0. They can currently be used in the beta and CTP releas… …
As I mentioned in a previous post, Copernic Desktop Search 1.5 beta is currently available to the public. One of the most important new features was for me the introduction of an extensibility API. When I wrote that first announcement, I hadn’t had a close look at the API. By now I’ve found out that it’s about extracting data from new file types, nothing more or less than that. I’d wish, and maybe I should add that to my list of things I’d like to see in CDS, they would extend that extensibilit …
In this post, Dave Templin explains the purpose of the .vshost.exe
that gets created automatically by Visual Studio Whidbey. What it also mentions is the fact that the application domain my code runs in is of course different when I run in the debugger. I found a problem with this where the FriendlyName
is concerned. I’ve been using the FriendlyName
to construct names based on my application’s exe
name, the same way the normal app.config
files work. The problem is, as soon as I run th …
A very interesting article here: Comparisons with Generics