Пример #1
0
 /// <summary>
 /// Copies all meta data from this item to the target item.
 /// </summary>
 public virtual void CopyMetadataTo(ProjectItem targetItem)
 {
     lock (SyncRoot) {
         lock (targetItem.SyncRoot) {
             foreach (string name in this.MetadataNames)
             {
                 targetItem.SetMetadata(name, this.GetMetadata(name));
             }
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Copies all meta data from this item to the target item.
 /// </summary>
 public virtual void CopyMetadataTo(ProjectItem targetItem)
 {
     lock (SyncRoot) {
         lock (targetItem.SyncRoot) {
             if (this.buildItem != null && targetItem.buildItem != null)
             {
                 this.buildItem.CopyCustomMetadataTo(targetItem.buildItem);
             }
             else
             {
                 foreach (string name in this.MetadataNames)
                 {
                     targetItem.SetMetadata(name, this.GetMetadata(name));
                 }
             }
         }
     }
 }
Пример #3
0
 public void SetMetadata(string name, string value)
 {
     parent.SetMetadata(name, value);
 }