예제 #1
0
 public static void LoadData(IProblemInstanceProvider provider, IDataDescriptor descriptor, IProblemInstanceConsumer consumer) {
   ((dynamic)consumer).Load(((dynamic)provider).LoadData(descriptor));
 }
예제 #2
0
 protected bool CheckForIProblemInstanceExporter(IProblemInstanceConsumer content)
 {
     return(Content.GetType().GetInterfaces()
            .Any(x => x == typeof(IProblemInstanceExporter)));
 }
예제 #3
0
 public static void LoadData(IProblemInstanceProvider provider, IDataDescriptor descriptor, IProblemInstanceConsumer consumer)
 {
     ((dynamic)consumer).Load(((dynamic)provider).LoadData(descriptor));
 }
예제 #4
0
 protected bool CheckForIProblemInstanceExporter(IProblemInstanceConsumer content) {
   return Content.GetType().GetInterfaces()
                 .Any(x => x == typeof(IProblemInstanceExporter));
 }