function:

   public static dynamic GetAppSecret()
{
//string[] result = new string[] { "", "" };
dynamic result = new System.Dynamic.ExpandoObject(); result = new { appid="appid", appSecret = "appSecret" }; return result;
}

if you want to use the dynamic result function in a difference assembly, you should add following code to assemblyInfo.cs

[assembly: InternalsVisibleTo("WeChatSchools")]

invoke:

var secret = Helper.GetAppSecret();
app.t_appid = secret.appid;
app.t_appkey = secret.appSecret;

最新文章

  1. android 音乐播放器
  2. jenkins 入门教程(上)
  3. windows 常用命令
  4. Visual Studio 推荐插件--高量,变量高量,语法高亮
  5. SQLServer之数据类型
  6. (转)linux文件读写的流程
  7. [LeetCode]题解(python):091 Decode Ways
  8. 《Linux内核设计与实现》读书笔记(十二)- 内存管理【转】
  9. 控件如何在IDE中响应MouseDown事件
  10. Demo1_iOS9网络适配_改用更安全的HTTPS
  11. 不同版本PHP之间cURL的区别(-经验之谈)
  12. (转)实战p12文件转pem文件
  13. gulp使用2-gulp-less及watch和错误提示
  14. 兼容的Ajax
  15. MySQL基础操/下
  16. SpringBoot启动tomcat源码解读
  17. Maven解决包冲突
  18. [leetcode]2. Add Two Numbers.cpp
  19. [内核驱动] VS2012+WDK 8.0 Minifilter实现指定扩展名文件拒绝访问
  20. maven 下载jar失败: Missing artifact javax.jms:jms:jar:1.1

热门文章

  1. mysql优化之索引优化
  2. wireshark抓包图解 TCP三次握手/四次挥手详解
  3. Match+Faq
  4. NSObject中的isa到底是个什么?
  5. 骑士飞行棋 C#代码详解
  6. .net+easyui系列--按钮
  7. xml_02
  8. 通过js实时检测文本框内容
  9. zzzzw_在线考试系统③完结篇
  10. js选中checkbox赋值给文本框