Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public bool CanCreate(IOBuildContext context)
 {
     if (FCanCreate(context))
     {
         return(true);
     }
     return(FRegistry.CanCreate(context));
 }