Preheat the oven to 350 F. Melt butter on medium heat in a large skillet. Saute shredded carrots until tender with diced onions and garlic. Season with salt, pepper and Italian seasoning.
In a small bowl, combine heavy cream and egg. Remove carrots from stove, stir in the cream with parmesan cheese. Transfer into a 9x13 inch baking dish.
Bake in the oven for 20-25 minutes or until they are as tender as you'd like. Remove, allow to rest 3 minutes before serving.