src/Orleans.Core.Abstractions/IDs/GrainIdKeyExtensions.cs
/// <summary>
/// Creates an <see cref="IdSpan"/> representing a <see cref="Guid"/> key.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
/// <returns>
/// An <see cref="IdSpan"/> representing the provided key.
/// </returns>
Creates an  representing a  key.
Creates an representing a key .
public static IdSpan CreateGuidKey(Guid key)
        {
            var buf = new byte[32];
            Utf8Formatter.TryFormat(key, buf, out var len, 'N');
            Debug.Assert(len == 32, "Unable to format the provided value as a UTF8 string");
            return new IdSpan(buf);
        }
public static IdSpan CreateGuidKey ( Guid key ) { var buf = new byte [ 32 ] ; Utf8Formatter . TryFormat ( key , buf , out var len , ' ' ) ; Debug . Assert ( len == 32 , " " ) ; return new IdSpan ( buf ) ; }
Creates an  representing a  key.
Creates an representing a key .
An  representing the provided key.
An representing the provided key .
key
Guid
None