49ac8624 71d4 6b02 6855 8e7d02d4d4e8 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvContainerExtension.Serialize Method (CsvContainer, CsvSettings)

Serializes the content of provided CsvContainer into a string using provided settings.

Namespace: Plexdata.CsvParser.Extensions
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public static string Serialize(
	this CsvContainer container,
	CsvSettings settings
)

Parameters

 

container
Type: Plexdata.CsvParser.Processors.CsvContainer
The container to be serialized.
settings
Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used.

Return Value

Type: String
A string representing the content of provided container. The result string might be empty, for example if container is null or empty or in case of settings is null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CsvContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

 

Exception Condition
Exception Any other exception that might be thrown by Write(CsvContainer, Stream, CsvSettings).

Remarks

This extension method serializes the content of provided container into a string using provided settings.

See Also

Reference

CsvContainerExtension Class
Serialize Overload
Plexdata.CsvParser.Extensions Namespace
CsvContainerExtension.Serialize(CsvContainer)
CsvWriter.Write(CsvContainer, Stream, CsvSettings)

⚠️ **GitHub.com Fallback** ⚠️