Sends for the fellow dear visitors:
Welcome to DongPad!
本文主要介绍了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
@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?
from Tyl2008
Powered By DongPad CopyRight 2008-2009, xhtml | css
Processed in 0.046 seconds(s) , 沪ICP备08111450号