10 |
|
/// </summary> |
11 |
|
public class ObjectBinder |
12 |
|
{ |
13 |
< |
/// <summary> |
14 |
< |
/// Binds an object to a specific type |
15 |
< |
/// </summary> |
16 |
< |
/// <typeparam name="T">The destination object type</typeparam> |
17 |
< |
/// <param name="source">The source object type (object)</param> |
18 |
< |
/// <returns>A bound type</returns> |
19 |
< |
public static void Bind<T>(object source, out T destination) where T : class { Bind<object, T>(source, out destination); } |
13 |
> |
///// <summary> |
14 |
> |
///// Binds an object to a specific type |
15 |
> |
///// </summary> |
16 |
> |
///// <typeparam name="T">The destination object type</typeparam> |
17 |
> |
///// <param name="source">The source object type (object)</param> |
18 |
> |
///// <returns>A bound type</returns> |
19 |
> |
//public static void Bind<T>(object source, out T destination) where T : class { Bind<object, T>(source, out destination); } |
20 |
|
/// <summary> |
21 |
|
/// Bind an object of a specific type to another specific type |
22 |
|
/// </summary> |