Class DataSourceCsv
Inheritance
DataSourceCsv
Assembly: DotNetHelper.Serialization.Csv.dll
Syntax
public class DataSourceCsv : ICsvSerializer
Constructors
|
Improve this Doc
View Source
DataSourceCsv(CsvConfiguration)
Declaration
public DataSourceCsv(CsvConfiguration configuration = null)
Parameters
| Type |
Name |
Description |
| CsvHelper.Configuration.CsvConfiguration |
configuration |
The configuration.
|
Properties
|
Improve this Doc
View Source
Configuration
Gets the CSV configuration.
Declaration
public CsvConfiguration Configuration { get; }
Property Value
| Type |
Description |
| CsvHelper.Configuration.CsvConfiguration |
The CSV configuration.
|
Methods
|
Improve this Doc
View Source
Deserialize(Stream, Int32, Boolean)
Declaration
public dynamic Deserialize(Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
Parameters
Returns
|
Improve this Doc
View Source
Deserialize(Stream, Type, Int32, Boolean)
Declaration
public object Deserialize(Stream stream, Type type, int bufferSize = 1024, bool leaveStreamOpen = false)
Parameters
Returns
|
Improve this Doc
View Source
Deserialize(String)
Declaration
public dynamic Deserialize(string csv)
Parameters
| Type |
Name |
Description |
| String |
csv |
|
Returns
|
Improve this Doc
View Source
Deserialize(String, Type)
Declaration
public object Deserialize(string csv, Type type)
Parameters
Returns
|
Improve this Doc
View Source
Deserialize<T>(Stream, Int32, Boolean)
Declaration
public T Deserialize<T>(Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Deserialize<T>(String)
Declaration
public T Deserialize<T>(string csv)
where T : class
Parameters
| Type |
Name |
Description |
| String |
csv |
|
Returns
Type Parameters
|
Improve this Doc
View Source
DeserializeToList(Stream, Int32, Boolean)
Declaration
public List<dynamic> DeserializeToList(Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
Parameters
Returns
|
Improve this Doc
View Source
DeserializeToList(Stream, Type, Int32, Boolean)
Declaration
public List<object> DeserializeToList(Stream stream, Type type, int bufferSize = 1024, bool leaveStreamOpen = false)
Parameters
Returns
|
Improve this Doc
View Source
DeserializeToList(String)
Declaration
public List<dynamic> DeserializeToList(string csv)
Parameters
| Type |
Name |
Description |
| String |
csv |
|
Returns
|
Improve this Doc
View Source
DeserializeToList(String, Type)
Declaration
public List<object> DeserializeToList(string csv, Type type)
Parameters
Returns
|
Improve this Doc
View Source
DeserializeToList<T>(Stream, Int32, Boolean)
Declaration
public List<T> DeserializeToList<T>(Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
DeserializeToList<T>(String)
Declaration
public List<T> DeserializeToList<T>(string csv)
where T : class
Parameters
| Type |
Name |
Description |
| String |
csv |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeListToStream<T>(IEnumerable<T>, Int32)
Declaration
public Stream SerializeListToStream<T>(IEnumerable<T> objs, int bufferSize = 1024)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeListToStream<T>(IEnumerable<T>, Stream, Int32, Boolean)
Declaration
public void SerializeListToStream<T>(IEnumerable<T> objs, Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
where T : class
Parameters
Type Parameters
|
Improve this Doc
View Source
SerializeListToStreamAsync<T>(IEnumerable<T>, Int32)
Declaration
public Task<Stream> SerializeListToStreamAsync<T>(IEnumerable<T> objs, int bufferSize = 1024)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeListToStreamAsync<T>(IEnumerable<T>, Stream, Int32, Boolean)
Declaration
public Task SerializeListToStreamAsync<T>(IEnumerable<T> objs, Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeListToString<T>(IEnumerable<T>)
Declaration
public string SerializeListToString<T>(IEnumerable<T> obj)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeListToStringAsync<T>(IEnumerable<T>)
Declaration
public Task<string> SerializeListToStringAsync<T>(IEnumerable<T> obj)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeToStream(Object, Type, Int32)
Declaration
public Stream SerializeToStream(object obj, Type type, int bufferSize = 1024)
Parameters
Returns
|
Improve this Doc
View Source
SerializeToStream(Object, Type, Stream, Int32, Boolean)
Declaration
public void SerializeToStream(object obj, Type type, Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
Parameters
|
Improve this Doc
View Source
SerializeToStream<T>(T, Int32)
Declaration
public Stream SerializeToStream<T>(T obj, int bufferSize = 1024)
where T : class
Parameters
| Type |
Name |
Description |
| T |
obj |
|
| Int32 |
bufferSize |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeToStream<T>(T, Stream, Int32, Boolean)
Declaration
public void SerializeToStream<T>(T obj, Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
where T : class
Parameters
Type Parameters
|
Improve this Doc
View Source
SerializeToStreamAsync(Object, Type, Int32)
Declaration
public Task<Stream> SerializeToStreamAsync(object obj, Type type, int bufferSize = 1024)
Parameters
Returns
|
Improve this Doc
View Source
SerializeToStreamAsync(Object, Type, Stream, Int32, Boolean)
Declaration
public Task SerializeToStreamAsync(object obj, Type type, Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
Parameters
Returns
|
Improve this Doc
View Source
SerializeToStreamAsync<T>(T, Int32)
Declaration
public Task<Stream> SerializeToStreamAsync<T>(T obj, int bufferSize = 1024)
where T : class
Parameters
| Type |
Name |
Description |
| T |
obj |
|
| Int32 |
bufferSize |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeToStreamAsync<T>(T, Stream, Int32, Boolean)
Declaration
public Task SerializeToStreamAsync<T>(T obj, Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false)
where T : class
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeToString(Object)
Declaration
public string SerializeToString(object obj)
Parameters
| Type |
Name |
Description |
| Object |
obj |
|
Returns
|
Improve this Doc
View Source
SerializeToStringAsync(Object)
Declaration
public Task<string> SerializeToStringAsync(object obj)
Parameters
| Type |
Name |
Description |
| Object |
obj |
|
Returns
Implements