How do I perform a case-insensitive compare of GUIDs with LINQ?

前端 未结 4 1867
野的像风
野的像风 2021-01-04 02:49

In the code below, I want to compare two GUIDs. The problem is I don\'t get any tasks returned because the GUIDS are different case (uppercase vs. lowercase). I need to perf

4条回答
  •  无人及你
    2021-01-04 03:38

    The == is overloaded on Guid so you don't need to compare the string representations.

    See http://msdn.microsoft.com/en-us/library/system.guid.op_equality(v=VS.90).aspx

提交回复
热议问题