Class TypeHelper
Inheritance
System.Object
TypeHelper
Namespace: DotNetNuke.Web.Mvc.Common
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class TypeHelper : object
Methods
| Improve this Doc View SourceObjectToDictionary(Object)
Given an object of anonymous type, add each property as a key and associated with its value to a dictionary.
This helper will cache accessors and types, and is intended when the anonymous object is accessed multiple times throughout the lifetime of the web application.
Declaration
public static RouteValueDictionary ObjectToDictionary(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value |
Returns
| Type | Description |
|---|---|
| RouteValueDictionary |