2011-nov02-net / 2011-nov02-net/josiah-project0
Customer Equals Method
未关闭
适合新手
- 主要语言
- C#
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
The customer Equals() method doesn't check ID number to verify that two instances of the customer class are exactly equal. This can cause problems when comparing people who happen to have the same name. Update this to check every aspect of the customer.
File Location: StoreApp.DataModel/Customer.cs
贡献指南
这个仓库没有索引到贡献指南
调研方向
该 issue 指向 StoreApp.DataModel/Customer.cs。打开该文件,找到 Equals() 方法,并修改它以比较 Customer 类的所有字段,包括 ID。确保该方法遵循 C# 中标准的相等性重写模式。通过创建名称相同但 ID 不同的实例进行测试,以验证它们不会被视为相等。
由索引模型根据 Issue 内容生成。
评估
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 70/100