Inheritance: ExternalBinding, IClass
示例#1
0
        public static void Load()
        {
            Assembly asm = Assembly.GetCallingAssembly();

            foreach (System.Type type in asm.GetTypes())
            {
                if (type.GetInterface("ILibrarySegment") != null)
                {
                    var           segment  = Activator.CreateInstance(type) as ILibrarySegment;
                    ExternalClass extClass = (segment).Load();
                    AddClass(extClass, extClass.Name);
                }
            }
        }
示例#2
0
 public static void AddClass(ExternalClass Class, string Binding)
 {
     library[Binding] = new Reference(Class);
 }
示例#3
0
 public static void AddClass(ExternalClass Class, string Binding)
 {
     library[Binding] = new Reference(Class);
 }