Quote Originally Posted by SanderK
If I get the idea of Static classes right, then it would mean that that code Paul M posted...

C# Code:
  1. static class CarTypeInfo
  2. {
  3.     public static string GetCarType() { return "cartype"; }
  4.     //etc..
  5. }
Can simply be used like this?

C# Code:
  1. CarTypeInfo.GetCarType();
Without needing to make an instance of the class, like so?

C# Code:
  1. CarTypeInfo myCar = new CarTypeInfo;
(I'm rather new to C#, so this code might be off, but you'll get the idea).
It's not a case of not needing to create an instance. It's the case that you specifically do not creat an instance. Static members aren't members that have a handy feature of not needing an instance to be created. They are specifically members of the class and not members of an instance, so they are called on the class and not on an instance. Your code is correct but your logic is not quite right.