I\'ve got the following code:
public static T GetCar() where T : ICar { T objCar = default(T); if (typeof(T) == typeof(SmallCar)) {
You can simplify your code
public static T GetCar() where T : ICar, new() { return new T(); }