public void Set(string key, object map) { if (!(map is byte[]) ) { throw new BplusTreeBadKeyValue("BplusTreeBytes can only archive byte array as value"); } byte[] thebytes = (byte[]) map; this[key] = thebytes; }