Skip to content

NativeLinkedList.GetEnumerator .MoveNext returns true for empty Lists #14

@StefanWokusch

Description

@StefanWokusch

I have an empty list and try to do it like the usual Native API

var list = new NativeLinkedList<int>(capacity: 10, Allocator.Temp);
var e = list.getEnumerator();
while(e.MoveNext()) {
// do something
}

Workaround:

while(e.MoveNext() && e.IsValid()){
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions