Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 867 Bytes
// Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods.
// Website & Documentation:
// Issues:
// License (MIT):
// More projects:
// Copyright © ZZZ Projects Inc. All rights reserved.
using System.Data;
public static partial class Extensions
/// <summary>
/// An IDataReader extension method that converts the @this to a data table.
/// </summary>
/// <param name="this">The @this to act on.</param>
/// <returns>@this as a DataTable.</returns>
public static DataTable ToDataTable(this IDataReader @this)
var dt = new DataTable();
return dt;
You can’t perform that action at this time.