public Remove ( ushort x ) : Container | ||
x | ushort | Short to be removed |
Результат | Container |
public override Container Remove(ushort x)
{
int loc = Utility.UnsignedBinarySearch(Content, 0, Cardinality, x);
if (loc >= 0)
{
// insertion
Array.Copy(Content, loc + 1, Content, loc, Cardinality - loc - 1);
--Cardinality;
}
return this;
}
ArrayContainer::Remove ( ushort begin, ushort end ) : Container |