Median of Two Sorted Arrays

My C# solution to LeetCode problem #4:

There are two sorted arrays  and  of size $ m $ and $ n $ respectively. Find the median of the two sorted arrays. The overall run time complexity should be $ O(\log(m+n)) $.

I decided to publish it as solutions I found online are mostly wrong.