Cosmos: List.Contains is not working

Created on 15 Dec 2020  路  1Comment  路  Source: CosmosOS/Cosmos

Expected Behaviour - What do you think that should happen?

Find the index of an object in a List of objects through Contains

Actual Behaviour - What unexpectedly happens?

Just make the OS freeze, no exception

Reproduction - How did you get this error to appear?

Not working:

return Keys.Contains(key);

Working:

foreach (var device in Keys)
{
    if (k == device)
    {
        return true;
    }
}
return false;
Bug

Most helpful comment

Seems related to #1592

>All comments

Seems related to #1592

Was this page helpful?
0 / 5 - 0 ratings

Related issues

geomtech picture geomtech  路  6Comments

Vardan2009 picture Vardan2009  路  11Comments

ArtyIF picture ArtyIF  路  9Comments

Irxori-TheBetrayed picture Irxori-TheBetrayed  路  3Comments

TFTWPhoenix picture TFTWPhoenix  路  7Comments