Guest User

Untitled

a guest
Dec 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. public sealed class Months: ValueObject<Months>
  2. {
  3. public static readonly string January = "January";
  4. public static readonly string February = "February";
  5. public static readonly string March = "March";
  6. public static readonly string April = "April";
  7. public static readonly string May = "May";
  8. public static readonly string June= "June";
  9. public static readonly string July = "July";
  10. public static readonly string August = "August";
  11. public static readonly string September = "September";
  12. public static readonly string October = "October";
  13. public static readonly string November = "November";
  14. public static readonly string December = "December";
  15.  
  16. public IEnumerable<string> GetMonths()
  17. {
  18. yield return January;
  19. yield return February;
  20. yield return March;
  21. yield return April;
  22. yield return May;
  23. yield return June;
  24. yield return July;
  25. yield return August;
  26. yield return September;
  27. yield return October;
  28. yield return November;
  29. yield return December;
  30. }
  31. }
Add Comment
Please, Sign In to add comment