/// <summary> /// Create a new object that is a copy of the current instance. /// </summary> /// <returns> /// A new <see cref="XlsxInput"/> that is a copy of this instance. /// </returns> public XlsxInput Clone() { Logger.Instance.Debug(""); Logger.Instance.Debug(" Assembly: iTin.Utilities.Xlsx, Namespace: iTin.Utilities.Xlsx.ComponentModel, Class: XlsxInput"); Logger.Instance.Debug(" Create a new object that is a copy of the current instance"); Logger.Instance.Debug($" > Signature: ({typeof(XlsxInput)}) Clone()"); XlsxInput clonned = (XlsxInput)MemberwiseClone(); NativeIO.Stream innerStream = ToStream().Clone(); clonned.Input = innerStream; Logger.Instance.Debug($" > Output: Cloned correctly"); return(clonned); }
private SetResult SetImplStrategy(ISet data, XlsxInput context) => data == null?SetResult.CreateErroResult("Missing data") : data.Apply(ToStream(), context);
private InsertResult InsertImplStrategy(IInsert data, XlsxInput context) => data == null?InsertResult.CreateErroResult("Missing data") : data.Apply(ToStream(), context);