public static bool TryInsert(this FixedSizeNode <SnapUInt32, SnapUInt32> tree, uint key, uint value) { SnapUInt32 k = new SnapUInt32(key); SnapUInt32 v = new SnapUInt32(value); bool rv = tree.TryInsert(k, v); return(rv); }
public static void Insert(this FixedSizeNode <SnapUInt32, SnapUInt32> tree, uint key, uint value) { SnapUInt32 k = new SnapUInt32(key); SnapUInt32 v = new SnapUInt32(value); if (!tree.TryInsert(k, v)) { throw new Exception(); } }