c#
happy664618843
这个作者很懒,什么都没留下…
展开
-
C#修饰符
修饰符(C# 参考)<!-- Content type: Devdiv1. Transform: orcas2mtps.xslt. --> 更新:2007 年 11 月修饰符用于修改类型和类型成员的声明。本节介绍 C# 修饰符:修饰符用途访问修饰符public转载 2010-01-31 14:38:00 · 451 阅读 · 0 评论 -
MongoDB windows系统安装
1:安装windows补丁(Windows7系统)http://thehotfixshare.net/board/index.php?autocom=downloads&req=download&code=confirm_download&id=14990 2:下载mongodbhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_6原创 2015-11-12 18:31:25 · 438 阅读 · 0 评论 -
asp.net 读取Excel数据并将数据插入到数据库中
#region 获取数据集 public DataSet GetDataSet(string filePath) { //2010以前版本连接字符串 //string Connstr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" + f原创 2013-05-27 13:39:37 · 5769 阅读 · 0 评论 -
xml序列化
//根节点 humanResoure [XmlRoot("humanResource")] public class HumanResource { #region private data private int m_record = 0; //根节点 HumanR转载 2012-03-19 19:45:41 · 1040 阅读 · 0 评论 -
自定义属性
//创建用户自定义属性 [System.AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)] //用户自定义属性继承System.Attribute public class Author : System.Attrib原创 2010-03-09 12:05:00 · 504 阅读 · 0 评论 -
类名做为变
object CreateObject(Type t) { return System.Activator.CreateInstance(t); } protected void Page_Load(object sender, EventArgs e) { object o = CreateObject(typeof(Int转载 2010-03-02 13:13:00 · 443 阅读 · 0 评论 -
C#里面中将字符串转为变量名
string str = "spp"; public string spp = "very good"; public Form1() { InitializeComponent(); MessageBox.Show(this.GetType().GetField(str).GetValu转载 2010-03-02 13:04:00 · 3814 阅读 · 0 评论 -
序列化通用方法
//序列化 public static bool Serialize(string file, T obj) { using (Stream stream = new FileStream(file, FileMode.Create, FileAccess.Write)) { IFormatter formater原创 2010-02-28 16:58:00 · 436 阅读 · 0 评论 -
C#基础
// 迭代语句 // do while in foreach //方法参数 // ref out params //引用类型 class deletegagte object string Interface //值类型 常用类型 int double float //命名空间 names原创 2010-01-31 17:31:00 · 371 阅读 · 0 评论 -
DataTable作为数据源导出Excel
#region DataTable生成Excel /// /// DataTable生成Excel /// /// DataTable /// 文件名 /// 返回文件名(包含扩展名) public static string ExportToExcel(DataTable dtLi原创 2016-11-24 15:33:21 · 3591 阅读 · 0 评论