相关分类: Java技术 C/C++ VB delphi
  • C#中this的作用

    一、C# this指针的几种用法 1、限定被相似的名称隐藏的成员 C# 代码 复制 public class ThisName { public string name = "张三"; public int num = 55; public ThisName() { } public void GetThisName(string name, int num) { name = this.name;//调取全局变量name...

    2018-06-18 03:07:50

  • net2.0实现net3.5特性,如扩展方法,Linq等

    差不多两年没碰net了,今天想做个小工具,于是打开了久违的VS2012,由于客户终端还是winxp时代,而且是net2.0,且升级存在限制,因此必需在2.0下开发,之前的常用库是3.5写的,而且因为3.5的扩展,linq等非常快速便捷,因此写起2.0来很别扭,网上查了查,居然找到一个...

    2018-06-18 03:07:49

  • DataSet转化为实体集合类

    1 /// summary 2 /// DataSet转换为实体类 3 /// /summary 4 /// typeparam name="T" 实体类 /typeparam 5 /// param name="p_DataSet" DataSet /param 6 /// param name="p_TableIndex" 待转换数据表索引 /param 7 /// returns 实体类 /returns 8 public static T Dat...

    2018-06-18 03:07:46

  • 转载:.NET Memory Leak: XmlSerializing your way to

    原文地址:http://blogs.msdn.com/b/tess/archive/2006/02/15/532804.aspx I hate to give away the resolution in the title of the blog since it takes away a lot of the suspense:) but I can't figure out a better way to name the blog posts and still keep t...

    2018-06-18 03:07:44

  • C#基础---Attribute(标签) 和 reflect(反射) 应用

    1.Attribute的定义与作用: 公共语言运行时允许你添加类似关键字的描述声明,叫做attributes, 它对程序中的元素进行标注,如类型、字段、方法和属性等。Attributes和Microsoft . NET Framework文件的元数据保存在一起,可以用来向运行时描述你的代码,或者在程序运行的...

    2018-06-18 03:07:39

  • Investigating issues with Unmanaged Memory. First

    原文:http://kate-butenko.blogspot.tw/2012/07/investigating-issues-with-unmanaged.html I want to write this blogpost really fast, until I forget everything, despite I have absolutely no time and need to work on other cases :( Let's count this as par...

    2018-06-18 03:07:39

  • 怎样删除windows.old文件

    方法1: 1.在C盘上点右键,选择属性。 2.在常规选项卡中点击磁盘清理 3.稍等片刻再弹出的选项卡中点击清理系统文件 4.选中以前Windows的安装 5.点击确定即可安全清理 方法二: WIN7中的windows.old文件怎么删除! 1、在 开始搜索 框中键入 cmd , 右键单击在 程序 列表...

    2018-06-18 03:07:31

  • 简单的反射

    想起来研究下简单的反射,然后就在网上找了点资料,也找了点代码,大致如下: public static void PrintPropertiesT (T t) { if (t == null ) { return ; } PropertyInfo[] properties = t.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public); if...

    2018-06-18 03:07:16

  • 如何提高代码可读性

    一、要提高的代码的可读性,可以从以下几方面努力 1、清晰地表达意图 2、好的变量、方法、类名 3、一个变量、类、方法只做一件事 4、同一个方法体内,保持相同的抽象层次 5、一致的缩进,一致的格式 6、不要重复自己(避免手动的复制与粘贴代码) 7、减少语法噪音 8、...

    2018-06-18 03:07:19 c编程

  • C#中使用ADOMD.NET查询多维数据集

    ADOMD.NET 是用于与 Microsoft SQL Server Analysis Services 进行通信的 Microsoft .NET Framework 数据访问接口。 ADOMD.NET 可使用 XML for Analysis 协议与分析数据源通信,方法为使用 TCP/IP 或 HTTP 连接传输和接收符合 XML for Analysis 规范的 SOAP 请求和响应...

    2018-06-18 03:07:20 microsoft sql server

2