Exemplo n.º 1
0
        private Type GetProxyType(ITypeDescriptorContext context)
        {
            IDictionaryService dictionary = VsHelper.GetService <IDictionaryService>(context, true);
            Type proxyType = (Type)dictionary.GetValue(ProxyArgumentName);

            return(proxyType);
        }
Exemplo n.º 2
0
        private List <MethodInfo> GetMethodsList(ITypeDescriptorContext context)
        {
            IDictionaryService dictionary  = VsHelper.GetService <IDictionaryService>(context, true);
            List <MethodInfo>  methodsList = (List <MethodInfo>)dictionary.GetValue(MethodsArgumentName);

            return(methodsList);
        }