Class CsvReader
Simple implementation of reading a CSV file.
Inheritance
System.Object
CsvReader
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Assets.Import
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class CsvReader
Remarks
Known limitations: does not handle commas in values, even if values are quoted.
Constructors
CsvReader(String)
Initializes a new instance of the CsvReader class.
Declaration
public CsvReader(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | The path to the CSV file. |
Properties
TotalEntries
Gets the total entries in the file.
Declaration
public int TotalEntries { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Entries()
Gets the product/asset mappings read from the file.
Declaration
public IEnumerable<AssetMapping> Entries()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<AssetMapping> | An IEnumerable of MappingEntry containing the information from the CSV file. |