Exemplo n.º 1
0
 /// <summary>
 /// Existing item is unchanged.
 /// </summary>
 /// <param name="item"></param>
 /// <returns>False</returns>
 public virtual bool Merge(IKeyedInjectorItem item)
 {
     return false;
 }
 /// <summary>
 /// Existing item's script is replaced.
 /// </summary>
 /// <param name="item"></param>
 /// <returns>True</returns>
 public virtual bool Merge(IKeyedInjectorItem item)
 {
     Script = ((ScriptBlockInjectorItem)item).Script;
      return true;
 }
 /// <summary>
 /// Existing item's value is changed.
 /// </summary>
 /// <param name="item"></param>
 /// <returns>False</returns>
 public virtual bool Merge(IKeyedInjectorItem item)
 {
     Value = ((HiddenFieldInjectorItem)item).Value;
      return true;
 }
 /// <summary>
 /// Existing item has its Elements collection appended
 /// with those in the new item.
 /// </summary>
 /// <param name="item"></param>
 /// <returns>False</returns>
 public virtual bool Merge(IKeyedInjectorItem item)
 {
     Elements.AddRange(((ArrayDeclarationInjectorItem)item).Elements);
      return true;
 }