Esempio n. 1
0
 /// <summary>
 /// Fills the properties of the instance.
 /// </summary>
 /// <typeparam name="T">The type</typeparam>
 /// <param name="container">The injector</param>
 /// <param name="name">The name :key</param>
 /// <param name="instance">The instance</param>
 /// <returns>The instance filled</returns>
 public static T BuildUp <T>(this IInjectorResolver container, string name, T instance) where T : class
 {
     return((T)container.BuildUp(typeof(T), name, instance));
 }
Esempio n. 2
0
 /// <summary>
 /// Fills the properties of the instance.
 /// </summary>
 /// <typeparam name="T">The type</typeparam>
 /// <param name="container">The injector</param>
 /// <returns>The instance filled</returns>
 public static T BuildUp <T>(this IInjectorResolver container) where T : class
 {
     return((T)container.BuildUp(typeof(T)));
 }
Esempio n. 3
0
 /// <summary>
 /// Fills the properties of the instance.
 /// </summary>
 /// <typeparam name="T">The type</typeparam>
 /// <param name="container">The injector</param>
 /// <param name="instance">The instance</param>
 /// <returns>The instance filled</returns>
 public static T BuildUp <T>(this IInjectorResolver container, T instance) where T : class
 {
     return((T)container.BuildUp(instance));
 }