Пример #1
0
        protected override object NewAttribute(NewCodeElementItemParams p, string path, object newItemValue)
        {
            var value = null == newItemValue ? null : newItemValue.ToString();

            return(_element.AddAttribute(path,
                                         value,
                                         p.Position.ToDTEParameter()));
        }
Пример #2
0
 public ShellCodeAttribute AddAttribute(string Name, string Value, object Position)
 {
     return(new ShellCodeAttribute(_variable.AddAttribute(Name, Value, Position) as CodeAttribute2));
 }