예제 #1
0
        private static IEnumerable <ParamInfo> GetData(object obj)
        {
            ITypeFetch typeFetch  = UtilContainer.Resolve <ITypeFetch>();
            var        paramInfos = typeFetch.GetParamInfos(obj, obj.GetType());

            SetParamTypeName(paramInfos);
            return(paramInfos);
        }
예제 #2
0
        public Type FetchType(string typeName)
        {
            Type type;

            if (this.TryGetValue(typeName, out type))
            {
                return(type);
            }

            ITypeFetch typeFetch = Util.UtilContainer.Resolve <ITypeFetch>();

            type = typeFetch.FetchType(typeName);
            this.Add(typeName, type);
            return(type);
        }