private void AddToSuperClass(Class c) { if (SystemType == null) { systemType = Type.GetType(this.FullName + ", " + this.AssemblyName); } Class baseClass = Parent.FindClass(SystemType.BaseType.FullName); if (baseClass != null) { baseClass.AddSubClass(c); } foreach (Type i in SystemType.GetInterfaces()) { Class interfaceClass = Parent.FindClass(i.FullName); if (interfaceClass != null) { interfaceClass.AddSubClass(c); } } }