public CsvExtendedInfoStorageItem(CsvExtendedInfoStorage storage, string fileName)
            {
                if (fileName.IsEmpty())
                {
                    throw new ArgumentNullException(nameof(fileName));
                }

                _storage  = storage ?? throw new ArgumentNullException(nameof(storage));
                _fileName = fileName;
            }
예제 #2
0
            public CsvExtendedInfoStorageItem(CsvExtendedInfoStorage storage, string fileName, Tuple <string, Type>[] fields)
                : this(storage, fileName)
            {
                if (fields == null)
                {
                    throw new ArgumentNullException(nameof(fields));
                }

                if (fields.IsEmpty())
                {
                    throw new ArgumentOutOfRangeException(nameof(fields));
                }

                _fields = fields;
            }