Class CSVParser
Inheritance
System.Object
CSVParser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Serialization.CSV
Assembly: Azos.dll
Syntax
public static class CSVParser
Methods
ParseCSV(IEnumerable<Char>, Boolean, Boolean, Int32, Boolean, Boolean)
Declaration
public static IEnumerable<IEnumerable<string>> ParseCSV(this IEnumerable<char> stream, bool trim = false, bool skipHeader = false, int columns = -1, bool skipIfMore = false, bool addIfLess = false)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Char> | stream | |
System.Boolean | trim | |
System.Boolean | skipHeader | |
System.Int32 | columns | |
System.Boolean | skipIfMore | |
System.Boolean | addIfLess |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<System.String>> |
ParseCSVRow(IEnumerable<Char>, Boolean, Int32, Boolean, Boolean)
Declaration
public static IEnumerable<string> ParseCSVRow(this IEnumerable<char> row, bool trim = false, int columns = -1, bool skipIfMore = false, bool addIfLess = false)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Char> | row | |
System.Boolean | trim | |
System.Int32 | columns | |
System.Boolean | skipIfMore | |
System.Boolean | addIfLess |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |