diff --git a/BeefLibs/corlib/src/Collections/List.bf b/BeefLibs/corlib/src/Collections/List.bf index 70a4e7fb..02d7d1a5 100644 --- a/BeefLibs/corlib/src/Collections/List.bf +++ b/BeefLibs/corlib/src/Collections/List.bf @@ -448,6 +448,24 @@ namespace System.Collections } } + public bool ContainsStrict(T item) + { + if (item == null) + { + for (int i = 0; i < mSize; i++) + if (mItems[i] === null) + return true; + return false; + } + else + { + for (int i = 0; i < mSize; i++) + if (mItems[i] === item) + return true; + return false; + } + } + public bool ContainsAlt(TAlt item) where TAlt : IHashable where bool : operator T == TAlt { return IndexOfAlt(item) != -1;