Changeset 893


Ignore:
Timestamp:
Nov 24, 2009, 11:23:44 AM (12 years ago)
Author:
Matthäus Wander
Message:

CrypCoreSearchTest:

  • removed unused CrypCore.dll

FileInput:

  • removed duplicate event

WordPatterns:

  • changed equality handling, constrained by value type
Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/FileInput/FileInput.cs

    r883 r893  
    371371    {
    372372      OnPropertyChanged("StreamOutput");
    373       OnPropertyChanged("StreamOutput");
    374373    }
    375374
  • trunk/CrypPlugins/WordPatterns/WordPatterns.cs

    r873 r893  
    233233                    return false;
    234234
    235                 if (object.ReferenceEquals(this, right))
    236                     return true;
    237 
    238                 if (this.GetType() != right.GetType())
     235                // Never true for value types
     236                //if (object.ReferenceEquals(this, right))
     237                //    return true;
     238
     239                // Using the as/is operators can break symmetry requirement for reference types.
     240                // However this does not apply for value types.
     241                //if (this.GetType() != right.GetType())
     242                //    return false;
     243                if (!(right is Pattern))
    239244                    return false;
    240245
Note: See TracChangeset for help on using the changeset viewer.