CSV.Serialize<T> (IEnumerable<T>, CSVSettings) Method

/// Serialize an array of objects to CSV format ///
Public Shared Function Serialize(Of  _ 
T As {Class, New})( _ 
ByVal list As IEnumerable(Of T), _ 
Optional ByVal settings As CSVSettings = null _ 
) As String
This language is not supported or no code example is available.
public static string Serialize<T>( 
IEnumerable<T> list
CSVSettings settings = null 

where T : class, new()
This language is not supported or no code example is available.
generic<typename T> 
where T : ref class, gcnew() 
public:  
static String^ Serialize( 
IEnumerable<T^>^ list
CSVSettings^ settings 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Type Parameters

T

The type of objects to serialize from this CSV

Parameters

list
IEnumerable<T>

The array of objects to serialize

settings
CSVSettings

The CSV settings to use when exporting this array (Default: CSV)

Return Value

string

The completed CSV string representing one line per element in list

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition