开发者

Getters and setters for the properties of the object ViewBag

Where can I re开发者_运维百科gister getters and setters for the properties of the object ViewBag?


ViewBag is a DynamicObject which essentially means that the properties and values are determined at runtime. The simplest explanation is that of a Dictionary<string, object>.

ViewBag.Name = "Title"; and ViewDictionary["Name"] = "Title"; are essentially the same. As such there are no getters and setters for the ViewBag specifically. DynamicObjects.

What is it you're trying to accomplish?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜