Skip to content

Commit 9dd597d

Browse files
committed
Remove GetHashCode
1 parent f47fae7 commit 9dd597d

File tree

22 files changed

+192
-148
lines changed

22 files changed

+192
-148
lines changed

Documentation/Miscelleaous/ToDo.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ i write down the stuff in the fastest way, mostly in note form.
77

88
## ToDo
99

10+
- ToTextTable: bool DeclaredOnly, PropertySortOrder.FromBaseDown / ToBaseUp
11+
- Europe.Germany.RheinlandPfalz.Trier GAdm Generator
12+
- DataSourceAttribute zu den entsprechenden Klassen
13+
- ExampleAttribute weg
14+
- Geometry Rectangle<T> where T: Kilometer, Millimeter or Meter
15+
- IExample und dann in DoofesZeug.Generators ein Namespace Example, die Beispiele heißen dann immer XXXXXExample und implementieren
16+
Examples, aus der TestConsole alles raus. IExample.Execute(TextWriter out).
17+
- Dataset Generate Person:
18+
- auch ein paar Enumerations leer lassen.
19+
- Generate Full or All Features and Basic Features. Action<Person> manipulator.
20+
- AssemblyStatisticsGenerator (Namespaces,Classes,Interfaces,Enums) Count, ReferencedAssemblies?
1021
- Generate class overview for other classes which are not an entity.
1122
- Entities: Genre, Artist, Album, Sampler, Movie, Book.
1223
- MarkdownExtension
@@ -31,9 +42,6 @@ i write down the stuff in the fastest way, mostly in note form.
3142
- Flatten JSON / XML ?
3243
- Support für aufruf gnuplot für kleinere Diagramme zwischendurch ?
3344
- MatheStuff, z.b geometrische Figuren Rectangle, Circle, und direkt mit ein paar Meßmethoden?
34-
- Generic Singelton Pattern?
35-
- Lazy Load Wrapper?
36-
- Implement Observer Pattern in base class Entity?
3745
- VCard support ?
3846
- Kleiner einfacher Support für PlantUML?
3947
- List<T> To DataTable
@@ -42,12 +50,17 @@ i write down the stuff in the fastest way, mostly in note form.
4250
- CSV
4351
- SQLite
4452
- Markdown
53+
- Geht sowas mittles Operatorenüberladung : DataTable["HalfWidth"] = DataTable["Width"] >> 1
4554
- Countries (aus geonames generiert)
4655
- Dienstgrade Feuerwehr, Polizei, Militär
4756

4857

4958
## Done
5059

60+
- Remove all GetHashCode implementations.
61+
- ~~Implement Observer Pattern in base class Entity?~~
62+
- ~~Generic Singelton Pattern?~~
63+
- ~~Lazy Load Wrapper?~~
5164
- Entites for EMail, Homepage, Phone.
5265
- GeoConvert für Lat, Lon und Alt.
5366
- ~~StandardValidator als Attribute für EMail, Phone, Name, aber auch ein Interface Validate um komplexere zusammenhänge validieren zu können.~~

DoofesZeug.Library/Src/Datatypes/Misc/UnitPrefix.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ public override bool Equals( object obj )
9090
}
9191

9292

93-
/// <summary>
94-
/// Returns a hash code for this instance.
95-
/// </summary>
96-
/// <returns>
97-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
98-
/// </returns>
99-
public override int GetHashCode() => HashCode.Combine(this.Name, this.Symbol, this.Factor);
93+
///// <summary>
94+
///// Returns a hash code for this instance.
95+
///// </summary>
96+
///// <returns>
97+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
98+
///// </returns>
99+
//public override int GetHashCode() => HashCode.Combine(this.Name, this.Symbol, this.Factor);
100100
}
101101
}

DoofesZeug.Library/Src/Entities/DateAndTime/Date.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ public override bool Equals( object obj )
257257
}
258258

259259

260-
/// <summary>
261-
/// Returns a hash code for this instance.
262-
/// </summary>
263-
/// <returns>
264-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
265-
/// </returns>
266-
public override int GetHashCode() => HashCode.Combine(this.Day, this.Month, this.Year);
260+
///// <summary>
261+
///// Returns a hash code for this instance.
262+
///// </summary>
263+
///// <returns>
264+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
265+
///// </returns>
266+
//public override int GetHashCode() => HashCode.Combine(this.Day, this.Month, this.Year);
267267

268268
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
269269

DoofesZeug.Library/Src/Entities/DateAndTime/Part/DateTimePart.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public override bool Equals( object obj )
6767
}
6868

6969

70-
/// <summary>
71-
/// Returns a hash code for this instance.
72-
/// </summary>
73-
/// <returns>
74-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
75-
/// </returns>
76-
public override int GetHashCode() => this.Value.GetHashCode();
70+
///// <summary>
71+
///// Returns a hash code for this instance.
72+
///// </summary>
73+
///// <returns>
74+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
75+
///// </returns>
76+
//public override int GetHashCode() => this.Value.GetHashCode();
7777
}
7878
}

DoofesZeug.Library/Src/Entities/DateAndTime/Time.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ public override bool Equals( object obj )
238238
}
239239

240240

241-
/// <summary>
242-
/// Returns a hash code for this instance.
243-
/// </summary>
244-
/// <returns>
245-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
246-
/// </returns>
247-
public override int GetHashCode() => HashCode.Combine(this.Hour, this.Minute, this.Second);
241+
///// <summary>
242+
///// Returns a hash code for this instance.
243+
///// </summary>
244+
///// <returns>
245+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
246+
///// </returns>
247+
//public override int GetHashCode() => HashCode.Combine(this.Hour, this.Minute, this.Second);
248248

249249
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
250250

DoofesZeug.Library/Src/Entities/DateAndTime/UnixTimestamp.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ public override bool Equals( object obj )
153153
}
154154

155155

156-
/// <summary>
157-
/// Returns a hash code for this instance.
158-
/// </summary>
159-
/// <returns>
160-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
161-
/// </returns>
162-
public override int GetHashCode() => this.lUnixTimestamp.GetHashCode();
156+
///// <summary>
157+
///// Returns a hash code for this instance.
158+
///// </summary>
159+
///// <returns>
160+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
161+
///// </returns>
162+
//public override int GetHashCode() => this.lUnixTimestamp.GetHashCode();
163163

164164

165165
/// <summary>

DoofesZeug.Library/Src/Entities/Entity.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ public abstract class Entity
1919
/// </returns>
2020
public override abstract bool Equals( object obj );
2121

22-
/// <summary>
23-
/// Returns a hash code for this instance.
24-
/// </summary>
25-
/// <returns>
26-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
27-
/// </returns>
28-
public override abstract int GetHashCode();
22+
///// <summary>
23+
///// Returns a hash code for this instance.
24+
///// </summary>
25+
///// <returns>
26+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
27+
///// </returns>
28+
//public override abstract int GetHashCode();
2929

3030

3131
/// <summary>

DoofesZeug.Library/Src/Entities/IdentifiableEntity.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public abstract class IdentifiableEntity : Entity
2424
public override bool Equals( object obj ) => obj is IdentifiableEntity other && this.Id.Equals(other.Id) != false ;
2525

2626

27-
/// <summary>
28-
/// Returns a hash code for this instance.
29-
/// </summary>
30-
/// <returns>
31-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
32-
/// </returns>
33-
public override int GetHashCode() => this.Id.GetHashCode();
27+
///// <summary>
28+
///// Returns a hash code for this instance.
29+
///// </summary>
30+
///// <returns>
31+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
32+
///// </returns>
33+
//public override int GetHashCode() => this.Id.GetHashCode();
3434
}
3535
}

DoofesZeug.Library/Src/Entities/ManMade/Communication/EMailAddress.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ public sealed class EMailAddress : IdentifiableEntity
3131
public override string ToString() => this.Address;
3232

3333

34-
/// <summary>
35-
/// Returns a hash code for this instance.
36-
/// </summary>
37-
/// <returns>
38-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
39-
/// </returns>
40-
public override int GetHashCode() => HashCode.Combine(this.Address, this.InformationType);
34+
///// <summary>
35+
///// Returns a hash code for this instance.
36+
///// </summary>
37+
///// <returns>
38+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
39+
///// </returns>
40+
//public override int GetHashCode() => HashCode.Combine(this.Address, this.InformationType);
4141

4242

4343
/// <summary>

DoofesZeug.Library/Src/Entities/ManMade/Communication/Homepage.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ public sealed class Homepage : IdentifiableEntity
3131
public override string ToString() => this.Url.AbsoluteUri;
3232

3333

34-
/// <summary>
35-
/// Returns a hash code for this instance.
36-
/// </summary>
37-
/// <returns>
38-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
39-
/// </returns>
40-
public override int GetHashCode() => HashCode.Combine(this.Url, this.InformationType);
34+
///// <summary>
35+
///// Returns a hash code for this instance.
36+
///// </summary>
37+
///// <returns>
38+
///// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
39+
///// </returns>
40+
//public override int GetHashCode() => HashCode.Combine(this.Url, this.InformationType);
4141

4242

4343
/// <summary>

0 commit comments

Comments
 (0)