下面的手段是使用给枚举项打标签的方式,来返回字符串下面分别定义一个属性类,和一个枚举帮助类[csharp]view plaincopyprint?[AttributeUsage(AttributeTargets.Field,AllowMultiple=false)]publicsealedclass...
C#是微软发布了一个面向对象、开展对.NET Framework上述高级编程语言。并定于占领在微软开发者论坛(PDC)在首演。C#这是微软研究员Anders Hejlsberg最新成就。C#容貌Java有着惊人的类似;它包括了诸如单一继承、接口、与Java差不多的语法和编译成中间代码再执行的过程。可...
分类:
其他好文 时间:
2015-07-14 22:00:28
阅读次数:
268
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
/// /// Export DataSet into Excel /// /// /// private void Form3_Load(object sender, EventArgs e) { ...
分类:
其他好文 时间:
2015-07-10 13:23:45
阅读次数:
108
1.第一步:在web.config文件添加如下代码:[sourcecode language="csharp"][/sourcecode]第二步:添加Log4Net引用log4net.dll第三步:在global.asax文件中添加命名空间[sourcecode language="csharp"]...
分类:
Web程序 时间:
2015-07-08 17:56:45
阅读次数:
155
http://www.codewars.com/kata/54ff3102c1bad923760001f3/solutions/csharp判断给定的字符串有多少个a e i o uusing System;using System.Linq;public static class Kata{ .....
分类:
其他好文 时间:
2015-07-03 21:50:44
阅读次数:
147
下载驱动驱动的下载有两种方式:一种是在C#项目中通过NuGet进行安装,另一种是通过下面的链接:https://github.com/mongodb/mongo-csharp-driver/releases直接下载msi进行安装或zip压缩包。不管哪种方式,其主要的目的都是获取两个dll文件:Mon...
分类:
数据库 时间:
2015-07-01 11:50:31
阅读次数:
355
原文地址:http://www.codeproject.com/Articles/996857/Asynchronous-programming-and-Threading-in-Csharp-N介绍:Asynchronous programming and threading is very im...
前提:必须安装 WinRAR1. 工具类[csharp]view plaincopyusingSystem;usingSystem.Diagnostics;usingSystem.IO;usingMicrosoft.Win32;namespaceUtil{publicclassRARClass{//...