Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1407


Ignore:
Timestamp:
03/24/09 17:05:02 (15 years ago)
Author:
epitzer
Message:

Abstract base class for formats to ensure comparability. (#506)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/New Persistence Exploration/Persistence/Persistence/Interfaces/IFormatter.cs

    r1360 r1407  
    55  public interface IFormat {
    66    string Name { get; }
     7  }
     8
     9  public abstract class Format : IFormat {
     10    public abstract string Name { get;  }
     11    public override bool Equals(object obj) {
     12      return Name == ((Format) obj).Name;
     13    }
     14    public override int GetHashCode() {
     15      return Name.GetHashCode();
     16    }
    717  }
    818
Note: See TracChangeset for help on using the changeset viewer.