Namespace: System.Extensions.DataAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
public static void WriteCsv(
this DataTable table,
TextWriter writer,
bool hasHeader
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Sub WriteCsv (
table As DataTable,
writer As TextWriter,
hasHeader As Boolean
) |
Visual C++ |
---|
public:
[ExtensionAttribute]
static void WriteCsv(
DataTable^ table,
TextWriter^ writer,
bool hasHeader
) |
F# |
---|
static member WriteCsv :
table : DataTable *
writer : TextWriter *
hasHeader : bool -> unit
|
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataTable. 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).
See Also