Ejemplo n.º 1
0
 /// <summary>
 /// Merges another receipt to this one.
 /// </summary>
 /// <param name="Other">Receipt which should be merged</param>
 public void Merge(TargetReceipt Other)
 {
     foreach (BuildProduct OtherBuildProduct in Other.BuildProducts)
     {
         BuildProducts.Add(OtherBuildProduct);
     }
     foreach (RuntimeDependency OtherRuntimeDependency in Other.RuntimeDependencies)
     {
         if (!RuntimeDependencies.Any(x => x.Path == OtherRuntimeDependency.Path))
         {
             RuntimeDependencies.Add(OtherRuntimeDependency);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Merges another receipt to this one.
 /// </summary>
 /// <param name="Other">Receipt which should be merged</param>
 public void Merge(TargetReceipt Other)
 {
     foreach (BuildProduct OtherBuildProduct in Other.BuildProducts)
     {
         BuildProducts.Add(OtherBuildProduct);
     }
     foreach (RuntimeDependency OtherRuntimeDependency in Other.RuntimeDependencies)
     {
         if (!RuntimeDependencies.Any(x => x.Path == OtherRuntimeDependency.Path))
         {
             RuntimeDependencies.Add(OtherRuntimeDependency);
         }
     }
     foreach (KeyValuePair <string, bool> Pair in Other.PluginNameToEnabledState)
     {
         if (!PluginNameToEnabledState.ContainsKey(Pair.Key))
         {
             PluginNameToEnabledState.Add(Pair.Key, Pair.Value);
         }
     }
 }