Example #1
0
        public static bool Implement(Type rType, IInterfaceFactory rFactory)
        {
            if (!rType.IsInterface)
            {
                return(false);
            }

            Factory[rType] = rFactory;
            return(true);
        }
Example #2
0
 public static bool Implement <T>(IInterfaceFactory rFactory)
     where T : IInterface
 {
     return(Implement(typeof(T), rFactory));
 }