これが私がやりたいことです
クラスがあります
class A {}
別のクラスに関数があります
class B
{
int count(object obj)
{
conn.table<T>..... //what I want is conn.table<A>, how to do with obj as object passed to the function
}
}
これが私がカウントを呼び出す方法です
B b = new B();
b.Count(a); // where a is the object of class A
カウント関数でクラス名を渡したいのですが、そうするとobj.getType()
エラーが発生します。