src/WingetCreateCore/Common/PackageParser.cs
/// <summary>
/// Creates a new Installer object that is a copy of the provided Installer.
/// </summary>
/// <param name="installer">Installer object to be cloned.</param>
/// <returns>A new cloned Installer object.</returns>
Creates a new Installer object that is a copy of the provided Installer.
Creates a new Installer object that is a copy of the provided Installer .
public static Installer CloneInstaller(Installer installer)
        {
            string json = JsonConvert.SerializeObject(installer);
            return JsonConvert.DeserializeObject<Installer>(json);
        }
public static Installer CloneInstaller ( Installer installer ) { string json = JsonConvert . SerializeObject ( installer ) ; return JsonConvert . DeserializeObject < Installer > ( json ) ; }
Creates a new Installer object that is a copy of the provided Installer.
Creates a new Installer object that is a copy of the provided Installer .
A new cloned Installer object.
A new cloned Installer object .
installer
Installer
Installer object to be cloned.
Installer object to be cloned .