public void RegionOpsAB(RegionOp op, KeysSelect sel, int offset, int numIters, int step) { CacheableKey[] keys = null; Serializable[] values = null; switch (sel) { case KeysSelect.KeysA: keys = (CacheableKey[])keysA; values = (Serializable[])valuesA; break; case KeysSelect.KeysB: keys = (CacheableKey[])keysB; values = (Serializable[])valuesB; break; case KeysSelect.IntKeysA: keys = (CacheableKey[])intKeysA; values = (Serializable[])intValuesA; break; case KeysSelect.IntKeysB: keys = (CacheableKey[])intKeysB; values = (Serializable[])intValuesB; break; } switch (op) { case RegionOp.Put: Puts(keys, values, offset, numIters, step); break; case RegionOp.Get: Gets(keys, offset, numIters, step); break; } }
public static extern RegionFlags ExtSelectClipRgn(HDC hdc, HRGN hrgn, RegionOp mode);