Geeks With Blogs
Tom Fischer September 2008 Entries
TFS Error: The item does not exist at the specified version
After moving a branch from one TFS server to another I got the error: "The item \$TFSProject\mylocation\myf... does not exist at the specified version". First I thought the Check in was buggy and went to another machine. And like a miracle it worked there. Then I googled and found out that this usually relates a messed up workspace. Especially the following link was very interesting: http://forums.microsoft.com... But this was not my problem. I had two ......

Posted On Tuesday, September 30, 2008 5:15 PM

When to create a new TFS project or reuse an existing one
I am sorry this is not a C# blog today. I am still in TFS land :-) Recently I was talking to different people about when to create a new TFS project or reuse an existing one. Here is what I got out of the conversations: - Too many projects slow down the server and are hard to maintain. (Depending on the project type, TFS 2008 has an upper limit of around 200 - 500 projects) - Security on too many projects can be very hard to maintain (especially keeping track of current permissions, removing expired ......

Posted On Monday, September 29, 2008 4:47 PM

C# and the using Statement in 3 seconds and a bug in Reflector
Using() Statement in 3 seconds and a bug in Reflector The boring, known accross the board definition from the MSDN site: Defines a scope, outside of which an object or objects will be disposed The more interesting definition from Tom: The using() Statement generates a try{} finally{ //virtual call of the dispose method } block with null check! Let's take a deeper look. Let's write two test methods first: //Testmethod for Using public static void UsingTest() { using (SqlConnection con = new SqlConnection()) ......

Posted On Monday, September 15, 2008 4:03 PM

C# Events and Delegates in 3 seconds
C#, Events and Delegates as an Elevator Pitch - Or in 3 seconds Here are the elevator pitches you should know about events and delegates: A Delegate is a (or collection of) strongly typed FunctionPointer(s) An Event is a wrapped Delegate But to be honest this is not big news and not the reason for this blog. I thought this would make a nice starter... Like when you go for a nice dinner. Today I had the chance to look under the hood and I was astonished to see what really happens. This made me think... ......

Posted On Friday, September 12, 2008 4:35 PM

C# and the difference between out and ref
C#: The difference between out and ref. Today we had an interesting discussion about out and ref in C#. Here is a very quick elevator pitch summary: The MSDN documentation (http://msdn.microsoft.com/... is very good on that and it says: "The out keyword causes arguments to be passed by reference. This is similar to the ref keyword, except that ref requires that the variable be initialized before being ......

Posted On Wednesday, September 10, 2008 11:29 AM

C# (or .NET): Primitive Types, Value Types, Reference Types and System.ValueType.
C# (or .NET): Primitive Types, Value Types, Reference Types and System.ValueType. I think this is one of the most important topics in .NET, but it is interesting to see what kind of misunderstandings are out there. Even with programmers who have used .NET for years. DISCLAIMER 1: The goal of this blog entry is not to give another in depth, all-encompasing overview - but rather a summary of the conversations I've had with people and a summary of some confusing MSDN documentation. Also I won't address ......

Posted On Thursday, September 4, 2008 2:22 PM

Copyright © ftom | Powered by: GeeksWithBlogs.net