![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 87
华溪程序员
这个作者很懒,什么都没留下…
展开
-
通过系统DLL读写INI
#region 为INI文件中指定的节点取得字符串 /// /// 为INI文件中指定的节点取得字符串 /// /// 欲在其中查找关键字的节点名称 /// 欲获取的项名 /// 指定的项没有找到时返回的默认值 /// 指定一个字串缓冲区,长度至少为n原创 2014-01-27 11:58:08 · 832 阅读 · 0 评论 -
自定义服务器控件效果
原创 2014-05-27 09:19:09 · 371 阅读 · 0 评论 -
MVC访问Oracle数据库示例
1.说明 应用OracleClient访问Oracle数据库,采用原创 2014-05-26 18:27:19 · 2841 阅读 · 0 评论 -
添加中英文日志
原创 2014-06-19 14:17:07 · 713 阅读 · 0 评论 -
两点画圆
float cx = StartPointF.X + (e.X - StartPointF.X) / 2; float cy = StartPointF.Y + (e.Y - StartPointF.Y) / 2; float r = (float)Math.Sqrt(Math.Po原创 2014-08-04 14:03:47 · 605 阅读 · 0 评论 -
Hashtable和Dictionary区别
转载地址: 1:多线程程序中推荐使用 Hashtable, 默认的 Hashtable 允许单线程写入, 多线程读取, 对 Hashtable 进一步调用 Synchronized() 方法可以获得完全线程安全的类型. 而 Dictionary 非线程安全, 必须人为使用 lock 语句进行保护, 效率大减.2:单线程程序中推荐使用 Dictionary, 有泛型优势, 且读取速度转载 2014-09-23 09:12:26 · 402 阅读 · 0 评论 -
带缩放和移动的图片显示类
//----------------------------------------------------------------------------// Copyright (C) 2004-2013 by EMGU. All rights reserved. //------------------------------------------------原创 2014-08-14 07:13:23 · 599 阅读 · 0 评论 -
.net,C#,Ftp各种操作,上传,下载,删除文件,创建目录,删除目录,获得文件列表等
转载:http://blog.csdn.net/feng2375/article/details/1923163 .net,C#,Ftp各种操作,上传,下载,删除文件,创建目录,删除目录,获得文件列表等using System;using System.Collections.Generic;using System.Text;using System.Ne转载 2014-09-02 12:33:39 · 496 阅读 · 0 评论 -
用VS2010中的wsdl外部工具生成web service代理类
wsdl /l:cs /out:c:/RealTimeService.cs http://localhost:5555/AQMReportsAspx/RealTimeData.asmx?wsdl原创 2018-05-19 16:12:53 · 682 阅读 · 0 评论 -
“无法加载一个或多个请求的类型。有关更多信息,请检索 LoaderExceptions 属性 “之解决
原地址:http://www.cnblogs.com/zeroone/p/3639561.html“无法加载一个或多个请求的类型。有关更多信息,请检索 LoaderExceptions 属性 “之解决今天在学习插件系统设计的时候遇到一个问题:“System.Reflection.ReflectionTypeLoadException: 无法加载一个或多个请求的类型。转载 2015-05-06 23:33:18 · 2083 阅读 · 1 评论 -
在图片添加旋转的水印文字
/// /// 在图片添加旋转的水印文字 /// /// 文件路径 /// 源图片名称 /// 目标图片名称 /// 水印文字内容 /// 水印文字字体大小 /// 水印文字透明度 /// 水印文字颜色 /// 旋转角度 /// 返回目标图片全路径 public string原创 2014-04-23 17:32:52 · 1479 阅读 · 0 评论 -
把js文件嵌入cs文件所在的dll
1.cs文件代码using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.ComponentModel;using System.Da原创 2014-04-22 16:28:08 · 421 阅读 · 0 评论 -
多次写文字到图片上的水印效果
/// /// 在图片上添加水印文字 /// /// 源图片文件 /// 需要添加到图片上的文字 /// 字体大小 /// 文字离左边的距离 /// 文字离上边的距离 /// 透明度 /// 文字颜色 /// 文件路径 /// 是否保存 /// 保存文件名称 ///原创 2014-04-23 10:36:30 · 499 阅读 · 0 评论 -
加快小型循环体的速度
转载:http://msdn.microsoft.com/zh-cn/library/dd560853(v=vs.110).aspx private void btnTplFor_Click(object sender, EventArgs e) { // Source must be array or IList. var sour转载 2014-01-27 14:52:31 · 472 阅读 · 0 评论 -
Ping的用法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.NetworkInformation;using System.Globalization;namespace PingClient{ public class P原创 2014-01-29 12:04:56 · 656 阅读 · 0 评论 -
生成二维码--支持中文,web和winform均可调用
using System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.IO;using ThoughtWorks.QRCode.Codec;using ThoughtWorks.QRCode.Codec.Data;using System.Tex原创 2014-01-29 16:00:15 · 852 阅读 · 0 评论 -
等待一个或多个任务完成--NET并行
原文地址:http://msdn.microsoft.com/zh-cn/library/dd537610(v=vs.110).aspx using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System转载 2014-01-20 11:36:11 · 1224 阅读 · 0 评论 -
WCF简单三层框架
1.总体预览2.WCF.Contract层类IArea:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using System.Data;using Model;namespace WC原创 2014-02-08 16:02:10 · 1219 阅读 · 0 评论 -
图片水印
转载地址:http://blog.csdn.net/wonsoft/article/details/4136711 /* * Class:WaterImage * Use for add a water Image to the picture both words and image * 2007.07.23 create the file * * http://转载 2014-02-08 17:34:04 · 546 阅读 · 0 评论 -
DataTable转List
稍加改动: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Collections;using System.Reflection;namespace Common{ pu转载 2014-02-08 15:19:36 · 476 阅读 · 0 评论 -
对象和集合与Json之间的转换,DataTable和DataSet转换为Json
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Collections;using System.Reflection;namespace Common{ public class原创 2014-02-11 15:55:24 · 634 阅读 · 0 评论 -
简单Remoting例子
参考MSDN给出的例子 包含Remoting两种协议(tcp,http)的代码,其中在RemoteObject类添加数据访问的代码,则可实现NET Framwork间的简单分布式数据库程序。 1.服务端:using System;using System.Collections.Generic;using System.Linq;using System.原创 2014-02-11 16:21:41 · 643 阅读 · 0 评论 -
序列化和反序列化方法
#region 序列化和反序列化 /// /// 反序列化方法 /// /// 反序列化对象类型 /// 反序列化字符串或者xml文件路径 /// public static T Desrialize(string xml)原创 2014-02-14 17:09:56 · 438 阅读 · 0 评论 -
详细设计文档
原地址:http://blog.csdn.net/vbloveshllm/article/details/22284669如何写详细设计文档是一个很头疼的话题,简单的说是需求文档的升华,也可以说是开发人员开发程序的依据,当然根据详细设计文档的粒度进行。好的详细设计文档是需求人员和开发人员之间的桥梁,不过目前好多程序开发都是先开发后,然后为了应付审核,公司制度,文档规范,开发完成后后续补转载 2015-05-20 23:47:48 · 687 阅读 · 0 评论