Пример #1
0
        public AddmlFlatFileDefinition(string name,
                                       string fileName,
                                       FileInfo fileInfo,
                                       string recordSeparator,
                                       string fieldSeparator,
                                       string charset,
                                       string recordDefinitionFieldIdentifier,
                                       int?numberOfRecords,
                                       Checksum checksum,
                                       AddmlFlatFileFormat format,
                                       List <string> processes)
        {
            Name            = name;
            FileName        = fileName;
            FileInfo        = fileInfo;
            RecordSeparator = string.IsNullOrEmpty(recordSeparator) ? null : new Separator(recordSeparator);
            FieldSeparator  = string.IsNullOrEmpty(fieldSeparator) ? null : new Separator(fieldSeparator);
            Encoding        = Encodings.GetEncoding(charset);
            RecordDefinitionFieldIdentifier = recordDefinitionFieldIdentifier;
            NumberOfRecords        = numberOfRecords;
            AddmlRecordDefinitions = new List <AddmlRecordDefinition>();
            Checksum  = checksum;
            Format    = format;
            Processes = processes;

            _index = new FlatFileIndex(name);
        }
Пример #2
0
 protected bool Equals(FlatFileIndex other)
 {
     return(string.Equals(_flatFileDefinitionName, other._flatFileDefinitionName));
 }