Пример #1
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="Other">Receipt to copy from</param>
 public TargetReceipt(TargetReceipt Other)
 {
     foreach (BuildProduct OtherBuildProduct in Other.BuildProducts)
     {
         BuildProducts.Add(new BuildProduct(OtherBuildProduct));
     }
     foreach (RuntimeDependency OtherRuntimeDependency in Other.RuntimeDependencies)
     {
         RuntimeDependencies.Add(new RuntimeDependency(OtherRuntimeDependency));
     }
     AdditionalProperties.AddRange(Other.AdditionalProperties);
 }
Пример #2
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="Other">Receipt to copy from</param>
 public TargetReceipt(TargetReceipt Other)
 {
     Launch = Other.Launch;
     foreach (BuildProduct OtherBuildProduct in Other.BuildProducts)
     {
         BuildProducts.Add(new BuildProduct(OtherBuildProduct));
     }
     foreach (RuntimeDependency OtherRuntimeDependency in Other.RuntimeDependencies)
     {
         RuntimeDependencies.Add(new RuntimeDependency(OtherRuntimeDependency));
     }
     foreach (KeyValuePair <string, bool> Pair in Other.PluginNameToEnabledState)
     {
         if (!PluginNameToEnabledState.ContainsKey(Pair.Key))
         {
             PluginNameToEnabledState.Add(Pair.Key, Pair.Value);
         }
     }
     AdditionalProperties.AddRange(Other.AdditionalProperties);
 }