/// <summary> /// Create a copy of this OptionsData instance. /// </summary> /// <returns>A new OptionsData instance containing the same stuff.</returns> public OptionsData Clone() { var optionsCopy = new OptionsData(this); return(optionsCopy); }
/// <summary> /// Initializes a new instance of OptionsData, creating a copy of another OptionsData object. /// </summary> /// <param name="options">The OptionsData object data to copy into this new instance.</param> public OptionsData(OptionsData options) { CopyToInstance(options); CheckDataConsistency(); }