/// <summary> /// Creates a new instance of the <see cref="JobDefinitionColumnMap"/> class using the given arguments. /// </summary> /// <param name="jobDefinition">The job definition that owns the new column mapping.</param> /// <param name="cvsColumnIndex">The index of the column in the CSV file.</param> /// <param name="mappingType">The mapping type.</param> /// <param name="attributeIndex">The index of the cabinet attribute.</param> /// <returns>The new job definition column map instance.</returns> public static JobDefinitionColumnMap Create(JobDefinition jobDefinition, int cvsColumnIndex, JobDefinitionMappingType mappingType, int?attributeIndex = null) { return(new JobDefinitionColumnMap { JobDefinition = jobDefinition, CSVColumnIndex = cvsColumnIndex, MappingType = mappingType, AttributeIndex = attributeIndex }); }
/// <summary> /// Creates a new instance of the <see cref="JobDefinitionColumnMap"/> class using the given arguments. /// </summary> /// <param name="cvsColumnIndex">The index of the column in the CSV file.</param> /// <param name="mappingType">The mapping type.</param> /// <param name="attributeIndex">The index of the cabinet attribute.</param> /// <returns>The new job definition column map instance.</returns> public static JobDefinitionColumnMap Create(int cvsColumnIndex, JobDefinitionMappingType mappingType, int?attributeIndex = null) { return(Create(null, cvsColumnIndex, mappingType, attributeIndex)); }