<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" media="screen"?>
<rss version="2.0">
  <channel>
    <title>星辰.Net技术社区论坛 - C#</title>
    <link>http://www.netcsharp.cn/showforum-2.aspx</link>
    <description>Latest 20 threads</description>
    <copyright>Copyright (c) 星辰.Net技术社区论坛</copyright>
    <generator>Discuz!NT</generator>
    <pubDate>Fri, 21 Nov 2008 17:38:08 GMT</pubDate>
    <ttl>60</ttl>
    <item>
      <title>探索系列：深入辨析 ReadOnly，Const</title>
      <description><![CDATA[***内容隐藏***]]></description>
      <link>http://www.netcsharp.cn/showtopic-229.aspx</link>
      <category>C#</category>
      <author>admin</author>
      <pubDate>Sat, 15 Mar 2008 01:25:00 GMT</pubDate>
    </item>
    <item>
      <title>C#实现无锁并发队列</title>
      <description><![CDATA[无锁编程的目标是在不使用Lock的前提下保证并发过程中共享数据的一致性，其主要的实现基础是CAS操作，也就是compare_and_swap，通过处理器提供的指令，可以原子地更新共享数据，并同时监测其他线程的干扰，.Net中的对应实现是InterLocked.CompareExchange函数。
既然不使用Lock，那在无锁编程中要时刻注意的是，代码可能在任意语句中被中断。如果是单个变量，我们可]]></description>
      <link>http://www.netcsharp.cn/showtopic-1698.aspx</link>
      <category>C#</category>
      <author>star65225692</author>
      <pubDate>Thu, 20 Nov 2008 22:23:00 GMT</pubDate>
    </item>
    <item>
      <title>使用GDI+实现GIF图片透明</title>
      <description><![CDATA[GIF的全称是图像交换格式Graphics Interchange Format，是CompuServe公司在1987年创建并使用的。这种格式使用8位索引值来表达一个像素，也就是说1个像素1个byte，最多可以表示256种颜色。它使用LZW无损压缩算法来对图像进行压缩，之后这家公司又和几家其他的公司发明了PNG文件格式，并被更广泛地应用在Web以及其他领域。GIF支持动画，可以保存数个帧并不断地播]]></description>
      <link>http://www.netcsharp.cn/showtopic-1693.aspx</link>
      <category>C#</category>
      <author>admin</author>
      <pubDate>Thu, 20 Nov 2008 16:30:00 GMT</pubDate>
    </item>
    <item>
      <title>C#获取当前路径的方法集合</title>
      <description><![CDATA[/获取当前进程的完整路径，包含文件名(进程名)。
string str = this.GetType().Assembly.Location;
result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)

//获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径，包含文件名(进程名)。
string str = System.D]]></description>
      <link>http://www.netcsharp.cn/showtopic-1687.aspx</link>
      <category>C#</category>
      <author>admin</author>
      <pubDate>Tue, 18 Nov 2008 17:09:00 GMT</pubDate>
    </item>
    <item>
      <title>C#实现快捷键(系统热键)注册</title>
      <description><![CDATA[在应用中，我们可能会需要实现像Ctrl+C复制、Ctrl+V粘贴这样的快捷键，本文简单介绍了它的实现，并给出了一个实现类。
（1）建立一个类文件，命名为HotKey.cs，代码如下：
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Wind]]></description>
      <link>http://www.netcsharp.cn/showtopic-1675.aspx</link>
      <category>C#</category>
      <author>neptune</author>
      <pubDate>Fri, 14 Nov 2008 16:52:00 GMT</pubDate>
    </item>
    <item>
      <title>如何加速GDI+处理图片速度?</title>
      <description><![CDATA[GDI+的Bitmap类提供了两个罪恶的函数GetPixel,SetPixel，用来获取某个像素点的颜色值。这个2个函数如果只调用一次两次也就罢了，万一我想把整张图片加红一点，用下面的代码，我估计你等到黄花菜都凉了，还没有算完呢。 看看下面的代码是怎么写的。
 FileStream fs = new FileStream(image, FileMode.Open, FileAccess.Read]]></description>
      <link>http://www.netcsharp.cn/showtopic-1662.aspx</link>
      <category>C#</category>
      <author>蝈蝈俊.net</author>
      <pubDate>Fri, 07 Nov 2008 19:21:00 GMT</pubDate>
    </item>
    <item>
      <title>C#使用SecureString类保护敏感数据</title>
      <description><![CDATA[什么时候应当使用SecureString类
你可能感到怀疑，既然可以使用基本的String类，为什么还有必要使用SecureString类呢？问题在于String类的设计方面。例如，如果你有一个String类的实例包含某个人的社会安全号，你就希望应用程序在处理过程中将其安全保存，以避免泄露。

问题的关键在于安全保存文本，因为String类将其以明文形式保存。查明数据的保存位置需要对.NET]]></description>
      <link>http://www.netcsharp.cn/showtopic-1654.aspx</link>
      <category>C#</category>
      <author>kirayamato</author>
      <pubDate>Wed, 05 Nov 2008 11:33:00 GMT</pubDate>
    </item>
    <item>
      <title>线程静态字段ThreadStaticAttribute详解</title>
      <description><![CDATA[ThreadStaticAttribute 的作用是告诉CLR，它标记的静态字段的存取是依赖当前线程，而独立于其他线程的。
例如：
class MyClass{
     static public string threadvalue;
}
MyClass 中的threadvalue就是一个线程静态字段 。如果一个程序中同时有多个线程同时访问这个字段，则每个线程访问的都是独立的thre]]></description>
      <link>http://www.netcsharp.cn/showtopic-1648.aspx</link>
      <category>C#</category>
      <author>star65225692</author>
      <pubDate>Mon, 03 Nov 2008 22:17:00 GMT</pubDate>
    </item>
    <item>
      <title>C#跨线程操作GUI</title>
      <description><![CDATA[无论是WIN32还是Windows Form还是WPF还是Swing，都不支持GUI线程之外的线程直接访问其API。今天我们来回顾一下这个发展过程。一个普通的操作是怎么被封装封装再封装的。
Win32在Windows SDK时代，我们都知道，界面就是一个大的WndProc控制的。switch (message)
{
        case WM_PAINT:
        case W]]></description>
      <link>http://www.netcsharp.cn/showtopic-1646.aspx</link>
      <category>C#</category>
      <author>admin</author>
      <pubDate>Mon, 03 Nov 2008 17:02:00 GMT</pubDate>
    </item>
    <item>
      <title>DataTable,DataView和DataGrid三者的区别</title>
      <description><![CDATA[一、DataTable 
   
  DataTable表示内存中数据的一个表，它完全是在内存中的一个独立存在，包含了这张表的全部信息。DataTable可以是从通过连接从数据库中读取出来形成的一个表，一旦将内容读到DataTable中，此DataTable就可以跟数据源断开而独立存在；也可以是完全由程序自己通过代码来建立的一个表。 
   
  ◆ DataColumn 
   
 ]]></description>
      <link>http://www.netcsharp.cn/showtopic-1630.aspx</link>
      <category>C#</category>
      <author>蝈蝈俊.net</author>
      <pubDate>Mon, 27 Oct 2008 17:43:00 GMT</pubDate>
    </item>
    <item>
      <title>DataGrid连接Access的快速分页法（5）- 实现快速分页</title>
      <description><![CDATA[我使用Access自带的Northwind中文数据库的“订单明细”表作为例子，不过我在该表添加了一个名为“Id”的字段，数据类型为“自动编号”，并把该表命名为“订单明细表”。
FastPaging_DataSet.aspx
--------------------------------------------------------------------------------------]]></description>
      <link>http://www.netcsharp.cn/showtopic-1599.aspx</link>
      <category>C#</category>
      <author>蝈蝈俊.net</author>
      <pubDate>Tue, 21 Oct 2008 10:10:00 GMT</pubDate>
    </item>
    <item>
      <title>DataGrid连接Access的快速分页法（4）- 动态生成SQL语句</title>
      <description><![CDATA[本文紧接前一篇,将实现动态生成SQL分页语句,并封装在一个类中,实现可重用性~using System;
using System.Text;

namespace Paging
{
    /// &amp;lt;summary&amp;gt;
    /// FastPaging 的摘要说明。
    /// &amp;lt;/summary&amp;gt;
    public class FastPagi]]></description>
      <link>http://www.netcsharp.cn/showtopic-1592.aspx</link>
      <category>C#</category>
      <author>admin</author>
      <pubDate>Sun, 19 Oct 2008 15:58:00 GMT</pubDate>
    </item>
    <item>
      <title>C#实现动态编译</title>
      <description><![CDATA[代码的动态编译并执行是一个.NET平台提供给我们的很强大的工具用以灵活扩展（当然是面对内部开发人员）复杂而无法估算的逻辑，并通过一些额外的代码来扩展我们已有
的应用程序。这在很大程度上给我们提供了另外一种扩展的方式（当然这并不能算是严格意义上的扩展，但至少为我们提供了一种思路）。
 
动态代码执行可以应用在诸如模板生成，外加逻辑扩展等一些场合。一个简单的例子，为了网站那的响应速度，HTML静]]></description>
      <link>http://www.netcsharp.cn/showtopic-1588.aspx</link>
      <category>C#</category>
      <author>admin</author>
      <pubDate>Fri, 17 Oct 2008 13:51:00 GMT</pubDate>
    </item>
    <item>
      <title>DataGrid连接Access的快速分页法（3）- SQL语句的选用（降序）</title>
      <description><![CDATA[通过下面的示例，大家将了解到该分页方法的优势所在
三、降序
（1）@PageIndex &amp;lt;= @FirstIndexSELECT TOP @PageSize @QueryFields 
            FROM @TableName 
            WHERE @Condition
            ORDER BY @PrimaryKey DESC（2）@]]></description>
      <link>http://www.netcsharp.cn/showtopic-1586.aspx</link>
      <category>C#</category>
      <author>蝈蝈俊.net</author>
      <pubDate>Thu, 16 Oct 2008 15:45:00 GMT</pubDate>
    </item>
    <item>
      <title>.Net4.0新功能--并行编程类库Parallel Extensions初探 Part1</title>
      <description><![CDATA[Microsoft Parallel Extensions to the .NET Framework3.5是一个托管编程模型，用于数据并行化和任务并行化，并可对统一在共同的工作调度程序之下的并行硬件进行协调。 ParallelExtensions to the .NET Framework3.5使开发者更容易编写出充分发挥并行硬件的优势的程序，不但能随着处理器数量的增长而提高性能，而且避免了许多]]></description>
      <link>http://www.netcsharp.cn/showtopic-1585.aspx</link>
      <category>C#</category>
      <author>neptune</author>
      <pubDate>Wed, 15 Oct 2008 23:37:00 GMT</pubDate>
    </item>
    <item>
      <title>C#使用Conditional元数据Attribute来实现代码调试</title>
      <description><![CDATA[#if/#endif块用来对同样的源代码产生不同的版本，大多是debug和release版本。但它并不好用，#if/#endif块很容易被滥用，代码难于调试与理解。语言设计者们意识到并为我们提供了更好的工具，用来生成不同运行环境下的机器代码。c#为我们添加了Conditional特性用于指示某个方法的调用是基于环境设置的。这种方法比起#if/#endif块它对条件编译阐述的更清晰。编译器认识Con]]></description>
      <link>http://www.netcsharp.cn/showtopic-1582.aspx</link>
      <category>C#</category>
      <author>kirayamato</author>
      <pubDate>Wed, 15 Oct 2008 17:50:00 GMT</pubDate>
    </item>
    <item>
      <title>AutoResetEvent和ManualResetEvent的区别</title>
      <description><![CDATA[在.Net多线程编程中,AutoResetEvent和ManualResetEvent这两个类经常用到, 他们的用法很类似，但也有区别。
Set方法将信号置为发送状态，Reset方法将信号置为不发送状态,WaitOne等待信号的发送。
可以通过构造函数的参数值来决定其初始状态，若为true则非阻塞状态，为false为阻塞状态。
如果某个线程调用WaitOne方法,则当信号处于发送状态时,该线]]></description>
      <link>http://www.netcsharp.cn/showtopic-1581.aspx</link>
      <category>C#</category>
      <author>star65225692</author>
      <pubDate>Wed, 15 Oct 2008 16:34:00 GMT</pubDate>
    </item>
    <item>
      <title>DataGrid连接Access的快速分页法（2）- SQL语句的选用（升序）</title>
      <description><![CDATA[一、相关概念     在 ACCESS 数据库中，一个表的主键（PRIMARYKEY，又称主索引）上必然建立了唯一索引（UNIQUEINDEX），因此主键字段的值是不会重复的。并且索引页依据索引列的值进行排序，每个索引记录包含一个指向它所引用的数据行的指针。我们可以利用主键这两个特点来实现对某条记录的定位，从而快速地取出某个分页上要显示的记录。

     举个例子，假设主键字段为 INTEG]]></description>
      <link>http://www.netcsharp.cn/showtopic-1580.aspx</link>
      <category>C#</category>
      <author>蝈蝈俊.net</author>
      <pubDate>Wed, 15 Oct 2008 10:17:00 GMT</pubDate>
    </item>
    <item>
      <title>C# 实现PHP中的serialize/unserialize</title>
      <description><![CDATA[这个版本目前实现了对各种基元类型、一维数组、多维数组、交错数组、ArrayList、Hashtable、和其它可序列化对象的序列化。实现了PHP 5 中的 Serializable 接口的支持。实现了 PHP 中的 __sleep 和 __wakeup魔术方法的支持。实现了对所有标示（N、b、i、d、s、a、O、R、r、U、C）的反序列化，在对标示 a反序列化时，可以根据下标和值来自动判断是 Ar]]></description>
      <link>http://www.netcsharp.cn/showtopic-1575.aspx</link>
      <category>C#</category>
      <author>kirayamato</author>
      <pubDate>Mon, 13 Oct 2008 20:49:00 GMT</pubDate>
    </item>
    <item>
      <title>DataGrid连接Access的快速分页法（1）- 需求与现状</title>
      <description><![CDATA[一、需求分析     DataGrid是一个功能强大的ASP.NETWeb服务器端控件，它除了能够按各种方式格式化显示数据，还可以对数据进行动态的排序、编辑和分页。大大减轻了广大Web程序员的工作量。实现DataGrid的分页功能一直是很多入门者感到棘手的问题，特别是自定义分页功能，实现的方法多种多样，非常灵活。

     目前大家公认性能最好的应该数SQL Sever结合存储过程的解决方案]]></description>
      <link>http://www.netcsharp.cn/showtopic-1573.aspx</link>
      <category>C#</category>
      <author>蝈蝈俊.net</author>
      <pubDate>Mon, 13 Oct 2008 14:59:00 GMT</pubDate>
    </item>
  </channel>
</rss>