mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* Makefile : added -r:System.Data. * t45.cs, t45.exe.expected : test for bug #323708. svn path=/trunk/mcs/; revision=89702
19 lines
331 B
C#
19 lines
331 B
C#
using System;
|
|
using System.Data;
|
|
using System.Data.Common;
|
|
|
|
public class Test
|
|
{
|
|
static void Main ()
|
|
{
|
|
DataTable dt = DbProviderFactories.GetFactoryClasses ();
|
|
foreach (DataRow row in dt.Rows) {
|
|
string name = row ["Name"] as string;
|
|
if (name.IndexOf ("Odbc") >= 0)
|
|
Console.WriteLine ("Provider=" + name);
|
|
}
|
|
}
|
|
}
|
|
|
|
|