<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>张文杰的博客 &#187; Visual Studio</title>
	<atom:link href="http://zhangwenjie.net/archives/category/visual-studio/feed" rel="self" type="application/rss+xml" />
	<link>http://zhangwenjie.net</link>
	<description>技术、生活博客</description>
	<lastBuildDate>Mon, 24 Oct 2011 14:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Visual Studio 2010初体验</title>
		<link>http://zhangwenjie.net/archives/372</link>
		<comments>http://zhangwenjie.net/archives/372#comments</comments>
		<pubDate>Sat, 17 Apr 2010 12:43:02 +0000</pubDate>
		<dc:creator>zhangwenjie</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://zhangwenjie.net/?p=372</guid>
		<description><![CDATA[从朋友那里借到Visual Studio 2010旗舰版安装盘，然后在自己的Server 2008 R2系统上安装体验了一下。

　　先大初看一下Visual Studio 2010旗舰版安装完成后，会在系统中安装多少个东东：]]></description>
			<content:encoded><![CDATA[<p>　　从朋友那里借到Visual Studio 2010旗舰版安装盘，然后在自己的Server 2008 R2系统上安装体验了一下。</p>
<p>　　先大初看一下Visual Studio 2010旗舰版安装完成后，会在系统中安装多少个东东：</p>
<p>　　</p>
<div id="attachment_373" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/04/vs2010.jpg"><img class="size-medium wp-image-373" title="vs2010" src="http://zhangwenjie.net/wp-content/uploads/2010/04/vs2010-300x196.jpg" alt="vs2010" width="300" height="196" /></a><p class="wp-caption-text">vs2010</p></div>
<p>　　这是启动界面：</p>
<p>　　</p>
<div id="attachment_374" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/04/startup.jpg"><img class="size-medium wp-image-374" title="vs2010启动界面" src="http://zhangwenjie.net/wp-content/uploads/2010/04/startup-300x252.jpg" alt="vs2010启动界面" width="300" height="252" /></a><p class="wp-caption-text">vs2010启动界面</p></div>
<div id="attachment_375" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/04/startup2.jpg"><img class="size-medium wp-image-375" title="vs2010启动界面" src="http://zhangwenjie.net/wp-content/uploads/2010/04/startup2-300x187.jpg" alt="vs2010启动界面" width="300" height="187" /></a><p class="wp-caption-text">vs2010启动界面</p></div>
<p>　　让我们用随Visual Studio 2010带的F#写个小程序:</p>
<div id="attachment_376" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/04/F.jpg"><img class="size-medium wp-image-376" title="F#小程序" src="http://zhangwenjie.net/wp-content/uploads/2010/04/F-300x227.jpg" alt="F#小程序" width="300" height="227" /></a><p class="wp-caption-text">F#小程序</p></div>
<p>　　然后运行之:</p>
<div id="attachment_377" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/04/F2.jpg"><img class="size-medium wp-image-377" title="F#小程序" src="http://zhangwenjie.net/wp-content/uploads/2010/04/F2-300x168.jpg" alt="F#小程序" width="300" height="168" /></a><p class="wp-caption-text">F#小程序</p></div>
<p>　　我们再来看一下Visual Studio 2010的智能提示的改进：</p>
<div id="attachment_382" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/04/hint.jpg"><img class="size-medium wp-image-382" title="Visual Studio 2010智能提示" src="http://zhangwenjie.net/wp-content/uploads/2010/04/hint-300x105.jpg" alt="Visual Studio 2010智能提示" width="300" height="105" /></a><p class="wp-caption-text">Visual Studio 2010智能提示</p></div>
<p style="text-align: center;"> </p>
<p>　　大家能看出相比Visual Studio 2008的改进了吗？它不再列出所有的成员然后导航到你要的成员，而是只列出你想要的成员，比以前精简多了。</p>
<p>　　今天Visual Studio 2010体验先写到这里，以后会不定期与大家分享更多Visual Studio 2010使用情况。</p>
<p>　　</p>
<p>　　原创文章如转载，请注明：转载自<a title="张文杰的博客" href="http://zhangwenjie.net/">张文杰的博客</a> [ <a title="张文杰的博客" href="http://zhangwenjie.net/">http://zhangwenjie.net</a> ]</p>
<p>　　本文链接地址：<a href="http://zhangwenjie.net/archives/372.html">http://zhangwenjie.net/archives/372.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zhangwenjie.net/archives/372/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Visual Studio新发现</title>
		<link>http://zhangwenjie.net/archives/332</link>
		<comments>http://zhangwenjie.net/archives/332#comments</comments>
		<pubDate>Wed, 24 Mar 2010 13:27:12 +0000</pubDate>
		<dc:creator>zhangwenjie</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[VS2008]]></category>

		<guid isPermaLink="false">http://zhangwenjie.net/?p=332</guid>
		<description><![CDATA[打开你的Visual Studio开发环境（我用的是VS2008英文版本），并打开一个工程。这时，按下ctrl+Tab键，你看到了什么？不错，就是下面的样子：]]></description>
			<content:encoded><![CDATA[<p>　　这个所谓的新发现可以大家已经用过了，不过对我来说是个新鲜玩意。</p>
<p>　　打开你的Visual Studio开发环境（我用的是VS2008英文版本），并打开一个工程。这时，按下ctrl+Tab键，你看到了什么？不错，就是下面的样子：</p>
<p>　　</p>
<div id="attachment_333" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/03/vs.jpg"><img class="size-medium wp-image-333" title="vs" src="http://zhangwenjie.net/wp-content/uploads/2010/03/vs-300x175.jpg" alt="VS界面" width="300" height="175" /></a><p class="wp-caption-text">VS界面</p></div>
<p>　　从这里你可以选择工程中的每个文件，以及属性窗口、解决方案管理器窗口、类视图、工具箱、服务器资源管理器等窗口，大大方便了在开发过程。这种用键盘选择窗口及工具的方法要比鼠标要来得快多了，尤其适合高手们使用。</p>
<p>　　如果你还没有发现这个技巧，从现在开始就掌握它。你的开发过程将更顺畅。</p>
<p>　　</p>
<p>　　原创文章如转载，请注明：转载自<a title="张文杰的博客" href="http://zhangwenjie.net/">张文杰的博客</a> [ <a title="张文杰的博客" href="http://zhangwenjie.net/">http://zhangwenjie.net</a> ]</p>
<p>　　本文链接地址：<a href="http://zhangwenjie.net/archives/332.html">http://zhangwenjie.net/archives/332.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zhangwenjie.net/archives/332/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET Framework 4.0中的按需构造:Lazy</title>
		<link>http://zhangwenjie.net/archives/263</link>
		<comments>http://zhangwenjie.net/archives/263#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:09:03 +0000</pubDate>
		<dc:creator>zhangwenjie</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://zhangwenjie.net/?p=263</guid>
		<description><![CDATA[假设您正在编写一个应用程序，在某些情况下需要使用一个特定对象。此外，假设您需要的对象的创建和使用是非常昂贵的,你不想每次您的应用程序运行时都创建它，只在你需要它的时候才创建它...]]></description>
			<content:encoded><![CDATA[<p>　　假设您正在编写一个应用程序，在某些情况下需要使用一个特定对象。此外，假设您需要的对象的创建和使用是非常昂贵的,你不想每次您的应用程序运行时都创建它，只在你需要它的时候才创建它。</p>
<p>　　当然你可以自己管理这一切，但 Lazy&lt;T&gt;将使这个任务变得容易。你只需要在那个”昂贵”的对象上创建一个 lazy包装器：</p>
<pre lang="C#">Lazy&lt;ExpensiveResource&gt; ownedResource = new Lazy&lt;ExpensiveResource&gt;();</pre>
<p>　　然后你可以简单引用 ‘ownedResource.Value’来获取那个”昂贵”的对象。当你第一次访问ownedResource.Value时,这个”昂贵”的资源才会被分配，而不是以前就分配。</p>
<p>　　Lazy&lt;T&gt;同时还有一个boolean属性，叫IsValueCreated，你可以检查这个属性来查看值是否已经创建。</p>
<p>　　<strong>支持没有默认构造函数的类型</strong></p>
<p><strong>　　</strong>Lazy&lt;T&gt; 不会强制new()约束。你可以在支持不同构造函数，甚至工厂方法实例化的类型上使用Lazy&lt;T&gt;。第二个构造函数指定一个返回新”昂贵”资源的泛型方法：Func&lt;T&gt;：</p>
<pre lang="C#">Lazy ownedResource = new Lazy(    () =&gt; new ExpensiveResource("filename.data"));</pre>
<p>　　你可以使用这个第二个构造函数来更好的控制使用什么样的代码来创建这个”昂贵”的资源。我在这使用了一个不同的构造函数，但你可以使用工厂方法、IOC容器、或其它方法。</p>
<p>　　<strong>我们生活在多核的世界</strong></p>
<p><strong>　　 </strong>Lazy&lt;T&gt;另有两个其它构造函数：</p>
<pre lang="C#">public Lazy(bool isThreadSafe);
public Lazy(Func&lt;T&gt; valueFactory, bool isThreadSafe);</pre>
<p>　　这两个构造函数指示出程序运行在多核的环境中。”昂贵”对象延迟(lazy)创建必须进行同步。（毕竟是”昂贵”对象，你不会需要两个这种对象）。</p>
<p>　　这是一个简单的类型，但正是这些类型你将一次又一次使用他们。</p>
<p>　　首发张文杰的博客:http://zhangwenjie.net （转载请保留，谢谢）。本文地址： http://zhangwenjie.net/archives/263.html <a href="options-permalink.php" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zhangwenjie.net/archives/263/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>微软确定正式发布Visual Studio 2010和.NET Framework 4的日期</title>
		<link>http://zhangwenjie.net/archives/239</link>
		<comments>http://zhangwenjie.net/archives/239#comments</comments>
		<pubDate>Fri, 15 Jan 2010 05:08:07 +0000</pubDate>
		<dc:creator>zhangwenjie</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[.NET Framework 4]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[微软]]></category>

		<guid isPermaLink="false">http://zhangwenjie.net/?p=239</guid>
		<description><![CDATA[2009年年底微软Visual Studio开发部门高级主管Somasegar宣布，由于受性能问题的影响，微软决定延长Visual Studio 2010和.NET Framework 4的测试阶段，因此原定于2010年3月22日正式发布的Visual Studio 2010和.NET Framework 4将无法如期发布，用户要多等待几周。。。]]></description>
			<content:encoded><![CDATA[<p>　　2009年年底微软Visual Studio开发部门高级主管Somasegar宣布，由于受性能问题的影响，微软决定延长Visual Studio 2010和.NET Framework 4的测试阶段，因此原定于2010年3月22日正式发布的Visual Studio 2010和.NET Framework 4将无法如期发布，用户要多等待几周。</p>
<p>　　现在微软终于确定了Visual Studio 2010和.NET Framework 4的正式发布日期，微软Visual Studio开发架构师Rob Caron在官方博客中写道：“有一个简短的好消息，<strong>Visual Studio 2010和.NET Framework 4将在2010年4月12日周一正式发布。 </strong>”</p>
<p>　　微软去年10月份发布了Visual Studio 2010和.NET Framework 4的Beta 2，之后很多用户反映其性能方面存在很多问题，尤其是在一些关键的方面比如虚拟内存使用。为了完全解决存在的性能问题，微软决定延长测试阶段，新增RC候选版本，预计在2010年2月发布。</p>
<p>　　Visual Studio 2010包括旗舰版、高级版和专业版。自Visual Studio 2010 Beta 2开始正式启用了新的Logo，其正式版售价也已经确定，完整版Visual Studio 2010售价如下：旗舰版为11924美元、高级版为5469美元、专业版为1199美元；升级版Visual Studio 2010售价分别为：3841美元、2299美元、799美元。</p>
<p><span style="text-decoration: underline;"><span style="color: #800080;"></p>
<div id="attachment_240" class="wp-caption aligncenter" style="width: 310px"><a href="http://zhangwenjie.net/wp-content/uploads/2010/01/vs2010.jpg"><img class="size-full wp-image-240" title="vs2010" src="http://zhangwenjie.net/wp-content/uploads/2010/01/vs2010.jpg" alt="vs2010" width="300" height="169" /></a><p class="wp-caption-text">Visual Stusio 2010</p></div>
<p></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://zhangwenjie.net/archives/239/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

