Typescript Access Nested Property By Strings In C