如果 IsValueCreated ,我想使用反射调用_baseInfoService的 close 方法。我怎么能用反射来做呢?
public static partial class ServiceFactory
{
private static readonly Lazy<ServiceWrapper<IBaseInfoWcfService>> _baseInfoService =
new Lazy<ServiceWrapper<IBaseInfoWcfService>>(CreateWrapper<IBaseInfoWcfService>);
public static IBaseInfoWcfService BaseInfoService => _baseInfoService.Value.Instance;
}
答案 0 :(得分:0)
select