public class Factory{public B Get(){}}声明Facotry是泛型
或者返回
A<object>
GetA后面也要写一个
A<T> GetA<T>(string Type) { }
另外,你还可以这么写
A<T> GetA<T>() where T : new() { return new T(); }