Changeset 801 for trunk/sources/HeuristicLab.Operators/EqualToComparator.cs
- Timestamp:
- 11/21/08 09:48:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/EqualToComparator.cs
r2 r801 28 28 29 29 namespace HeuristicLab.Operators { 30 /// <summary> 31 /// Operator to check whether two items are equal to each other. 32 /// </summary> 30 33 public class EqualToComparator : ComparatorBase { 34 35 /// <inheritdoc select="summary"/> 31 36 public override string Description { 32 37 get { return @"TODO\r\nOperator description still missing ..."; } 33 38 } 34 39 40 /// <summary> 41 /// Initializes a new instance of <see cref="EqualToComparator"/>. 42 /// </summary> 35 43 public EqualToComparator() 36 44 : base() { 37 45 } 38 46 47 /// <summary> 48 /// Checks whether the two specified items are equal to each other. 49 /// </summary> 50 /// <param name="left">The left side of the comparison.</param> 51 /// <param name="right">The right side of the comparison.</param> 52 /// <returns><c>true</c> if the two elements are equal to each other, <c>false otherwise</c>.</returns> 39 53 protected override bool Compare(IComparable left, IItem right) { 40 54 return left.CompareTo(right) == 0;
Note: See TracChangeset
for help on using the changeset viewer.