摘要:
先看applicationContext.xml配置文件:在看SpringUtil类packagecom.r.dao;importorg.springframework.context.ApplicationContext;importorg.springframework.context.support.ClassPathXmlApplicationContext;publicfinalclassSpringUtil{privatestaticApplicationContextctx=newClassPathXmlApplicationContext("applicationCo 阅读全文
摘要:
Stream 和 byte[] 之间的转换一. 二进制转换成图片12345MemoryStream ms = newMemoryStream(bytes);ms.Position = 0;Image img = Image.FromStream(ms);ms.Close();this.pictureBox1.Image二. C#中byte[]与string的转换代码1.123System.Text.UnicodeEncoding converter = newSystem.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetByte. 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;//----引入必要的命名空间using System.IO;using System.Drawing.Imaging;namespace FileStreamOperator{ public partial class Form1 : Form { pub... 阅读全文
摘要:
/// /// 动态加载dll /// 反射 /// private void dynamicDll() { string dllName = "dll"; Assembly ass = Assembly.Load(dllName); //加载dll文件 dllName = dllName + "." + "frmMain"; Type[] tt= ass.GetTypes(); Type tp = ... 阅读全文
摘要:
private void dynamicDll() { string dllName = "dll"; Assembly ass = Assembly.Load(dllName); //加载dll文件 dllName = dllName + "." + "frmMain"; Type[] tt= ass.GetTypes(); Type tp = ass.GetType(dllName); //获取类名,必须 命名空间+类名 // Ob... 阅读全文
摘要:
/// /// 动态加载dll /// 反射 /// private void dynamicDll() { string dllName = "dll"; Assembly ass = Assembly.Load(dllName); //加载dll文件 dllName = dllName + "." + "frmMain"; Type[] tt= ass.GetTypes(); Type tp =... 阅读全文