UniqueListTests CopyAndAdaptUniqueList Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CopyAndAdaptUniqueList()
Examples

[Test]
public void CopyAndAdaptUniqueList()
{
    int[] list = { 0, 0, 0 };
    var copylist = new UniqueList<int> { 4, 5, 6 };
    var uniquelist = new UniqueList<int> { 1, 2, 3 };
    uniquelist.CopyTo(list, 0);
    int i = 0;
    foreach (object p in copylist) {
        uniquelist[i] = copylist.ToList()[i];
        ++i;
    }
See Also