- Timestamp:
- 03/15/10 14:45:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/FormatBase.cs
r3017 r3036 6 6 /// <summary> 7 7 /// Common base class for defining a new serialization format. 8 /// </summary> 8 /// </summary> 9 /// <typeparam name="SerialDataFormat">The type of the serial data format.</typeparam> 9 10 [StorableClass] 10 11 public abstract class FormatBase<SerialDataFormat> : IFormat<SerialDataFormat> where SerialDataFormat : ISerialData { … … 23 24 /// <summary> 24 25 /// Compares formats by name. 25 /// </summary> 26 /// </summary> 27 /// <param name="f">The format.</param> 28 /// <returns>wheter this object and f are equal by name.</returns> 26 29 public bool Equals(FormatBase<SerialDataFormat> f) { 27 30 if (f == null) … … 33 36 /// Compares foramts by name. 34 37 /// </summary> 38 /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param> 39 /// <returns> 40 /// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>. 41 /// </returns> 42 /// <exception cref="T:System.NullReferenceException"> 43 /// The <paramref name="obj"/> parameter is null. 44 /// </exception> 35 45 public override bool Equals(object obj) { 36 46 FormatBase<SerialDataFormat> f = obj as FormatBase<SerialDataFormat>; … … 38 48 } 39 49 50 /// <summary> 51 /// Returns a hash code for this instance. 52 /// </summary> 53 /// <returns> 54 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. 55 /// </returns> 40 56 public override int GetHashCode() { 41 57 return Name.GetHashCode();
Note: See TracChangeset
for help on using the changeset viewer.