Turns a generic list of values to an object, mapping each list items to properties of the specified target type.
public static object ToObject(this IList src, Type targetclass, string[] attributes)| parameter | description |
|---|---|
| src | Source collection |
| targetclass | Type of the object to create |
| attributes | Attributes to map |
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions
Turns a generic list of values to an object, mapping each list items to properties of the specified target type. Uses ToObject
public static T ToObject<T>(this IEnumerable src, string[] attributes)| parameter | description |
|---|---|
| src | Source collection |
| attributes | Attributes to map |
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions
Turns a generic list of values to an object, mapping each list items to properties of the specified target type. Uses ToObject
public static T ToObject<T>(this IList src, string[] attributes)| parameter | description |
|---|---|
| src | Source collection |
| attributes | Attributes to map |
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions