10 references to TryWriteBytes
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
302var success = value.TryWriteBytes(span);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
820var success = Guid.NewGuid().TryWriteBytes(buffer);
PresentationCore (2)
System\Windows\Media\PixelFormat.cs (2)
520pixelFormatGuid.TryWriteBytes(guidBytes); 567pixelFormatGuid.TryWriteBytes(guidBytes);
System.Data.Common (2)
System\Data\SQLTypes\SQLGuid.cs (2)
123bool xWrote = x._value.GetValueOrDefault().TryWriteBytes(xBytes); 127bool yWrote = y._value.GetValueOrDefault().TryWriteBytes(yBytes);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
493bool success = Guid.NewGuid().TryWriteBytes(bytes);
System.Private.DataContractSerialization (2)
System\Xml\XmlBinaryWriter.cs (2)
815guid.TryWriteBytes(span.Slice(1)); 996guid.TryWriteBytes(bytes);
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\BlobUtilities.cs (1)
80bool written = value.TryWriteBytes(buffer.AsSpan(start));