protected void CopyToComponent(LicensedComponent other) { other.Name = Name; other.LicenseId = LicenseId; other.Authors = Authors; other.Copyright = Copyright; other.Remarks = Remarks?.Clone(); } // CopyToComponent
public void Inherit(LicensedComponent from) { if (from == null) { return; } Name ??= from.Name; LicenseId ??= from.LicenseId; Authors ??= from.Authors; Copyright ??= from.Copyright; Remarks ??= from.Remarks; } // Inherit