Last change
on this file since 1555 was
1542,
checked in by epitzer, 16 years ago
|
Numerous small changes, coding conventions, renames, mini refactoring (#548)
|
File size:
494 bytes
|
Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Persistence.Interfaces {
|
---|
4 |
|
---|
5 | public abstract class FormatBase : IFormat {
|
---|
6 | public abstract string Name { get; }
|
---|
7 | public override bool Equals(object obj) {
|
---|
8 | if (obj as IFormat == null)
|
---|
9 | return false;
|
---|
10 | return this.Equals((FormatBase)obj);
|
---|
11 | }
|
---|
12 | public bool Equals(FormatBase f) {
|
---|
13 | return Name.Equals(f.Name);
|
---|
14 | }
|
---|
15 | public override int GetHashCode() {
|
---|
16 | return Name.GetHashCode();
|
---|
17 | }
|
---|
18 | }
|
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.