c#
文章平均质量分 80
ayongwust_csts
这个作者很懒,什么都没留下…
展开
-
The C# ?? null coalescing operator (and using it with LINQ)
The C# ?? null coalescing operator (and using it with LINQ) One of the subtle (but cool) language features of C# is the ?? "null coalescing" operator. This provides a nice, terse way to check w转载 2008-03-24 21:54:00 · 517 阅读 · 0 评论 -
Dictionary比hashSet快?
class Program { static void Main(string[] args) { HashSetstring> hash=new HashSetstring> (); //url列表 StreamReader reader = new原创 2008-05-24 22:29:00 · 853 阅读 · 0 评论 -
c#中List <int[]>集合添加和查找元素
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication7...{ class Program ...{ static void Main(string[] args) ...{ Listint[]> alSc原创 2008-05-24 22:42:00 · 646 阅读 · 0 评论 -
把new、virtual、override说透
我们先看下面一段程序: /// /// 父类 /// 作者:周公 /// 首发地址:http://blog.csdn.net/zhoufoxcn/archive/2008/09/02/2864429.aspx /// 日期:2008-09-01 /// public class Father {转载 2008-09-03 08:37:00 · 265 阅读 · 0 评论 -
在C#中如何加密解密字符串How To: Encrypt and Decrypt Data Using a Symmetric (Rijndael) Key (C#/VB.NET)
C# code///////////////////////////////////////////////////////////////////////////////// SAMPLE: Symmetric key encryption and decryption using Rijndael algorithm.// // To run this sample, create翻译 2008-09-21 10:05:00 · 757 阅读 · 0 评论 -
C#各种加密算法的加密过程
using System;using System.IO;using System.Security.Cryptography;using System.Text;class FileEncrypt {public static Byte[] ConvertStringToByteArray(String s){re原创 2008-09-21 10:40:00 · 1679 阅读 · 0 评论 -
.NET 中如何format int 类型的数据
Integer numbers can be formatted in .NET in many ways. You can use static method String.Format or instance method int.ToString. Following examples shows how to align numbers (with spaces or zeroes), h转载 2008-11-11 20:10:00 · 852 阅读 · 0 评论 -
枚举 和 字符串 之间的转换
Convert a string to an enumerated (enum) value.Using the Enum.Parse method, you can easily convert a string value to an enumerated value. Doing this requires the type of the enum and string valu原创 2008-11-23 18:06:00 · 337 阅读 · 0 评论