Microsoft Developer Network > Samples >
Official Visual Studio 2010 Samples for C# 4.0

Official Visual Studio 2010 Samples for C# 4.0

These are the official samples for Visual Studio 2010 C# 4.0.


Select a language
 
 
 
 
 
(26)
36,713 times
11/30/2011
E-mail Twitter del.icio.us Digg Facebook
Add To Favorites
Description
View Samples
Q and A (7)
Sort By:
91 Samples
This sample shows a simple ADO.NET Data Service exposing data through the ADO.NET Entity Framework and a WPF application consuming the ADO.NET Data Service.
5/25/2011
22,699 Downloads
(17)
This project contains about 101 samples using LINQ.
5/31/2011
29,899 Downloads
(46)
This sample shows different uses of Restriction Operators.
6/28/2011
1,339 Downloads
C#
(3)
This sample shows different uses of Projection Operators
6/28/2011
705 Downloads
C#
(0)
This sample shows different uses of Join Operators
6/28/2011
694 Downloads
C#
(1)
This sample shows a WPF application built on top of the Microsoft ADO.NET Entity Framework. The application shows how the Entity Framework can be used in some common design patterns that promote testability and maintainability of code.
5/25/2011
7,064 Downloads
(9)
This sample shows different uses of Aggregate Operators
6/28/2011
477 Downloads
C#
(1)
This sample shows different uses of Grouping Operators
6/28/2011
561 Downloads
C#
(0)
This sample demonstrates the following threading techniques. See Threading (C# Programming Guide) for more information.
Creating, launching, and terminating a thread
Using a thread pool
Thread synchronization and interaction
This sample code is provided to illustrate a concept an
11/29/2011
424 Downloads
C#
(1)
This sample shows different uses of Ordering Operators
6/28/2011
372 Downloads
C#
(0)
1 - 10 of 91 Items   
« First   < Prev   1  2  3  4  5  6  7  8  9  10    Next >   Last »
Sign in to Ask a Question


  • DynamicQuery
    1 Posts | Last Post January 23, 2012
    • Hi I don't see the DynamicQuery sample included in the pack anymore.
  • How to target Office 2007 and 2010 in the same click-once app?
    1 Posts | Last Post January 18, 2012
    • Hello,
      
      VSTO, PIA, PIA-LESS, Interop... I'm confused.  What is the current best practice for building a click once app for Office   2007 and 2010.
      
      I've got a c# clickonce app that I developed five years ago that uses interop to create an excel file.  I need to update it to support client computers that have either office 2007 OR 2010 on them.
      
      I think i just need to know what references to use and what settings to use in the [Application Files...] and [Prerequisites...] section of the Properties-Publish tab.
      
      I'm now using VS2010 targeting .NET Framework 4 Client Profile
      
      The potentially relevant Includes I am currently using are:
      	Microsoft.Build.Engine
      	Microsoft.CSharp
      	Microsoft.Office.Interop.Excel, Version=14.0.0.0
      	Microsoft.Office.Tools, Version=10.0.0.0
      	Microsoft.Office.Tools.Common, Version=10.0.0.0
      	Microsoft.Office.Tools.Common.v4.0.Utilities, Version=10.0.0.0
      	Microsoft.Office.Tools.Excel, Version=10.0.0.0
      	Microsoft.Office.Tools.v4.0.Framework, Version=10.0.0.0
      	Microsoft.VisualStudio.Tools.Applications.Runtime, Version=10.0.0.0
      	System.Data.DataSetExtensions
      	System.Deployment
      
      For Prerequisites I've got 
      	[x] .NET Framework 4 Client Profile (x86 and x64)
      	[x] VS 2010 Tools for Office Runtime(x86 and x64)
      Do I also need MS Office 2007 Primary Interop Assemblies?
      
      my code looks like this:
      
         Microsoft.Office.Interop.Excel.Application xl = new Microsoft.Office.Interop.Excel.Application();
         xl.Workbooks[1].SaveAs(outputFileName, Type.Missing, Type.Missing, Type.Missing,...
      
      Any help or pointers to a more appropriate forum appreciated.
      
      Cheers,
      Jeff
      
  • Great Job!
    1 Posts | Last Post January 10, 2012
    • Excellent samples!!! Great job!! Keep up the great work!
      
  • 解压压缩包时出现如下错误
    2 Posts | Last Post December 22, 2011
    • !   C:\Users\zhaojie\Desktop\C%23 4.0 的 Visual Studio 2010 示例.zip: 无法创建 “COM 互操作 - 第一部分”示例\COMInteropPart1.sln
          系统找不到指定的路径。
      ……
      很多,上边是个示例
    • Hi, I believe something might have gone wrong when the download was auto generated. I'll have our team follow up on the error. Sorry about the inconvenience.
  • C# 4.5
    2 Posts | Last Post December 22, 2011
    • Will there be samples for coming VS 2011 with C# 4.5 samples?
    • Hi Steef-Jan, Yes there will be C# 4.5 samples at the time of Visual Studio 2011 RTM.
  • 英文版的正常。
    2 Posts | Last Post December 22, 2011
    • 简体中文版和繁体中文版的压缩包都有问题。英文版的正常,建议下载英文版的。
    • 嗨,你能帮助我们解决问题张贴你的错误?我们的团队会说英语,所以,如果你能后您在英国的反应,将有很大的帮助。
      我也将有我们的国际团队与您联系
  • 压缩包有问题
    1 Posts | Last Post December 22, 2011
    • 释放文件出错。