110,533
社区成员
发帖
与我相关
我的任务
分享
public void SetParameter(string name, object value, SqlDbType dbType){...}//函数1
public void SetParameter(string name, ParameterDirection pd, SqlDbType dbType){...}//函数2
db.SetParameter("@startDate", 20091201, SqlDbType.BigInt);//此时调用的是函数1
db.SetParameter("@logonLevelID", 0, SqlDbType.Int);//此时调用的是函数2,目标是调用函数1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
namespace CSharpTest
{
enum tx { one,two,three};
class Program
{
static void Main(string[] args)
{
t1(0);
}
static void t1(object oj)
{
Console.WriteLine("object");
}
static void t1(tx oj)
{
Console.WriteLine("Enum");
}
}
}