- 博客(4)
- 收藏
- 关注
原创 C#复制可序列化的对象的泛型方法
public static class ObjectCopier { public static T Clone<T>(T source) { if (!typeof(T).IsSerializable) { ...
2019-03-25 10:26:06
363
原创 利用反射读取数据库
private void ReadRunPlan(SqlConnection con) { List<string> lsStr = new List<string>(); using (SqlCommand cmd = con.CreateCommand()) { ...
2019-03-22 13:35:55
169
原创 利用反射查看特性
Type t = typeof(Class); PropertyInfo[] f = t.GetProperties(); foreach (PropertyInfo item in f) { IList<CustomAttributeData> ls = item.Get...
2019-03-21 10:58:49
188
转载 解决win10 开始菜单不能左键点击的问题
Open the Task manager. Here’s a tip: Press CTRL+Shift+ESC. Click File > Run New Task. Make sure you have a check mark beside “Create this task with administrative privileges”. T...
2019-03-19 09:28:05
5369
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人