Changeset 2764


Ignore:
Timestamp:
07/03/12 00:06:01 (2 years ago)
Author:
lowjoel
Message:

Fixed comparison against itself when null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/EraserService/Eraser.Manager/Schedule.cs

    r2755 r2764  
    204204        public static bool operator==(Schedule lhs, Schedule rhs) 
    205205        { 
     206            if ((object)lhs == null) 
     207                return (object)rhs == null; 
     208 
    206209            return lhs.Equals(rhs); 
    207210        } 
Note: See TracChangeset for help on using the changeset viewer.