fix typo
[mcs.git] / class / System.DirectoryServices / System.DirectoryServices / SortOption.cs
blob14975f1051170e03c4c07a5bd826057b9290fe56
1 //
2 // System.DirectoryServices.SortOption.cs
3 //
4 // Author:
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 //
7 // (C) 2004 Andreas Nahr
8 //
9 //
11 using System.ComponentModel;
13 namespace System.DirectoryServices {
15 [TypeConverter (typeof (ExpandableObjectConverter))]
16 public class SortOption
18 private String propertyName;
19 private SortDirection direction;
21 public SortOption ()
25 public SortOption (String propertyName, SortDirection direction)
27 this.propertyName = propertyName;
28 this.direction = direction;
31 [DSDescription ("Name of propertion to be sorted on"),
32 DefaultValue (null)]
33 public String PropertyName {
34 get { return propertyName; }
35 set {
36 if (value == null)
37 throw new ArgumentNullException ("value");
38 propertyName = value;
42 [DSDescription ("Whether the sort is ascending or descending"),
43 DefaultValue (SortDirection.Ascending)]
44 public SortDirection Direction {
45 get { return direction; }
46 set { direction = value; }