Sends for the fellow dear visitors:welcome to dongpad!


 Welcome to DongPad!

 msn


| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | > >> 预览模式: 普通 | 列表

Sequence Diagram RE, LINQ, and Lambdas

from:Skinner's Blog

本文主要介绍了VS2010特性之Sequence Diagram Reverse Engineering对LINQ和Lambdas的扩展

The Sequence Diagram Reverse Engineering feature available in Visual Studio 2010 allows you to create a UML 2.1 “like” diagram that represents your source code. I say “like” in the previous sentence because we use all the notation prescribed by the UML standard, but there are a few instances where we add some notation that is not found in the standard. Support for LINQ and Lambda expressions are examples of where we have extended the Combined Fragment notation to include what we have dubbed a “Deferred Call”.

Here’s a simple console application that I’ll use to show what I mean.

略……

查看全部...

Tags: DongPad

分类:C# | 固定链接 |评论: 2| 引用: 0 | 查看次数: 1273 | 返回顶部

C#编译器(csc.exe)搜索Dll的顺序

This Article is Published by Live Writer。

@CLR via C#2.0 P32
1.工作目录

2.编译器本身目录(PS:根据全局CSC.rsp文件的配置)

3./lib开关指定的目录

4.Lib环境变量指向的工作目录

现在,我们来做了一下尝试,在非编译器目录创建如下两个测试类,并对C1编译:

//C1.cs  @cmd prompt: csc /t:library C1.cs

public class C1
{
public string Name{get;set;}
public int Age{get;set;}
}

//Program.cs   @cmd prompt: csc /r:C1.dll  Program.cs

using System;
public class Program
{
static void Main()
{
C1 c1 = new C1{Name="Jack"};
Console.WriteLine(string.Format("c1's name is {0}",c1.Name));
Console.ReadKey();
}
}

1.编译Program时,由于我们指定的非绝对路径,所以搜索到Program的当前工作目录即结束,我们亦可尝试将C1.Dll剪切到其他工作目录,并指定完整路径进行编译。

2.将C1.dll剪切到csc工作目录C:\Windows\Microsoft.NET\Framework\v3.5(视具体环境而定),编译不通过,what r u doing?

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1291 | 返回顶部

面向对象诠释图

This Article is Published by Live Writer。

from Tyl2008

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1088 | 返回顶部

about GFW


Original Video- More videos at TinyPic

Tags: GFW

分类:Life | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1174 | 返回顶部
The problem the user is seeing is that the Thread ctor accepts a specific delegate -- the ThreadStart delegate. The C# compiler will check and make sure your anonymous method matches the signature of the ThreadStart delegate and, if so, produces the proper code under-the-covers to create the ThreadStart delegate for you.
But Control.Invoke is typed as accepting a "Delegate". This means it can accept any delegate-derived type. The example above shows an anonymous method that has a void return type and takes no parameters. It's possible to have a number of delegate-derived types that match that signature (such as MethodInvoker and ThreadStart -- just as an example). Which specific delegate should the C# compiler use? There's no way for it to infer the exact delegate type so the compiler complains with an error.

Tags: System.Delegate

分类:C# | 固定链接 |评论: 1| 引用: 0 | 查看次数: 1171 | 返回顶部

(推荐)VS2010最新AD-想做你的code

Tags: DongPad

分类:Life | 固定链接 |评论: 0| 引用: 0 | 查看次数: 927 | 返回顶部

2010伊始小记

步入2010已经个月有长,小博久不见经传,在此小记一笔,谨以此为2010的奋斗拉开帷幕。来自生活中的各种压力是接踵而至,希望拨开乌云看见天的情怀亦是强烈的很。只言片语,但愿回头看时又是另一番滋味。愿愿愿愿愿。

Tags: DongPad

分类:Life | 固定链接 |评论: 2| 引用: 0 | 查看次数: 950 | 返回顶部

IA-32、IA-64英特尔架构(Intel Architecture)

IA64(Intel Architecture)架构

IA64是惠普和Intel携手开发的新一代64位的计算机芯片。
IA64处理器I-tanium(安腾)是Intel自推出32位微处理器以来,在高性能计算机领域的又一座里程碑。基于IA64处理器架构的服务器具有64位运算能力、64位寻址空间和64位数据通路,突破了传统IA32架构的许多限制,在数据的处理能力,系统的稳定性、安全性、可用性、可观理性等方面获得了突破性的提高。


查看全部...

Tags: DongPad

分类:Study | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1661 | 返回顶部

推荐两个免费Visual Studio插件

This Article is Published by Live Writer。

文章原出处http://www.colobu.com,更多插件参见这里

5. Copy As HTML

http://www.lavernockenterprises.co.uk/downloads/copyashtml/copyashtml.aspx

Copy As HTML是一个轻量级的VS插件。你可以利用它在VS中以HTML格式复制你的代码。在复制时它可以保留语法加亮,缩进和背景色,行数等等,方便你复制你的代码到你的博客、文档中。

8. PowerCommands for Visual Studio 2008

http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=PowerCommands&ReleaseId=559

为VS提供了一堆的命令扩展。

Tags: DongPad

分类:C# | 固定链接 |评论: 1| 引用: 0 | 查看次数: 1257 | 返回顶部

ZT-数据公钥加密和认证中的私钥公钥

This Article is Published by Live Writer。
基于公开密钥的加密过程
  1. Bob将他的公开密钥传送给Alice。
  2. Alice用Bob的公开密钥加密她的消息,然后传送给Bob。
  3. Bob用他的私人密钥解密Alice的消息。

基于公开密钥的认证过程
  1. Alice用她的私人密钥对文件加密,从而对文件签名。
  2. Alice将签名的文件传送给Bob。
  3. Bob用Alice的公钥解密文件,从而验证签名。

原文参见:数据公钥加密和认证中的私钥公钥

Tags: DongPad

分类:Study | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1023 | 返回顶部
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | > >>