public T CreateObj<T>(string className) where T:class { Type type = Type.GetType(className); return Activator.CreateInstance(type) as T; }