예제 #1
0
파일: Program.cs 프로젝트: user135711/Ceras
        public string GetBaseName(Type type)
        {
            if (_commonNames.TryGetValue(type, out string v))
            {
                return(v);
            }

            return(SimpleTypeBinderHelper.GetBaseName(type));
        }
예제 #2
0
파일: Program.cs 프로젝트: user135711/Ceras
        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));
        }