10 references to AsSpan
Microsoft.Build.Framework (7)
Collections\RefArrayBuilder.cs (2)
111=> _scope.AsSpan()[.._count]; 315Span<T> destination = newScope.AsSpan();
NativeMethods.cs (5)
725int length = (int)PInvoke.GetShortPathName(path, buffer.AsSpan()); 731length = (int)PInvoke.GetShortPathName(path, buffer.AsSpan()); 767int length = (int)PInvoke.GetLongPathName(path, buffer.AsSpan()); 773length = (int)PInvoke.GetLongPathName(path, buffer.AsSpan()); 1240ReadOnlySpan<char> result = buffer.AsSpan().Slice(0, fullPathLength);
Microsoft.Build.Framework.UnitTests (2)
BufferScope_Tests.cs (2)
130Span<int> span = buffer.AsSpan(); 375foreach (int value in buffer.AsSpan()[..5])
Microsoft.Build.Tasks.Core (1)
ComReference.cs (1)
415int pathLength = (int)PInvoke.GetModuleFileName(handle, buffer.AsSpan());