single collection does not added in CloneCollection, #3
This commit is contained in:
parent
1f15edcfd1
commit
3ab53b6caa
@ -1,8 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\ObservableCollections\ObservableCollections.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using ObservableCollections;
|
||||
using System;
|
||||
|
||||
namespace ConsoleApp
|
||||
{
|
||||
@ -6,7 +7,8 @@ namespace ConsoleApp
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ namespace ObservableCollections.Internal
|
||||
{
|
||||
this.array = ArrayPool<T>.Shared.Rent(1);
|
||||
this.length = 1;
|
||||
this.array[0] = item;
|
||||
}
|
||||
|
||||
public CloneCollection(IEnumerable<T> source)
|
||||
|
Loading…
x
Reference in New Issue
Block a user