致支持和关注本Blog的朋友:
感谢你访问PaulLeder--程序部落
在这里包括一些与计算机有关知识的讨论和学习。
我希望能以这个网站为平台,和大家一起交流计算机程序设计的经历和心得。
衷心祝福大家在学业和事业上不断进步,体会成功、自信和快乐。

 

预览模式: 普通 | 列表

检测.NET PerformanceCounterCategory数据

引用内容 引用内容
public static void GetCategoryNameList()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine("");
            PerformanceCounterCategory[] myCat2;

查看更多...

分类:.Net | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 86
log4net has a known issue of referencing a System.Web component which is not part of the .NET Framework 4 Client Profile and the VS2010 by default sets project target to be the lightweighted Client Profile. The solution is to change the target to .NET Framework 4:

Right click project -> properties -> Application. Change:

引用内容 引用内容
.NET Framework 4 Client Profile

查看更多...

分类:.Net | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 99

通过Enum.Parse转换字符串成对应的枚举类型

引用内容 引用内容
using System;

public class ParseTest {
    [FlagsAttribute]
    enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 };

查看更多...

分类:.Net | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 124