ASP.NET News from Blogger:
C# Frequently Asked Questions
Total News: 57
If you’ve held off on trying Visual Studio 11 Beta because your .NET 4 or Silverlight 5 app uses the Async CTP, your wait is over! Today we’ve published the Async Targeting Pack for ...
As you may have seen in Jasons blog, Visual Studio 11 Beta is available for download today, including the Beta version of C# 5.0! If youve tried out the Visual Studio 11 Developer Preview, you a...
By Brian Rasmussen
The Roslyn Services API makes it easy to implement extensions that detect and fix code issues directly in Visual Studio. The Roslyn Services API is available as part of the Ro...
by Alan Berman
I'm intrigued by all the interesting industry apps being developed for the Kinect. I started wondering how easy it is to start programming the Kinect using Visual Studio on a PC.&...
There's been a lot of posts on using the Roslyn CTP APIs for syntax trees, semantic binding, and IDE smart editor features. The Roslyn CTP also introduces a set of features for C# we refer to ...
The new Async feature in Visual Studio makes it easy to code asynchronous method calls. To make synchronous code asynchronous, you can simply call an asynchronous method instead of a synchronous metho...
by Brian Rasmussen
In this post we take a look at how the Roslyn Scripting API can enable applications to evaluate code at runtime. While this has been possible since the dawn of .NET through the use ...
by Kevin Pilch-Bisson Im back again, to move along to the next stage of the compiler pipeline, and take a look at working with Symbols in the using the Roslyn CTP. The Roslyn CTPs symbol API pro...
Hi All! A few weeks ago, we announced the Microsoft "Roslyn" CTP. I hope many of you have had a chance to download the CTP and take it for a spin :) If you haven’t, do give it a try.
To recap ...
By Kevin Pilch-Bisson As promised back when we released the Roslyn CTP, here is the first of a series of blog posts that help explain the various parts of the Roslyn API. If you dont have the Roslyn ...
By Kevin Pilch-Bisson
As Soma mentioned earlier, today we’ve made a Community Technology Preview (CTP) available for download! The Roslyn project is a forward looking effort to make the wealth...
By Emily Gibson New! C# 2010 Soup to Nuts Series Explore this webcast series on Visual C# 2010 presented by Developer Evangelist, Bill Steele. Learn about class libraries, operator basics, branching...
Some great new video's on MSDN showing how to do async programming using the Async CTP.
http://msdn.microsoft.com/en-us/vstudio/hh378091.aspx
There are different versions of video's for both VB and C#...
By Jeremy Meng
Visual Studio Async CTP (SP1 Refresh) is available now! You are welcome to download and try it out!
Thanks to the new Async feature coming in Visual Basic and C# it has never been so ea...
This blog post explains how to kick off a debugger in a remote machine, programmatically. We are going to use WMI interfaces to achieve this. Use WMI, to start the debuggee process and attach a regist...
Do you want to work on a product used by millions of developers around the world? I do! Come join me to deliver Visual Studio, the set of developer tools used across Microsoft and around t...
Learn about the upcoming changes to the Help Viewer planned for Visual Studio 2010 SP1. Paul ORear, a Program Manager on the Library Experience team, describes the changes planned and demonstrat...
Today we announced the Visual Studio Async CTP, which shows one of the major features we plan to include in a future release of C# and Visual Basic. This feature makes development of asynchronous appl...
I've talked a lot about improved COM interop in C# 4.0 and how much easier it is now to work with Office applications. This time I want to share some tips and tricks on how you can convert Visual Basi...
This time I want to discuss features that belong to the new System.Collections.Concurrent namespace in the.NET Framework 4. When you design parallel applications, you often need thread-safe data stora...
Alexandru Ghiondea from the C# team created an excellent deck of slides that he used at Microsoft Days 2010 in Bulgaria. The C# team reused the deck several times for User Groups' presentations and ta...
In this post, which is the third one in my parallel programming introduction series, I want to show how you can cancel parallel operations when working with the Task Parallel Library (TPL). Im going t...
Thanks to everyone who provided feedback on my previous post Parallel Programming in .NET Framework 4: Getting Started. As promised, I am continuing the series. This time, let’s go a little bit ...
With this post I want to start a series devoted to the new parallel programming features in .NET Framework 4 and introduce you the Task Parallel Library (TPL).
I have to admit that I’m not an ex...
After a quick review of C# language features, lets do the same for the IDE improvements. So, whats in there for C# developers?
Generate From Usage
This feature greatly improves Visual Studio support f...
Visual Studio 2010 is here! And of course this means that C# 4.0 is also here. Lets do a quick review of the new language features added in this release.
Dynamic
The dynamic keyword is a key feature o...
Crystal Reports has been a part of Visual Basic since 1993, and a part of Visual Studio since its first release in 2002. Crystal Reports has been a very successful component of these products. With t...
This is a follow-up to the Getting Information About Objects, Types, and Members with Expression Trees post, so I would recommend that you read that one first. Among other code examples in that blog ...
In this post Ill try to answer the most common questions I find on forums and in documentation feedback about C# covariance and contravariance. Its a big topic for a single blog post, so expect to see...
Lets take a quick look at the object keyword first. Im not going to talk a lot about it because its been around since C# 1.0. This keyword is nothing more than a shortcut for System.Object, which is t...
Starting with C# 3.0 and Visual Studio 2008, you can use expression trees to get information about objects, types, and members. In this post Im going to show some examples and explain what benefits yo...
First of all, lets take a look at the example from one of my previous posts. It creates an expression tree for calculating the factorial of a number. ParameterExpression value =
Expression.Param...
In the previous post I showed how you can use the new dynamic feature and the ExpandoObject class to add and remove properties at run time, and how this can make your code more readable and flexible t...
You have probably already heard about the new dynamic feature in C# 4.0 and how it is used to support COM interop. If you haven't, I strongly recommend reading the following MSDN articles: Using Type ...
Expression trees first appeared in Visual Studio 2008, where they were mainly used by LINQ providers. You can use expression trees to represent code in a tree-like format, where each node is an expres...
LINQ provides a convenient syntax and many useful methods for operating with collections of objects. However, to be correctly processed by LINQ comparison methods such as Distinct or Intersect, a type...
Lets start with the basics and maybe repeat some information that many of you already know. One of the most important concepts in LINQ performance and optimization is, of course, deferred execution. I...
It is a common practice to store passwords in databases using a hash. MD5 (defined in RFC 1321) is a common hash algorithm, and using it from C# is easy.
Heres an implementation of a method that conve...
Visual Studio offers tons of useful debugging features and allows you to step through your code line-by-line. However, there are times when you dont want to step through your application, but want to ...
Sometimes, you might want to make your application a bit more audible. If you are using .NET 2.0, you can utilize the new System.Media namespace and its SystemSound and SystemSounds classes.
The Syste...
Often, you need a way to monitor your applications once they are running on the server or even at the customer site -- away from your Visual Studio debugger. In those situations, it is often helpful t...
When you have struct objects as the key in a hashtable, the lookup operation of the hashtable performs miserably. This can be attributes to the GetHashCode() function which is used internally to do t...
tipu_77 asked "What are microsoft suggested naming conventions in C#" The .NET Framework Team collects their recommendations at their GotDotNet community site. which points to a ...
All the /target: options except module create .NET assemblies. Depending on the option, the compiler adds metadata for the operating system to use when loading the portable executable (PE) file and fo...
Strictly speaking you can't, since const can only be applied to a field or local whose value is known at compile time. In both the lines below, the right-hand is not a constant expression (not in C#)....
The difference is that the value of a static readonly field is set at run time, and can thus be modified by the containing class, whereas the value of a const field is set to a compile time constant. ...
Use the System.Environment class.Specifically the GetEnvironmentVariable and SetEnvironmentVariable methods.Admitedly, this is not a question specific to C#, but it is one I have seen enough C# progra...
Now that Whidbey has been out in Beta for more than a few months, it seems worth revisiting some frequently asked questions which have different (better) answers now. In Everett (v7.1) the answer ...
VS .NET allows you to add any number of external tools to the Tools menu. One very helpful technique is to configure ildasm.exe to automatically load up the current assembly being compiled. While VS...
Working with events under the .NET platform requires you to be aware of a number of details. For example, if you know the name of the event you wish to handle, you must then know the name of the rela...
View Other bloggers