enums c# microsoft docs code example Example: public enum c# enum Season { Spring, Summer, Autumn, Winter }