public string GetBaseName(Type type) { if (_commonNames.TryGetValue(type, out string v)) { return(v); } return(SimpleTypeBinderHelper.GetBaseName(type)); }
public Type GetTypeFromBase(string baseTypeName) { // While reading, we want to resolve to 'VersionTest2' // So we can simulate that the type changed. if (_commonNames.ContainsValue(baseTypeName)) { return(typeof(VersionTest2)); } return(SimpleTypeBinderHelper.GetTypeFromBase(baseTypeName)); }