static public void Init1() { XClass.TClasses = new List <XClass> (); tl = new List <Type> (); string myAssembly = Assembly.GetExecutingAssembly().GetName().Name; foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) { if ( a.FullName.Contains(myAssembly) || a.FullName.Contains("Presentation") || a.FullName.StartsWith("WindowsBase") ) { foreach (Module m in a.GetModules()) { foreach (Type t in m.GetTypes()) { tl.Add(t); } } } } XClass.BuildXClass("DependencyObject", tl); return; }
XClass InitXClass(List <Type> tl, Type t) { XClass x; if (t.BaseType != null) { x = InitXClass(tl, t.BaseType); if (x != null) { return(x); } } x = XClass.BuildXClass(t.Name, tl); return(x); }
internal void InitXClass(List <Type> tl) { Type t = null; t = pi.PropertyType; if (t != null) { XClass x = XClass.FindFullName(t.FullName); if (x == null) { InitXClass(tl, t); x = XClass.FindFullName(t.FullName); if (x == null) { x = XClass.BuildXClass(t.Name, tl); } } } }