alexmen

专注.net软件开发,项目管理体系PMBOK.

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

07 2014 档案

摘要:DynamicObject类使您能够定义可以动态对象上执行哪些操作以及如何执行这些操作。例如,可以定义当尝试获取或设置对象属性、调用一个方法或执行标准的数学运算(如加法和乘法)时将发生的情况。如果要为库创建更方便的协议,此类可能非常有帮助。例如,如果库用户必须使用Scriptobj.SetPrope... 阅读全文
posted @ 2014-07-30 22:03 alexmen 阅读(1789) 评论(0) 推荐(0)

摘要:In theprevious postI showed how you can use the new dynamic feature and theExpandoObjectclass to add and remove properties at run time, and how this c... 阅读全文
posted @ 2014-07-30 21:58 alexmen 阅读(220) 评论(0) 推荐(0)

摘要:class Person { public string Name { get; set; } } class Pet { public string... 阅读全文
posted @ 2014-07-30 21:54 alexmen 阅读(386) 评论(0) 推荐(0)