79 references to Take
installer.tasks (4)
StaticFileRegeneration\TpnDocument.cs (2)
34.Take(linesUntilNext) 54lines.Take(sections.First().Header.StartLine)),
StaticFileRegeneration\TpnSectionHeader.cs (2)
106if (nameLines.Take(nameLines.Length - 1).Any(IsSeparatorLine)) 132.Take(i)
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenSerializerTest.cs (1)
171return data.Take(data.Length - 1).ToArray();
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\Converters\CollectionAdapters\ImmutableQueueBufferAdapter.cs (1)
16return ImmutableQueue.CreateRange(buffer.Take(size));
FormMapping\Converters\CollectionAdapters\ImmutableStackBufferAdapter.cs (1)
16return ImmutableStack.CreateRange(buffer.Take(size));
Microsoft.AspNetCore.Components.Web (2)
Virtualization\Virtualize.cs (2)
236.Take(lastItemIndex - _loadedItemsStartIndex); 416Items!.Skip(request.StartIndex).Take(request.Count),
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
PullFromJSDataStreamTest.cs (3)
130return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead).ToArray()); 149return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead - 1).ToArray()); 163return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead + 1).ToArray());
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Cng\BCryptUtilTests.cs (1)
44Guid newGuid = new Guid(bytes.Skip(3).Take(sizeof(Guid)).ToArray());
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
150badProtectedPayload = badProtectedPayload.Take(badProtectedPayload.Length - 1).ToArray(); // chop off the last byte
Microsoft.AspNetCore.Diagnostics (3)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (3)
153.Take(postErrorLineNumberInFile - preErrorLineNumberInFile + 1) 160frame.PreContextCode = codeBlock.Take(errorStartLineNumberInArray).ToArray(); 163.Take(numOfErrorLines)
Microsoft.AspNetCore.Hosting (3)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (3)
153.Take(postErrorLineNumberInFile - preErrorLineNumberInFile + 1) 160frame.PreContextCode = codeBlock.Take(errorStartLineNumberInArray).ToArray(); 163.Take(numOfErrorLines)
Microsoft.AspNetCore.Http.Extensions (2)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableQueueBufferAdapter.cs (1)
16return ImmutableQueue.CreateRange(buffer.Take(size));
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableStackBufferAdapter.cs (1)
16return ImmutableStack.CreateRange(buffer.Take(size));
Microsoft.AspNetCore.Localization (1)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
40languages = languages.Take(MaximumAcceptLanguageHeaderValuesToTry);
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1416.Take(unorderedLineCount) 1422.Take(unorderedLineCount)
Infrastructure\ActionSelectionTableTest.cs (2)
334var expected = actions.Take(2).ToArray(); 383var expected = actions.Take(2).ToArray();
Infrastructure\ActionSelectorTest.cs (2)
254var expected = actions.Take(2).ToArray(); 306var expected = actions.Take(2).ToArray();
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (1)
234defaultMetadata.Attributes.Attributes.Take(2),
ModelBinding\Metadata\ModelAttributesTest.cs (2)
207attributes.Attributes.Take(2), 217attributes.TypeAttributes.Take(1),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
Buffers\PagedCharBufferTest.cs (6)
59Assert.Equal(new[] { 'a', 'b', 'c', 't' }, page.Take(4)); 145Assert.Equal(new[] { 'a', 'b', 'c' }, page.Take(buffer.Length)); 274Assert.Equal(new[] { 'a', 'b', 'c', 'd', 'e', 'f' }, page.Take(buffer.Length)); 290Assert.Equal(new[] { 'b', 'c', 'd' }, page.Take(buffer.Length)); 423Assert.Equal(new[] { 'A', 'b', 'c', 'd', 'e' }, page.Take(buffer.Length)); 478Assert.Equal(new[] { 'e', 'f', 'g', 'h' }, buffer.Pages[0].Take(buffer.Length));
ViewDataDictionaryTest.cs (1)
163{ model.Take(2) },
Microsoft.AspNetCore.Routing.Tests (1)
RouteCollectionTest.cs (1)
509var first = routeNames.Take(index).ToArray();
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (3)
153.Take(postErrorLineNumberInFile - preErrorLineNumberInFile + 1) 160frame.PreContextCode = codeBlock.Take(errorStartLineNumberInArray).ToArray(); 163.Take(numOfErrorLines)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
BufferWriterTests.cs (1)
87Assert.Equal(array.Skip(offset).Take(length).ToArray(), Read());
src\Shared\test\Shared.Tests\runtime\Http2\HuffmanDecodingTests.cs (9)
77Assert.Equal(input, decoded.Take(decodedByteCount)); 148yield return destination.Take(encodedByteCount - 1).ToArray(); 151yield return destination.Take(encodedByteCount - 2).ToArray(); 154yield return destination.Take(encodedByteCount - 3).ToArray(); 170yield return destination.Take(encodedByteCount).Concat(pad1).ToArray(); 171yield return destination.Take(encodedByteCount).Concat(pad2).ToArray(); 172yield return destination.Take(encodedByteCount).Concat(pad3).ToArray(); 173yield return destination.Take(encodedByteCount).Concat(pad4).ToArray(); 186yield return destination.Take(encodedByteCount).ToArray();
Microsoft.AspNetCore.Shared.Tests (9)
runtime\Http2\HuffmanDecodingTests.cs (9)
77Assert.Equal(input, decoded.Take(decodedByteCount)); 148yield return destination.Take(encodedByteCount - 1).ToArray(); 151yield return destination.Take(encodedByteCount - 2).ToArray(); 154yield return destination.Take(encodedByteCount - 3).ToArray(); 170yield return destination.Take(encodedByteCount).Concat(pad1).ToArray(); 171yield return destination.Take(encodedByteCount).Concat(pad2).ToArray(); 172yield return destination.Take(encodedByteCount).Concat(pad3).ToArray(); 173yield return destination.Take(encodedByteCount).Concat(pad4).ToArray(); 186yield return destination.Take(encodedByteCount).ToArray();
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\MemoryBufferWriterTests.cs (1)
113Assert.Equal(input, data.Take(16));
Microsoft.AspNetCore.SignalR.Core (1)
Internal\TypedClientBuilder.cs (1)
153paramTypes = paramTypes.Take(paramTypes.Length - 1).ToArray();
Microsoft.AspNetCore.TestHost.Tests (2)
TestClientTests.cs (2)
628Assert.True(hello.SequenceEqual(buffer.Take(hello.Length))); 633Assert.True(world.SequenceEqual(buffer.Take(world.Length)));
Microsoft.AspNetCore.WebSockets.Tests (2)
SendReceiveTests.cs (2)
57Assert.Equal(sendBuffer, receiveBuffer.Take(result.Count).ToArray()); 72Assert.Equal(sendBuffer, receiveBuffer.Take(result.Count).ToArray());
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2286project.RemoveItems(project.GetItems("j").Take(2));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
62byte[] reducedHash = fullHash.Take(targetBlockSize).Zip(fullHash.Skip(targetBlockSize), (b1, b2) => (byte)(b1 ^ b2)).ToArray();
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
153.Take(15)
Microsoft.NET.StringTools.net35 (1)
WeakStringCacheInterner.cs (1)
153.Take(15)
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
126return new Guid(data.Take(16).ToArray());
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
375foreach (ReflectionComposablePartDefinition definition in PartsInternal.Take(displayCount))
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
321return Child.AsSequentialQuery(token).Take(_count);
TagHelpersWebSite (1)
TagHelpers\TagCloudViewComponentTagHelper.cs (1)
81return Tags.Take(count).ToArray();
xunit.assert (2)
Sdk\ArgumentFormatter.cs (2)
303 .Take(MAX_OBJECT_ITEM_COUNT + 1) 309 var formattedParameters = string.Join(", ", parameters.Take(MAX_OBJECT_ITEM_COUNT).Select(p => string.Format(CultureInfo.CurrentCulture, "{0} = {1}", p.name, p.value)));