/// <returns>Returns clone of this SerializeOptions-object with the same options set.</returns> /// <exception cref="Sharpen.CloneNotSupportedException">Cannot happen in this place.</exception> public object Clone() { Com.Adobe.Xmp.Options.SerializeOptions clone; try { clone = new Com.Adobe.Xmp.Options.SerializeOptions(GetOptions()); clone.SetBaseIndent(baseIndent); clone.SetIndent(indent); clone.SetNewline(newline); clone.SetPadding(padding); return(clone); } catch (XMPException) { // This cannot happen, the options are already checked in "this" object. return(null); } }
/// <returns>Returns clone of this SerializeOptions-object with the same options set.</returns> /// <exception cref="Sharpen.CloneNotSupportedException">Cannot happen in this place.</exception> public object Clone() { Com.Adobe.Xmp.Options.SerializeOptions clone; try { clone = new Com.Adobe.Xmp.Options.SerializeOptions(GetOptions()); clone.SetBaseIndent(baseIndent); clone.SetIndent(indent); clone.SetNewline(newline); clone.SetPadding(padding); return clone; } catch (XMPException) { // This cannot happen, the options are already checked in "this" object. return null; } }