public static Dictionary<string, Type> GetQueryPropertyTypes(this Type requestType) { var map = RestRoute.GetQueryProperties(requestType); var to = new Dictionary<string, Type>(); foreach (var entry in map) { to[entry.Key] = entry.Value.GetMemberType(); } return to; } }