コード例 #1
0
 /// <summary>
 /// inject values into the target
 /// </summary>
 /// <param name="injection">ValueInjection used</param>
 /// <param name="target">target where the values is going to be injected</param>
 /// <returns>the modified target</returns>
 public object Inject(INoSourceValueInjection injection, object target)
 {
     return(injection.Map(target));
 }
コード例 #2
0
 /// <summary>
 /// Injects value into target without source
 /// </summary>
 /// <param name="target">the target where the value is going to be injected</param>
 /// <param name="injection"> the injection(INoSourceValueInjection) used to inject value</param>
 /// <returns>the modified target</returns>
 public static object InjectFrom(this object target, INoSourceValueInjection injection)
 {
     return(injection.Map(target));
 }