About 40,500 results
Open links in new tab
  1. C# how to create a Guid value? - Stack Overflow

    Feb 26, 2010 · One field of our struct is Guid type. How to generate a valid value for it?

  2. How to use Guids in C#? - Stack Overflow

    Feb 5, 2014 · In the case of Guid, the bytes that make up the Guid are all zero. Rather than making a special case for Guid or making it a class, they use the NewGuid method to generate …

  3. c# - How can I generate a GUID for a string? - Stack Overflow

    Since Guid's from the .NET framework are arbitrary 16bytes, or respectively 128bits, you can calculate a Guid from arbitrary strings by applying any hash function to the string that …

  4. c# - Guid.NewGuid () vs. new Guid () - Stack Overflow

    Aug 13, 2012 · What's the difference between Guid.NewGuid() and new Guid()? Which one is preferred?

  5. How to declare a constant Guid in C#? - Stack Overflow

    Feb 7, 2011 · Is it possible to declare a constant Guid in C#? I understand that I can declare a static readonly Guid, but is there a syntax that allows me to write const Guid?

  6. c# - How to validate GUID is a GUID - Stack Overflow

    Jun 2, 2011 · How to determine if a string contains a GUID vs just a string of numbers. will a GUID always contain at least 1 alpha character?

  7. C# guid and SQL uniqueidentifier - Stack Overflow

    12 You can pass a C# Guid value directly to a SQL Stored Procedure by specifying SqlDbType.UniqueIdentifier. Your method may look like this (provided that your only …

  8. c# - How to seed GUID generation? - Stack Overflow

    Nov 2, 2012 · What would be the easiest way to code a function in .NET to generate a GUID based on a seed so that I can have greater confidence about its uniqueness? string …

  9. c# - When is new Guid () 00000000-0000-0000-0000 …

    May 7, 2021 · I hava a large log C# file. My client complained that some SessionIds are 00000000-0000-0000-0000-000000000000. First method public static StartServiceLog …

  10. c# - How to generate absolutely unique GUID's? - Stack Overflow

    @AgentFire: Arent GUID's suppose to be globally unique? For entire app, I believe .NewGuid() is enough. Unless you are talking about unique id's across the universes?