Пример #1
0
        private void Text_Click(object sender, EventArgs e)
        {
            //Form1 form = new Form1();
            //form.Show();
            Common.Entity.Brand brand = new Common.Entity.Brand();

            Type   type        = typeof(Common.Entity.Brand);
            string name        = type.Name;         //获取当前成员的名称
            string fullName    = type.FullName;     //获取类的全部名称不包括程序集
            string nameSpace   = type.Namespace;    //获取该类的命名空间
            var    assembly    = type.Assembly;     //获取该类的程序集名
            var    module      = type.Module;       //获取该类型的模块名
            var    memberInfos = type.GetMembers(); //得到所有公共成员

            string name1 = Tool.analysisFieldName("brand_id");
            string name2 = Tool.analysisFieldName("hello_ni_hao");

            object o = Enum.Parse(typeof(BrandState), "1");

            string code = CodePrefixConstant.getBrandCode();
        }
Пример #2
0
 private void initData()
 {
     brandCode.Text = CodePrefixConstant.getBrandCode();
     radioButton1.Select();
 }