Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Simplify TimeZoneInfo.Equals(object) #8514

Merged
merged 1 commit into from
Dec 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/mscorlib/src/System/TimeZoneInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -946,11 +946,7 @@ static public DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, String s
}

public override bool Equals(object obj) {
TimeZoneInfo tzi = obj as TimeZoneInfo;
if (null == tzi) {
return false;
}
return Equals(tzi);
return Equals(obj as TimeZoneInfo);
}

//
Expand Down