NewGuid vs System.Guid.NewGuid().ToString(“D”);

前端 未结 4 1661
清酒与你
清酒与你 2021-01-30 17:35

Is there a difference when you generate a GUID using NewGuid(); vs System.Guid.NewGuid().ToString(\"D\"); or they are the same thing?

4条回答
  •  Happy的楠姐
    2021-01-30 17:54

    Guid.NewGuid().ToString() is string representation of GUID, i.e. returns string object, while Guid.NewGuid() returns Guid datatype.

提交回复
热议问题