File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,18 @@ public override bool Equals(object obj)
5151 return obj is InitializationScript other && this . ScriptId == other . ScriptId && this . ScriptName == other . ScriptName && this . ScriptSource == other . ScriptSource ;
5252 }
5353
54+ /// <summary>
55+ /// Serves as a hash function for a particular <see cref="InitializationScript"/>.
56+ /// </summary>
57+ /// <returns>A hash code for the current <see cref="InitializationScript"/>.</returns>
58+ public override int GetHashCode ( )
59+ {
60+ int result = this . ScriptId . GetHashCode ( ) ;
61+ result = ( 31 * result ) + this . ScriptName . GetHashCode ( ) ;
62+ result = ( 31 * result ) + this . ScriptSource . GetHashCode ( ) ;
63+ return result ;
64+ }
65+
5466 /// <summary>
5567 /// Returns a string that represents the current object.
5668 /// </summary>
You can’t perform that action at this time.
0 commit comments