PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms 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
 1using System;
 2using System.Collections.Generic;
 3using System.Xml.Serialization;
 4using System.Text;
 5
 6namespace Microsoft.ResourceManagement.Client.WsEnumeration
 7{
 8    [XmlRoot(Namespace=Constants.Rm.Namespace)]
 9    public class Sorting
10    {
11
12        List<SortingAttribute> sorting;
13
14        public Sorting()
15        {
16            this.Dialect = Constants.Rm.Namespace;
17            this.SortingAttribute = new List<SortingAttribute>();
18        }
19        [XmlAttribute()]
20        public String Dialect;
21
22        [XmlElement()]
23        public List<SortingAttribute> SortingAttribute
24        {
25            get
26            {
27                if (sorting.Count == 0)
28                    return null;
29                else
30                    return sorting;
31            }
32            set
33            {
34                this.sorting = value;
35            }
36        }
37    }
38}