Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 private SetResult SetImplStrategy(ISet data, XlsxInput context)
 => data == null?SetResult.CreateErroResult("Missing data") : data.Apply(ToStream(), context);
Exemplo n.º 3
0
 private InsertResult InsertImplStrategy(IInsert data, XlsxInput context)
 => data == null?InsertResult.CreateErroResult("Missing data") : data.Apply(ToStream(), context);