-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pass by reference bug when applying changes to all installers (#164)
* fix all installer serialization bug * add generic implementation
- Loading branch information
Showing
3 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Microsoft.WingetCreateCore.Models.Installer | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// Partial class that implements cloning functionality to the PackageDependencies class. | ||
/// </summary> | ||
public partial class PackageDependencies : ICloneable | ||
{ | ||
/// <summary> | ||
/// Creates a new PackageDependencies object that is a copy of the current instance. | ||
/// </summary> | ||
/// <returns>A new PackageDependencies object that is a copy of the current instance.</returns> | ||
public object Clone() | ||
{ | ||
return new PackageDependencies { MinimumVersion = this.MinimumVersion, PackageIdentifier = this.PackageIdentifier }; | ||
} | ||
} | ||
} |