CSVSerializer.Net
1.1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CSVSerializer.Net --version 1.1.0.1
NuGet\Install-Package CSVSerializer.Net -Version 1.1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CSVSerializer.Net" Version="1.1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSVSerializer.Net --version 1.1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSVSerializer.Net, 1.1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CSVSerializer.Net as a Cake Addin #addin nuget:?package=CSVSerializer.Net&version=1.1.0.1 // Install CSVSerializer.Net as a Cake Tool #tool nuget:?package=CSVSerializer.Net&version=1.1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Object serialization example
Here's an example of how to serialize a list of objects in C# with custom header and ordering of columns
using (MemoryStream memoryStream = new MemoryStream())
{
var mapper = new ObjectMapper<User>();
mapper.AddMap(u => u.Username, 1, "Name") // index 1 with header "name"
.AddMap(u => u.Age, 0) // index 0 with header "age"
.AddMap(u => u.Email); // index 2 with header "email"
Serializer serializer = new Serializer();
await serializer.SerializeObjects(users, memoryStream, mapper).ConfigureAwait(true);
Console.WriteLine(Encoding.UTF8.GetString(memoryStream.ToArray()));
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added support for serializing collections of objects