Пример #1
0
        public override Type ResolveType(string id)
        {
            WebServiceTypeData type = null;

            if (ClientTypeDictionary.TryGetValue(id, out type))
            {
                if (type != null)
                {
                    return(type.Type);
                }
            }
            return(null);
        }
Пример #2
0
        public override Type ResolveType(string id)
        {
            Type type = null;

            if (ClientTypeDictionary.TryGetValue(id, out type))
            {
                return(type);
            }
            else
            {
                Type resolvedType = Type.GetType(id);
                if (null == resolvedType)
                {
                    return(null);
                }
                else
                {
                    ClientTypeDictionary.Add(id, resolvedType);
                    return(resolvedType);
                }
            }
        }