Microsoft .NET
cooleader320
架构设计,软件开发
展开
-
一个自定义的Combox
如何在windows标准的combox中加入自定义的item Public Class ComboPatternClass ComboPattern Inherits System.Windows.Forms.ComboBoxComponent Designer generated code#Region " Component Designer generated code "原创 2007-03-27 14:34:00 · 1231 阅读 · 0 评论 -
ref & out 关键字的区别
//1) out parameters return compiler error if they are not assigned a value in the method. Not such with ref parameters. //2) out parameters need not be initialized before pass原创 2010-03-01 17:08:00 · 488 阅读 · 0 评论 -
一些工具函数--JSONHelper
public sealed class JSONHelper { public static string Serialize(T obj) { DataContractJsonSerializer serializer = new System.Runtime.Serialization.Json.DataContrac原创 2010-02-10 10:14:00 · 540 阅读 · 0 评论 -
一些工具函数--object 于 DataTable 相互转换
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Reflection;using System.Collections;namespace CertificateReport.Utility{ ///原创 2010-02-10 10:02:00 · 4847 阅读 · 0 评论 -
一些工具函数--Xml 序列化
public sealed class XmlHelper { public static void Serialize(T obj,string fileName) { TextWriter writer = new StreamWriter(fileName); try原创 2010-02-10 09:53:00 · 610 阅读 · 0 评论 -
一些工具函数--通用类型转换
using System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.ComponentModel;namespace CertificateReport.Utility{ /// /// Represents some原创 2010-02-10 10:07:00 · 672 阅读 · 0 评论 -
一些工具函数--WordDocHelper
public class WordDocHelper : IDisposable { private Microsoft.Office.Interop.Word.Application app; private Microsoft.Office.Interop.Word.Document doc; public Wor原创 2010-02-10 10:19:00 · 883 阅读 · 0 评论 -
.NET customizedconfiguration model sample
Design your schema in app.config Write proper class matched with your schema using System;using System.Collections.Generic;using System.Linq;using System原创 2009-10-15 22:22:00 · 396 阅读 · 0 评论 -
Provider Pattern in .NET
1. To create a provider we first have to create a public abstract class that defines our contract. This class must implement the System.Configuration.ProviderBase abstract class and it should contain原创 2009-10-15 14:29:00 · 469 阅读 · 0 评论 -
一段有用的宏
Imports EnvDTEImports System.Diagnostics Public Module MaintenanceComment #Region "Field" Public strDate As String = Format(Date.Now, " yyyy/MM/dd HH:MM:ss") Public strName A原创 2009-09-23 20:24:00 · 965 阅读 · 2 评论 -
C# Programming Tips(1) : anonymous methods and delegate
In versions of C# previous to 2.0, the only way to declare a delegate was to use named methods. C# 2.0 introduces anonymous methods.Creating anonymous methods is essentially a way to pass a code原创 2009-08-31 18:26:00 · 471 阅读 · 0 评论 -
Linkable C1 Flex Grid
using System;using System.Collections.Generic;using System.Text;using C1.Win.C1FlexGrid;using System.Diagnostics;using System.Drawing;using System.Windows.Forms;namespace LinkableGrid原创 2009-05-25 09:39:00 · 930 阅读 · 0 评论 -
How to enable Synchronize Class View in VS2005
How to enable Synchronize Class View in VS2005 Select tools/customize menu Check Context Menu item in Toolbar tabbed dialog, and a new toolbar appears. Switch to C原创 2007-09-17 18:15:00 · 739 阅读 · 0 评论 -
How to use Events in the Context of C#
Step 1 : Declare a delegate.Step 2 : Create a class derived from System.EventArgs to encapsulate the event information.Step 3 : Create the class that will raise the event. This class will have :a) an原创 2007-07-31 12:15:00 · 909 阅读 · 0 评论 -
.Net Remoting
IntroductionAny Distributed Communications involves ultimately two things It marshals an instance of programmatic data types into messages that can be sent across network or different Ap转载 2007-07-27 11:26:00 · 771 阅读 · 0 评论 -
Rose, Hell, Performance, Drawn
Rose, Hell, Performance, DrawnSystem Architecture· Physical topological structure· Program structure Subsystem Divisions· Subsystem overview原创 2007-03-27 14:41:00 · 749 阅读 · 0 评论 -
一个自定义的ListBox
如何在标准的ListBox中增加自定义的Item Public Class ListStyleClass ListStyle Inherits System.Windows.Forms.ListBoxLineStyle Structure >>#Region "LineStyle Structure >>" line type: none(0)----->原创 2007-03-27 14:24:00 · 867 阅读 · 0 评论 -
USE lambda expression
lambda expression原创 2011-02-25 10:48:00 · 654 阅读 · 0 评论