Exemple #1
0
 internal DbfTableParametersReadOnly(DbfTableParameters parameters)
 {
     encoding        = parameters.encoding;
     openMemo        = parameters.openMemo;
     strictHeader    = parameters.strictHeader;
     tableType       = parameters.tableType;
     memoType        = parameters.memoType;
     indexType       = parameters.indexType;
     memoTerminators = parameters.memoTerminators;
     openMode        = parameters.openMode;
 }
Exemple #2
0
        public DbfTableParameters(DbfTableOpenMode?openmode = null, Encoding encoding     = null, bool?openMemo           = null, StrictHeader?strictHeader = null,
                                  DbfTableType?tableType    = null, MemoFileType?memoType = null, IndexFileType?indexType = null)
        {
            _encoding        = null;
            _openMemo        = false;
            _strictHeader    = 0;
            _tableType       = 0;
            _memoType        = 0;
            _indexType       = 0;
            _memoTerminators = 0;
            _openMode        = 0;

            //

            this.encoding     = encoding;                                       // null value mean "ReadDbfHeader_Encoding(_header.codepageCode)" will work
            this.openMemo     = openMemo ?? defaultOpenMemo;
            this.strictHeader = strictHeader ?? defaultStrictHeader;
            this.tableType    = tableType ?? defaultTableType;
            this.memoType     = memoType ?? defaultMemoType;
            this.indexType    = indexType ?? defaultIndexType;

            this.memoTerminators = defaultMemoTerminators;
            this.openMode        = openmode ?? defaultOpenMode;
        }