public int Ignore(KeyType Key) { using (Run.Block()) { var Keyinfo = new TableExtras.KeyInfo(); Keyinfo.Key = Key; Extras.Ignoring?.Invoke(Keyinfo); Keyinfo.Pos = KeysInfo.Keys.BinaryDelete(Key).Index; Extras.Ignored?.Invoke(Keyinfo); return(Keyinfo.Pos); } }
public int Accept(KeyType Key) { using (Run.Block()) { var KeyInfo = new TableExtras.KeyInfo(); KeyInfo.Key = Key; Extras.Accepting?.Invoke(KeyInfo); KeyInfo.Pos = KeysInfo.Keys.BinaryInsert(Key); Extras.Accepted?.Invoke(KeyInfo); return(KeyInfo.Pos); } }