Updated: 10/13/2003; 9:20:37 PM.
John Lambert
First we show up, then we see what happens.
        

Sunday, March 16, 2003

I ran into trouble because I wasn't implementing Equals/GetHashCode in child classes, so I just put

    public abstract override bool Equals(object o);

    public abstract override int GetHashCode();

in the base class, and was then forced to implement it in order to get a successful compile. The whole concept of "abstract override" makes my head hurt sometimes but it is pretty useful.

(Incidentally, I think that having to implement GetHashCode() says something about your code, although I'm not sure what. Maybe that you're trying too hard to get value semantics?)


10:59:18 PM    comment []  



NTP has been around for over ten years, and yet, my TiVo can't seem to figure out how to record the last 30 seconds of Cops.


1:35:15 PM    comment []  


© Copyright 2003 John Lambert jlambert@jlambert.com A really bad webcam picture of me.

 
March 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Feb   Apr


Click here to visit the Radio UserLand website.

Subscribe to "John Lambert" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.