Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FileCabinetRecord"/> class.
        /// </summary>
        /// <param name="fileCabinetRecord">FileCabinetRecord.</param>
        public FileCabinetRecord(FileCabinetRecord fileCabinetRecord)
        {
            if (fileCabinetRecord == null)
            {
                throw new ArgumentNullException(nameof(fileCabinetRecord));
            }

            this.Id            = fileCabinetRecord.Id;
            this.FirstName     = fileCabinetRecord.FirstName;
            this.LastName      = fileCabinetRecord.LastName;
            this.DateOfBirth   = fileCabinetRecord.DateOfBirth;
            this.Wallet        = fileCabinetRecord.Wallet;
            this.MaritalStatus = fileCabinetRecord.MaritalStatus;
            this.Height        = fileCabinetRecord.Height;
        }
Ejemplo n.º 2
0
 public RecordParameters(FileCabinetRecord fileCabinetRecord)
     : this(fileCabinetRecord.FirstName, fileCabinetRecord.LastName, fileCabinetRecord.DateOfBirth, fileCabinetRecord.Wallet, fileCabinetRecord.MaritalStatus, fileCabinetRecord.Height)
 {
 }