Source code control for Visual Studio 2005

The hype surrounding Visual Studio 2005 almost makes you not notice all the other upcoming Microsoft developer products which will accompany VS2K5. One of these products is the new source code control system. This January at the ASP.Net 2.0 roadshow in Amsterdam, Scott Guthrie (leading engineer on the ASP.Net 2.0 team) described the new source …

Read More “Source code control for Visual Studio 2005”

Internal MS coding guidelines

Brad Abrams posted the internal MS Coding guidelines on his blog earlier this year.Interesting reading stuff!I tested my own code against these guidelines. I think I would pass…. 😉

Converting string to enumeration value

Questa posted a very usefull piece of code…It’s possible to convert a string representation of an enum back to an enum!  private enum MyEnumeration  {      FooBar,      Foo,      Bar  }  …  MyEnum foo = MyEnum.Foo;  string foobar = foo.ToString();  MyEnum bar = (MyEnum)Enum.Parse(typeof(MyEnum), foobar);At the end of this code, the variable ‘bar’ has the MyEnum value ‘Foo’, just …

Read More “Converting string to enumeration value”

“Object does not match target type” error calling a method on an assembly loaded using reflection

Actually, the cause for this error is very small and simple. But because the error doesn’t clearly state what’s wrong and there’s not a lot to be found about this, I’ll post it here anyway… Otherwise, you might be looking for this for a while, while it’s so easy!When you are loading an assembly using …

Read More ““Object does not match target type” error calling a method on an assembly loaded using reflection”

Parameterized queries

Stored Procedures rule, because they facilitate manipulating the dataset you get from a database or the way you are inserting or deleting data in a database without changing your application. Or your business layer for that matter. But you can’t always use stored procedures for the actions you would like your application to take. Or …

Read More “Parameterized queries”

Creating events using delegates

After promising you a post on using delegates to create events several times, I’m now using my break to post it. Because it will be a while if I wait until I can find the time… 😉As I mentioned earlier a delegate can be seen as an interface for a method. Because you don’t know …

Read More “Creating events using delegates”

A*%holes

They stole my leather jacket this weekend, containing my wallet and my keys. Assholes. First thing I learned as a kid: leave other people’s stuff alone! Why is it some people simply don’t have the decency to work for the things they want? I do… Just like all of my friends. And although you might …

Read More “A*%holes”

New phone on the way …

My new phone is on the way! I ordered it yesterday, and faxed all of the necessary info today. So if all goes well, I’ll be calling you using this baby next week!This is the MDA III, provided by T-Mobile. It’s actually the QTek 9090, but T-Mobile placed their own logo on it. It has integrated …

Read More “New phone on the way …”

Personal update

Just a quick personal update: my carchoice has been approved and the car is currently on it’s way. Just a few more weeks… I sold my bike, but will be looking for another one! we had a wedding last friday, very good party! the company party was great! the bottom shelve of the cupboard in our …

Read More “Personal update”

Is my C# application running in debug mode? or: About pre-processor directives

All I wanted to do was check if my application was running in debug-mode or in release-mode. Searching MSDN library and Google (groups) both did not deliver the solution to me. I was about to let go when, out of the blue, a webpage showed up in my browser telling me the following: Visual Studio …

Read More “Is my C# application running in debug mode? or: About pre-processor directives”

Select a car …

It’s almost like playing Need for Speed: “Please select your car.”But this time it was real! Last saturday I had two testdrives and I selected my future car. It is going to be the Citroën C4. I ordered it today and, when all goes well, I’ll be receiving it within just a few weeks! That is when …

Read More “Select a car …”

Microsoft DevDays 2005 – the day after

Yesterday I attended the Microsoft DevDays 2005 in The Hague. The MSDN TechNet briefings in Veldhoven I attended last year (was that October or November?) were great. Because the DevDays would (or should) be even greater I could hardly wait for DevDays 2005 to begin! Here’s my short opinion on the DevDays 2005. Interested in a more …

Read More “Microsoft DevDays 2005 – the day after”

Delegates explained

Delegates can be seen as interfaces for methods. Let’s look at an example of a delegate and what it really represents. delegate double Calculation(double one, double two);All this line of code really does, is tell the class it is in that there might be one or more methods with the given signature: a method returning …

Read More “Delegates explained”

C# XmlSerializer FileNotFound exception

When using XmlSerializer in .Net on a self-made class, you might receive the FileNotFound exception at runtime upon instantiating the serializer. You don’t get enough info to debug this problem, and the filename of the file it didn’t find can’t explain much either, because the dll-name is different ‘garbage’ every time. XmlSerializerPreCompiler to the rescue …

Read More “C# XmlSerializer FileNotFound exception”

DevDays 2005

My provisional program for DevDays 2005:09:30 Keynote: Microsoft Developer Tools StrategyPrashant Sridharan (Microsoft)10.45 Visual Studio Tools for Office 2005Lex Oskam (Microsoft)13.15 Indigo updateGijs de Jong (Microsoft)14.45 BizTalk in actionSijmen Koffeman (Microsoft)16.30 ASP.NET Web Services 2.0Alex Thissen (Twice)I’ll probably be attending these sessions during my first DevDays ever: DevDays 2005.