7 references to TryRead
System.Drawing.Common (4)
System\Drawing\ImageConverter.cs (4)
102|| !reader.TryRead(header.cchName, out ReadOnlySpan<byte> nameSpan) 103|| !reader.TryRead(header.cchClass, out ReadOnlySpan<byte> classSpan)) 123|| !reader.TryRead(classLength, out ReadOnlySpan<byte> className) 135if (!reader.TryRead(out int dataLength) || !reader.TryRead(dataLength, out var data))
System.Windows.Forms.Primitives.Tests (3)
System\SpanReaderTests.cs (3)
148reader.TryRead(2, out var read).Should().BeTrue(); 152reader.TryRead(2, out read).Should().BeTrue(); 156reader.TryRead(2, out _).Should().BeFalse();