随笔分类 -  C#

摘要:按输入修改工程中相应文件名to be continue ...Referencehttp://www.cnblogs.com/anderslly/archive/2009/01/18/vs2008-templates.html 阅读全文
posted @ 2012-06-12 17:00 BlueGlass 阅读(264) 评论(0) 推荐(0)
摘要:在实现了一个自定义控件后,如果希望在VS的界面编辑器中能对其进行操作,则必须对其添加Designer以及相应的属性:[Designer(typeof(MyDesigner))][DesignTimeVisible(true)]public partial class UserControl1 : UserControl{ …… [Browsable(false)] //在控件的属性设置列表中不可见 [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] ... 阅读全文
posted @ 2012-06-01 10:18 BlueGlass 阅读(3277) 评论(0) 推荐(0)
摘要:使用仿射添加实现了IEncryptAlgorithm接口的类,并实例化,添加到列表中。Assembly assembly = Assembly.GetExecutingAssembly(); //获取当前执行程序集Type[] types = assembly.GetTypes(); //获取程序集中的类foreach (Type type in types){ Type typeInterface = type.GetInterface("IEncryptAlgorithm"); //如果未实现接口,返回值为null if (t... 阅读全文
posted @ 2011-09-15 09:03 BlueGlass 阅读(332) 评论(0) 推荐(0)