[C#] Rewrite trait impl based on typescript, not Java