自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (19)
  • 收藏
  • 关注

转载 別再掉進DLL地獄的陷阱裡(DLL Hell)~.NET解決之道

Introduction DLL 陷阱是一個惡夢, 是一種相當奇怪的問題。        相信很多讀者都有這樣的經驗,如果你的軟體今天原本運作順暢,當你安裝某個新軟體之後,突然間電腦就無法運作了。這絕對不是你的硬體有問題,也不是應用程式的問題,而是作業系統設計上的缺失,這樣的問題層出不窮,這通常是因為新的應

2008-07-31 21:11:00 3244

转载 C# Enumeration 使用

1、关于enum的定义 enum Fabric { Cotton = 1, Silk = 2, Wool = 4, Rayon = 8, Other = 128 }

2008-07-31 19:04:00 2186

转载 正确实现 IDisposable 接口

前言: 之前在M$的一本工具书上看过该节内容,但慢慢地就忘记了, 在实际项目遇到类似的问题又要 google, 汗下, 于是写此篇blog作备忘录 。虽然 .net 有垃圾回收机制(GC), 可自动进行大部分的资源清理工作,但开发人员仍旧应该养成良好的通过手动调用资源清理方法来进行资源回收的习惯, 让对象实现 IDisposable 接口正是 M$ 所推荐的, 该接口的原型为:

2008-07-31 10:08:00 469

原创 结构(Struct)

这一课讲述结构的语法以及它和类的区别. U/K)S_v)c*](}.@下面给出两个例子.第一个例子给描述了怎样使用结构,第2个例子描述了当实例传递给方 sgbfQ6AB^6?法 dI7Zh9axU8S的时候,结构和类之间的差别.同时也涉及了以下几对概念. 4V/lFM^/{* 结构和类 HhVTj%~bkztK

2008-07-30 21:17:00 489

原创 类与结构的差别

类与结构的差别  如何选择结构还是类  一.类与结构的示例比较:  结构示例:  public struct Person   {  string Name;  int height;  int weight  public bool overWeight()  {  //implement something

2008-07-30 18:38:00 384

原创 堆和栈的区别(stack and heap)

栈是后进先出,堆是随便进出。---------------------都是一种数据结构,用于管理存储空间,     栈用于局部变量分配空间,   容量比较小     堆用于管理大块数据,   容量跟系统资源有关----------------------只从数据结构的方面说,栈是一种有序(filo)的结构,堆是无序结构。         而程序运行中的堆与栈是不同与上面的。汇编了解吗?比

2008-07-30 18:32:00 701

原创 集合类(Collection)

这一课讲述怎样实现一个集合类,以及怎样用foreach对其访问.前面讲过,foreach语句 6h{%n#m.vgek  3c7F%dsVB M是迭代访问数组的非常方便的方法,它也可以用来枚举集合中的元素,这是因为集合类 F[} B g  .}HW X lb2sbH#x实现了System.Collections.IEnumerator和System.

2008-07-30 16:41:00 734

原创 versioning

这一课讲述怎样在C#中使用override和new这两个关键字。在C#手册中把他们统称为 Q W|EiW1[9yKversioning.(chsarp园地注:不知道应该怎样翻译才确切,敬请指正!)。它维持了基 &E_0W+x(n&c1u$i类和派生类之间的进化关系。 /v3NK bM!v%swC#语言设计这种机制的目的是为了能够保持不同库的基类和派生类之间的关系,

2008-07-30 16:09:00 594

原创 数组

这一课分为下面几个部分. _;U5u cm,p@D* C#中数组的基本概念 *a@f,bUWc* 数组声明 :~1fv*CC pfV`O* 数组初始化 iCo,r1L;H*O/|* 数组成员的访问 W+q,M7Npt3B*k#P* 数组是Object 3o9rWLdI3K`* 用foreach访问数组 D%m

2008-07-30 10:53:00 855

原创 ref和out的作用

方法参数上的 ref 方法参数关键字使方法引用传递到方法的同一个变量。当控制传递回调用方法时,在方法中对参数所做的任何更改都将反映在该变量中。 若要使用 ref 参数,必须将参数作为 ref 参数显式传递到方法。ref 参数的值被传递到 ref 参数。 传递到 ref 参数的参数必须最先

2008-07-29 17:12:00 523

原创 SQL递归查询

create table t(bid int,   p_bid      int)insert into tselect 1,         null  union allselect 2,           1   union allselect 3,           1   union allselect 4,           3   union all

2008-07-18 13:38:00 417

翻译 详谈 IEnumerator 和 IEnumberator

 IEnumerable   只是表明某个对象能够被枚举,真正的工作是由IEnumerator的Current,   MoveNext,   and   Reset完成的,为什么要有2个不同的接口来作枚举呢?主要是考虑到被枚举的对象会有多个独立的客户端调用IntroductionThis article discusses the IEnumerator and IEnumerablein

2008-07-15 10:52:00 2601 1

毕马威:《2023年中国便利店发展报告》(pdf下载)

毕马威:《2023年中国便利店发展报告》(pdf下载)

2024-02-21

毕马威:《零售及消费品行业:变革、转型与突破》系统报告之八

毕马威:《零售及消费品行业:变革、转型与突破》系统报告之八

2024-02-21

毕马威:中国经济观察:2023年四季度(pdf下载)

毕马威:中国经济观察:2023年四季度(pdf下载)

2024-02-21

毕马威:2024中国消费50白皮书报告(第三届)(130页).pdf

第三届消费50 榜单企业评选范围为新经济周期中深得消费者喜爱并实现韧性增长的消费品及零售行业企业,包括但不限于个护/ 美妆、便利店、咖啡、宠物、家居生活、康养/ 健身、服装配饰、母婴、综合食品、连锁餐厅、预制菜/ 烘焙、饮料/ 乳品以及服务提供商等行业企业。 通过对第三届毕马威消费50 企业的调研分析,我们发现企业愈发注重数字化转型及消费者需求,并在相关领域积累了成功实践。 数字化贯穿运营管理六大创新维度 更多企业将以消费者为核心的运营管理提升至战略高度

2024-02-21

Market Risk Analysis Volume I

Market Risk Analysis 一共四卷,这里提供第一卷, 理论知识, 先读2,3,4,中间需要结合1 来消化 不要看完就还给作者了

2016-04-13

S60 手机证书 制作软件(自己动手不用申请)

S60 手机证书 制作软件(自己动手不用申请) 自己搞,秒做!

2009-10-09

vs2008,VSTS压力测试报告-分析方法

vs2008,VSTS压力测试报告-分析方法 紧跟着上面一个资源,如何手把手教你如何用vs2008做压力测试,性能测试。

2009-07-01

VS2008,VSTS,做压力测试,性能分析

个人收集整理,且中文。国内最全指导书 是doc文档,清晰明了。 手把手教你如何用vs2008做压力测试,并行测试。 第二部分送上分析报告分析方法。

2009-07-01

【经典】VS2008 柔黑色底主题,保护眼睛主题

淡黑色底(纯白,纯黑都伤眼睛) MS的Consale字体,最柔和字体和规范字体 颜色不是过于鲜艳,确对比度比较强烈, 在柔和的环境中创造轻松的变成环境 主柔黑色theme.

2009-07-01

EditPlus 3.1 最新cd-key

EditPlus 3.1 最新cd-key

2009-05-20

sharePoint安装完全手册

sharePoint安装完全手册 sharePoint安装完全手册 sharePoint安装完全手册 sharePoint安装完全手册 sharePoint安装完全手册

2008-10-28

Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code Martin Fowler Kent Beck John Brant William Opdyke Don Roberts Publisher: Addison Wesley First Edition June 11, 1999 ISBN: 0-201-485672, 464 pages

2008-10-28

Unit Testing with Mock Objects

Abstract Unit testing is a fundamental practice in Extreme Programming, but most non-trivial code is difficult to test in isolation. It is hard to avoid writing test suites that are complex, incomplete, and difficult to maintain and interpret. Using Mock Objects for unit testing improves both domain code and test suites. They allow unit tests to be written for everything, simplify test structure, and avoid polluting domain code with testing infrastructure. Keywords: Extreme Programming, Unit Testing, Mock Objects, Stubs 1 Introduction “Once,” said the Mock Turtle at last, with a deep sigh, “I was a real Turtle.” (Alice In Wonderland, Lewis Carroll)

2008-10-28

CodertoDeveloper--Tools and Strategies for Delivering Your Software

Table of Contents Coder to Developer—Tools and Strategies for Delivering Your Software Foreword Introduction Chapter 1 - Planning Your Project Chapter 2 - Organizing Your Project Chapter 3 - Using Source Code Control Effectively Chapter 4 - Coding Defensively Chapter 5 - Preventing Bugs with Unit Testing Chapter 6 - Pumping Up the IDE Chapter 7 - Digging Into Source Code Chapter 8 - Generating Code Chapter 9 - Tracking and Squashing Bugs Chapter 10 - Logging Application Activity Chapter 11 - Working with Small Teams Chapter 12 - Creating Documentation Chapter 13 - Mastering the Build Process Chapter 14 - Protecting Your Intellectual Property Chapter 15 - Delivering the Application Index List of Figures List of Tables List of Technology Traps List of Sidebars

2008-10-28

MVP由浅入深(2)

在译文中,作者使用了Northwind数据库的Customer表来作为范例,这个表包含了太多的字段,而且字段类型缺乏变化,只有一个自定义的Country类型,其余均为String类型。这样容易让大家忽视掉MVP模式需要注意的一点,或者说是优势之一:视图部分,通常也就是一个Aspx页面,向用户显示的数据类型只有一种可能,就是字符串。即便你想向用户显示一个数字,比如金额,在显示之前,也会要么显式、要么隐式地转换为了字符串类型;而对象的字段类型却可能是多种多样的。所以,View的接口定义只包含String类型的Set属性,而实际将各种类型向String类型转换的工作,全部在提供器中完成。通过这样的方式,页面的CodeBehind将进一步简洁,连格式转换都移到了单独的提供器类中了。如果上面的加粗的字体你一时不能领悟也不要紧,一点点看下去你自然会明白。

2008-10-28

MVP由浅入深(1)

随着像Asp.Net和Windows窗体这样的用户界面创建技术越来越强大,让用户界面层做多于它本应做的事是很常见的。没有一个清晰的职责划分,UI层经常沦为一个包含实际上应属于程序其他层的逻辑的容器。有一个称为 模型(Model)-视图(View)-提供器(Presenter)(MVP)的设计模式,特别适合解决这个问题。为了表明我的观点,我将为Northwind数据库中的客户建一个遵循MVP模式的显示屏幕(display screen)。

2008-10-28

ASP.Net 面试必背程序,98%通吃所有编程题

ASP.Net 面试必背程序,98%通吃所有编程题

2008-01-17

万能日期正则表达式 (适用于各种日期样式)绝对经典

万能日期正则表达式 (适用于各种日期样式)适用于yyyy(或yy)-(或空格)MM(或MMM,比如Jan,Feb..) dd HH:mm:ss(后面还可以选择性显示时间)顺序也可以是各式各样的可以月份提前 MM(MMM)-dd-yyyy(yy) MM(MMM) dd yyyy(yy)也可以日期提前 dd-MM(MMM)-yyyy(yy) dd MM(MMM) yyyy(yy)位置随便你改变,中间的连接符平常用的是'-'和' '想显示时间就显示时间使用方法:方法GenerateDateTimeReg(string formateType)中传入一个datetime的formate格式,后面的工作就等着取Reg正则表达式吧。哈哈用的话直接用,如果想测试正确性,把返回的Reg字符串里面的“\\”改成“\”就可以了,原因就不说了,只要你编程过应该就知道。

2008-01-10

Using Assemblies in Microsoft .NET and C# Using Assemblies in Microsoft .NET and C#

1. Introduction<br><br>Summary<br>Scope<br><br>2. Setup of the .NET Framework<br><br>Microsoft .NET Framework Software Development Kit<br><br>3. Assemblies<br><br>Direct Use of DLLs<br>Private Assemblies<br>Global Assemblies<br>Compile/Link Cycle<br>View Assemblies - The Intermediate Language Disassembler (ILDASM)<br><br>4. Sample Application<br><br>Steps<br>App.cs<br>Hello.cs<br>GoodBye.cs<br>HowDoYouDo.cs<br>Compile Classes to DLLs - The CSharp Compiler (CSC)<br>Group DLLs in a Private Assembly - The Assembly Linker (AL)<br><br>5. Create Global Assembly<br><br>Generate Key File - The Strong Name Utility (SN)<br>Version Control and Linking<br>Load into Assembly Cache - The Global Assembly Cache Utility (GACUTIL)<br><br>6. Compile and Run Executable (EXE)<br><br>Reference Private and Global Assemblies<br>Add DLLs Directly and Reference Global Assemblies<br>Run it<br><br>7. Loading DLLs on Demand<br><br>Start Debugger<br>List Modules<br><br>8. Step into Private Assemblies<br><br>Private Assemblies are Referencing DLLs<br>Version Control and Signing<br>Correct Version Required<br>Recognition of Tampered Files<br><br>9. Step into Global Assemblies<br><br>Delete Locally Compiled Global Assemblies<br>Remove Assembly from GAC<br>Check Public Key Token<br><br>10. Version Global Assemblies<br><br>Attributes<br>Compile/Link and Load into GAC<br>Same Name but Different Versions<br>Correct Version Required<br><br>11. Appendix<br><br>Commandfile to Build Sample Application<br>Download Sources

2007-11-22

如何用C#在VS2005中创建自己的Exception详解

如何用C#在VS2005中创建自己的Exception详解

2007-11-22

Using Assemblies in Microsoft .NET and C#

1. Introduction <br><br>Summary<br>Scope <br><br>2. Setup of the .NET Framework <br><br>Microsoft .NET Framework Software Development Kit <br><br>3. Assemblies <br><br>Direct Use of DLLs<br>Private Assemblies<br>Global Assemblies<br>Compile/Link Cycle<br>View Assemblies - The Intermediate Language Disassembler (ILDASM) <br><br>4. Sample Application <br><br>Steps<br>App.cs<br>Hello.cs<br>GoodBye.cs<br>HowDoYouDo.cs<br>Compile Classes to DLLs - The CSharp Compiler (CSC)<br>Group DLLs in a Private Assembly - The Assembly Linker (AL) <br><br>5. Create Global Assembly <br><br>Generate Key File - The Strong Name Utility (SN)<br>Version Control and Linking<br>Load into Assembly Cache - The Global Assembly Cache Utility (GACUTIL) <br><br>6. Compile and Run Executable (EXE) <br><br>Reference Private and Global Assemblies<br>Add DLLs Directly and Reference Global Assemblies<br>Run it <br><br>7. Loading DLLs on Demand <br><br>Start Debugger<br>List Modules <br><br>8. Step into Private Assemblies <br><br>Private Assemblies are Referencing DLLs<br>Version Control and Signing<br>Correct Version Required<br>Recognition of Tampered Files <br><br>9. Step into Global Assemblies <br><br>Delete Locally Compiled Global Assemblies<br>Remove Assembly from GAC<br>Check Public Key Token <br><br>10. Version Global Assemblies <br><br>Attributes<br>Compile/Link and Load into GAC<br>Same Name but Different Versions<br>Correct Version Required <br><br>11. Appendix <br><br>Commandfile to Build Sample Application<br>Download Sources <br><br>

2007-11-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除