26 references to Length
Microsoft.Build.Framework (8)
Collections\RefArrayBuilder.cs (4)
59public readonly int Capacity => _scope.Length; 78Debug.Assert(value <= _scope.Length, "Count must not exceed the span length."); 138Debug.Assert(_count == _scope.Length, "AddWithResize should only be called when the span is full."); 220Debug.Assert(_count == _scope.Length, "InsertWithResize should only be called when the span is full.");
NativeMethods.cs (4)
728if (length > buffer.Length) 770if (length > buffer.Length) 1182if (pathLength > buffer.Length) 1228if (fullPathLength > buffer.Length)
Microsoft.Build.Framework.UnitTests (18)
BufferScope_Tests.cs (18)
20buffer.Length.ShouldBeGreaterThanOrEqualTo(16); 28buffer.Length.ShouldBe(8); 36buffer.Length.ShouldBe(32); 44buffer.Length.ShouldBeGreaterThanOrEqualTo(128); 92int originalLength = buffer.Length; 94buffer.Length.ShouldBe(originalLength); 102buffer.Length.ShouldBe(4); 105buffer.Length.ShouldBeGreaterThanOrEqualTo(128); 131span.Length.ShouldBe(buffer.Length); 172buffer.Length.ShouldBeGreaterThanOrEqualTo(0); 179buffer.Length.ShouldBe(0); 186buffer.Length.ShouldBe(10); 198buffer.Length.ShouldBeGreaterThanOrEqualTo(50); 213buffer.Length.ShouldBeGreaterThanOrEqualTo(50); 306buffer.Length.ShouldBe(0); 357for (int i = 0; i < buffer.Length; i++) 387buffer.Length.ShouldBeGreaterThan(0); 389buffer.Length.ShouldBe(0);