If I get the idea of Static classes right, then it would mean that that code Paul M posted...
Can simply be used like this?C# Code:
static class CarTypeInfo { public static string GetCarType() { return "cartype"; } //etc.. }
Without needing to make an instance of the class, like so?C# Code:
CarTypeInfo.GetCarType();
(I'm rather new to C#, so this code might be off, but you'll get the idea).C# Code:
CarTypeInfo myCar = new CarTypeInfo;




Reply With Quote