The default value for int
is 0 , for string
is "" and for boolean
it is false. Could someone please clarify what the default value for guid
is?
You can use these methods to get an empty guid. The result will be a guid with all it's digits being 0's - "00000000-0000-0000-0000-000000000000
".
new Guid()
default(Guid)
Guid.Empty