This is an N2 and N3 pattern.
に反して
contrary to X — the outcome goes against what X expected
予想に反して、新しい商品は全く売れなかった。
yosou ni hanshite, atarashii shouhin wa mattaku urenakatta.
The new product didn't sell at all, contrary to expectations. neutral
規則に反して、彼は夜遅くまで店を開けていた。
kisoku ni hanshite, kare wa yoru osoku made mise o akete ita.
He kept the shop open until late at night, contrary to the rules. neutral
How it's built1
Examples2
contrary to X — what happened goes against an expectation or plan
予想に反して、新しい商品は全く売れなかった。
yosou ni hanshite, atarashii shouhin wa mattaku urenakatta.
The new product didn't sell at all, contrary to expectations. neutral
規則に反して、彼は夜遅くまで店を開けていた。
kisoku ni hanshite, kare wa yoru osoku made mise o akete ita.
He kept the shop open until late at night, contrary to the rules. neutral
Notes
- noun〜に反して~nihanshite
- nounに反しnihanshiliterary
て drops for written, formal connections — 規則に反し処分された. Not used in conversation.
No same-meaning pattern.