PageRenderTime 35ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/ResourceManagement.Client/WsEnumeration/Sorting.cs

#
C# | 38 lines | 34 code | 4 blank | 0 comment | 2 complexity | 856309315db794e95bb2ca9b67382b7d MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Xml.Serialization;
  4. using System.Text;
  5. namespace Microsoft.ResourceManagement.Client.WsEnumeration
  6. {
  7. [XmlRoot(Namespace=Constants.Rm.Namespace)]
  8. public class Sorting
  9. {
  10. List<SortingAttribute> sorting;
  11. public Sorting()
  12. {
  13. this.Dialect = Constants.Rm.Namespace;
  14. this.SortingAttribute = new List<SortingAttribute>();
  15. }
  16. [XmlAttribute()]
  17. public String Dialect;
  18. [XmlElement()]
  19. public List<SortingAttribute> SortingAttribute
  20. {
  21. get
  22. {
  23. if (sorting.Count == 0)
  24. return null;
  25. else
  26. return sorting;
  27. }
  28. set
  29. {
  30. this.sorting = value;
  31. }
  32. }
  33. }
  34. }