public static int get_hash_power_number_from_int( Object i, int power ) { int hash_code= i.GetHashCode(); return (hash_code & ((1 << power) - 1)); }