Exemple #1
0
        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;
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
                    }
                }
            }
        }