Skip to content

Commit 9fbe7aa

Browse files
author
Gideon de Swardt
committed
Fix compiler warnings
Implemented the GetHashCode to remove the compiler warnings.
1 parent cd95ff8 commit 9fbe7aa

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/ExCSS/Model/Url.cs

+13-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,19 @@ public string Query
163163
set => ParseQuery(value ?? string.Empty, 0, true);
164164
}
165165

166-
//public override int GetHashCode()
167-
//{
168-
// return base.GetHashCode();
169-
//}
166+
public override int GetHashCode() => new
167+
{
168+
_fragment,
169+
_query,
170+
_path,
171+
_scheme,
172+
_port,
173+
_host,
174+
UserName,
175+
Password,
176+
_relative,
177+
Data
178+
}.GetHashCode();
170179

171180
public override bool Equals(object obj)
172181
{

0 commit comments

Comments
 (0)