Skip to content

Commit 7dcb5c6

Browse files
committed
refactor: 更新代码
1 parent 91938ea commit 7dcb5c6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/BootstrapBlazor/Components/Typed/TypedOptions.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,25 @@ private bool EqualText(List<string>? text)
130130
}
131131
return Text.SequenceEqual(text);
132132
}
133+
134+
/// <summary>
135+
/// <inheritdoc/>
136+
/// </summary>
137+
/// <param name="obj"></param>
138+
/// <returns></returns>
139+
public override bool Equals(object? obj)
140+
{
141+
if (obj is TypedOptions option)
142+
{
143+
return Equals(option);
144+
}
145+
146+
return false;
147+
}
148+
149+
/// <summary>
150+
/// <inheritdoc/>
151+
/// </summary>
152+
/// <returns></returns>
153+
public override int GetHashCode() => base.GetHashCode();
133154
}

0 commit comments

Comments
 (0)