我在Model中有一个List<string>
。当我编写html helper时,我可以从metadata.Model
获取数据,该对象是一个List<string>
。
// this is from MVC3 (namespace System.Web.Mvc -> ModelMetadata), I did not write this
// Summary:
// Gets the value of the model.
//
// Returns:
// The value of the model. For more information about System.Web.Mvc.ModelMetadata,
// see the entry ASP.NET MVC 2 Templates, Part 2: ModelMetadata on Brad Wilson's
// blog
public object Model { get; set; }
我的问题是:如何从一个 Object
中获取 List<string>
?