コード例 #1
0
 protected void CopyToComponent(LicensedComponent other)
 {
     other.Name      = Name;
     other.LicenseId = LicenseId;
     other.Authors   = Authors;
     other.Copyright = Copyright;
     other.Remarks   = Remarks?.Clone();
 } // CopyToComponent
コード例 #2
0
        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