Ported a lot of CoMIRVA methods to C#