public bool CanCreateIOContainer(IOBuildContext context) { if (!FIORegistry.CanCreate(context)) { var type = context.IOType; if (type.IsGenericType) { var openGenericType = type.GetGenericTypeDefinition(); return(FIORegistry.CanCreate(context.ReplaceIOType(openGenericType))); } return(false); } return(true); }
public bool CanCreate(IOBuildContext context) { if (FCanCreate(context)) { return(true); } return(FRegistry.CanCreate(context)); }