/// <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, INoSourceInjection injection) { return(injection.Map(target)); }
/// <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, INoSourceInjection injection) { currentInjection = (IDeltaInjection)injection; return(injection.Map(target)); }