C# equality checking

后端 未结 4 722
花落未央
花落未央 2020-12-08 23:43

What\'s your approach on writing equality checks for the structs and classes you create?

1) Does the \"full\" equ

4条回答
  •  离开以前
    2020-12-09 00:26

    See What is "Best Practice" For Comparing Two Instances of a Reference Type?

    You can avoid boiler plate code (hope C#/VS team brings something easy for developers in their next iteration) with the help of a snippet, here is one such..

提交回复
热议问题