Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Difference between the out and ref keyword in C#

AddThis Social Bookmark Button
To pass an argument by reference in C# , we use the keyword ref . There is also another keyword “out” which can also be used to pass an argument by reference . Below is a sample code demonstrating the usage of the out and ref keyword. class Employee { /* usage of the pass by reference using the keyword out */ public void SQRT1(out int i) { i = 10; i = i + i; } /* usage of the pass by reference using the keyword ref */ public void SQRT2(ref int i) { i = 10; i =
i + i; } } class Program { public static void Main1() { Employee studentObj = new Employee(); int i; studentObj.SQRT1(out i); int j=1; studentObj.SQRT2(ref j); Console.WriteLine("i: " + i); } } What is the difference between out and ref keyword in C# ? The variable has to be initialized when it is passed by ref keyword . The variable need not be initialized when using the out keyword but the value should be assigned inside the calling function....(Read whole news on source site)

An "is" operator puzzle, part one

AddThis Social Bookmark Button
It is possible for a program with some local variable x: bool b = x is FooBar; to assign true to b at runtime, even though there is no conversion, implicit or explicit, from x to FooBar allowed by the compiler! That is, FooBar foobar = (FooBar)x; would not be allowed by the compiler in that same program. Can you create a program to demonstrate this fact? This is not a particularly hard puzzle but it does illustrate some of the subtleties of the "is" operator that we'll discuss in the next episode.

New Visual Studio 2012 Debugging Features for the Windows 8 App Lifecycle Model

AddThis Social Bookmark Button
Windows 8 brings a new app lifecycle model, in which Windows Store apps are automatically managed for the user. These apps always feel alive, even though they never run when they’re off the screen. This provides great benefits for power consumption and battery life. Here are a few related blog posts we recommend for background reading on this topic: Building Windows 8 Blog: Building a power-smart general-purpose Windows (see “The Metro style application model” section) Building Windows 8 Blog: Improving power efficiency for applications (explains the different app states) Windows 8 app developer blog: Managing app lifecycle so your apps
feel "always alive" (explains how to program for the different lifecycle states) In this post, we’ll take a look at what this all means for debugging. Of all the debugging advances we made in Visual Studio 2012 (from JavaScript debugging, to the Windows 8 Simulator, to remote debugging on Windows RT devices), the debugging experience for Windows 8 lifecycle states and background tasks was one of the most challenging to design! Simulating events The first challenge we encountered in this process was how to simulate the events your app would encounter with real world usage, so that you could debug...(Read whole news on source site)

I messed up my checkin failure conflict resolution with the TFS Integration Tools… Now what?

AddThis Social Bookmark Button
If you say my post on “TFS Integration Tools – Issue: TF10141 No Files checked in as a result of a TFS check-in failure” which I just updated you will know that I messed up the conflict resolution by mixing up the “Source Version” and “Target Version”. Figure: Mixing up the Source and Target [...]-Are you adopting Visual Studio, Team Foundation Serve or Agile? Are you stuck in a rut? Let us help you... email This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Event: Microsoft’s Kamal Hathi to Lead World-Class Agenda

AddThis Social Bookmark Button
We are excited to announce that Microsoft Director of SQL Server Business Intelligence Kamal Hathi will be delivering the keynote at PASS SQLRally Nordic 2012, kicking off the main program Tuesday, October 2. Meet him and a large contingent of top international speakers at one of the world’s biggest SQL Server and BI events this year in Copenhagen, October 1-3. You can now view the agenda details, including 4 full-day pre-conference sessions and 30 main conference sessions across three tracks.
Learn the latest about SQL Server database administration, database and
application development, Big Data, and Business Intelligence. And connect and have fun with over 500 fellow SQL Server professionals and MVPs at a special attendee party. Join us for a unique learning experience. And don’t miss your chance to save EUR100 with EARLY BIRD REGISTRATION by booking today (offer closes on 24th August.
...(Read whole news on source site)