I have boil it down to a simple example:
using System;
using System.Data;
class MyProgram
{
void DoStuff(DbType t)
{
}
public MyProgram()
{
DoStuff(SqlDbType.Int);
}
}
class Program
{
public static void Main(string[] args)
{
MyProgram p = new MyProgram();
}
}
Why do I have to call it this way?
DoStuff((DbType)SqlDbType.Int);
Is it simply because they are just two enumerators and there's something behind the scenes linking them together?
cheers, Alex