创建一类像ASP.NET MVC 3 ViewBag? [英] Creating a class like ASP.NET MVC 3 ViewBag?
本文介绍了创建一类像ASP.NET MVC 3 ViewBag?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个情况下,我想做点什么simular什么是有可能与在运行时创建的属性的ASP.NET MVC 3 ViewBag对象做了什么?或者是在编译时?
I have a situation where I would like to do something simular to what was done with the ASP.NET MVC 3 ViewBag object where properties are created at runtime? Or is it at compile time?
无论如何,我不知道如何去使用此行为创建一个对象?
Anyway I was wondering how to go about creating an object with this behaviour?
推荐答案
使用类型的对象动态
。 有关详细信息,请参阅本文。
这篇关于创建一类像ASP.NET MVC 3 ViewBag?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文