public static Interface BuildFromInterfaceConf(InterfaceConfiguration interfaceConf) { validate(interfaceConf.RuntimeInfo.InterfaceType); Interface intr = new Interface(); intr.Name = interfaceConf.Name; intr.Description = interfaceConf.Description; createMethods(intr, interfaceConf.RuntimeInfo.InterfaceType); return intr; }
public void AddInterfaceConfig(string name, string description, Type interfaceType, Type classType) { InterfaceConfiguration iconf = new InterfaceConfiguration(name, description, new RuntimeInfo(interfaceType, classType)); InterfaceConfigs.Add(iconf); }