Adroit.Data.BDB46.Insert C# (CSharp) Method

Insert() public method

public Insert ( uint key, object value ) : void
key uint
value object
return void
		public void Insert (uint key, object value)
		{
			if (key > KeyCount) {
				Append (value);
				return;
			}
			
			using (var cursor = this.NewCursor ()) {
				cursor.MoveTo (key);
				cursor.Put (key, value, Cursor.Dest.Before);
				if (this.Inserted != null)
					this.Inserted (this, new BdbArgs (key, value));
			}
		}