Ejemplo n.º 1
0
        private bool CreateFile(string fullpath)
        {
            var    filepath   = fullpath;
            string objcontent = ThisObj.Serialize();

            _inOutBinaryService
            .StreamWriterEx
            .WriteStream(filepath)
            .Write(objcontent)
            .Close()
            .Dispose();

            return(true);
        }
Ejemplo n.º 2
0
        public void Save(T value)
        {
            RemoveCache();

            var    filepath   = FullPath();
            string objcontent = ThisObj.Serialize();

            _inOutBinaryService
            .StreamWriterEx
            .WriteStream(filepath)
            .Write(objcontent)
            .Close()
            .Dispose();

            ThisObj = GetCache();
        }