Skip to content

Instantly share code, notes, and snippets.

View renatoeufe's full-sized avatar
🏠
Working from home

Renato E F renatoeufe

🏠
Working from home
View GitHub Profile
@renatoeufe
renatoeufe / ExtensionMethods.cs
Created May 23, 2012 19:59
Convert datatable rows into a list of XML strings
using System.Data;
namespace QueryToXml.Lib.Extensions
{
public static class ExtensionMethods
{
public static string[] ColumnNames(this DataTable dataTable)
{
var columns = new string[dataTable.Columns.Count];
for (var c = 0; c < dataTable.Columns.Count; c++)