Show / Hide Table of Contents

Class CsvSerializer

Inheritance
object
CsvSerializer
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Serialization
Assembly: PayrollEngine.Core.dll
Syntax
public static class CsvSerializer

Methods

FromFile(string, Encoding, bool, char)

Declaration
public static IEnumerable<IList<string>> FromFile(string fileName, Encoding encoding = null, bool ignoreFirstLine = false, char columnSeparator = ',')
Parameters
Type Name Description
string fileName
Encoding encoding
bool ignoreFirstLine
char columnSeparator
Returns
Type Description
IEnumerable<IList<string>>

FromReader(TextReader, bool, char)

Declaration
public static IEnumerable<IList<string>> FromReader(TextReader reader, bool ignoreFirstLine = false, char columnSeparator = ',')
Parameters
Type Name Description
TextReader reader
bool ignoreFirstLine
char columnSeparator
Returns
Type Description
IEnumerable<IList<string>>

FromStream(Stream, bool, char)

Declaration
public static IEnumerable<IList<string>> FromStream(Stream stream, bool ignoreFirstLine = false, char columnSeparator = ',')
Parameters
Type Name Description
Stream stream
bool ignoreFirstLine
char columnSeparator
Returns
Type Description
IEnumerable<IList<string>>

ToFile(string, IEnumerable<IList<string>>, Encoding, char)

Declaration
public static void ToFile(string fileName, IEnumerable<IList<string>> rows, Encoding encoding = null, char columnSeparator = ',')
Parameters
Type Name Description
string fileName
IEnumerable<IList<string>> rows
Encoding encoding
char columnSeparator
☀
☾
Back to top Generated by DocFX