/// <summary> /// Public method that arms the passed in /// <see cref="IRobot"/> object. /// </summary> /// <param name="robot">The <see cref="IRobot"/> to be armed (if it's not null).</param> public void AttachWeapons(IRobot robot) { robot?.AttachWeapons(weaponDescription); }