public AssemblyInfo GetClassProperties(string className)
        {
            AssemblyInfo asm = new AssemblyInfo();

            asm.Name = FileName;

            Type t = PrintClass(className);

            if (t == null)
                return asm;

            ClassInfo cInfo = asm.AddClass(className);

            foreach (System.Reflection.PropertyInfo pi in t.GetProperties())
            {
                Console.WriteLine(pi.Name);

                cInfo.Properties.Add(new PropertyInfo
                {
                    Name = pi.Name,
                    TypeName = GetTypeAsString(pi.PropertyType),
                    IsSerializable = pi.PropertyType.IsDefined(typeof(SerializableAttribute), false)
                });
            }

            return asm;
        }
        private void LoadTreeView(AssemblyInfo assembly)
        {
            TreeViewItem asm = new TreeViewItem();
            TreeViewItem cls = null;

            asm.Header = assembly.Name;

            foreach(ClassInfo ci in assembly.Classes)
            {
                cls = new TreeViewItem();
                cls.Header = ci.FullName;

                foreach(PropertyInfo pi in ci.Properties)
                    cls.Items.Add(MakeOption(pi));

                asm.Items.Add(cls);
            }

            tvAssebliesAndClasses.Items.Add(asm);
        }