The Labs \ Source Viewer \ SSCLI \ System.ComponentModel \ ListSortDescription

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ListSortDescription.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.ComponentModel
  16. {
  17.     using System.Collections;
  18.     using System.Security.Permissions;
  19.     /// <devdoc>
  20.     /// <para>[To be supplied.]</para>
  21.     /// </devdoc>
  22.     [HostProtection(SharedState = true)]
  23.     public class ListSortDescription
  24.     {
  25.         PropertyDescriptor property;
  26.         ListSortDirection sortDirection;
  27.         /// <devdoc>
  28.         /// <para>[To be supplied.]</para>
  29.         /// </devdoc>
  30.         public ListSortDescription(PropertyDescriptor property, ListSortDirection direction)
  31.         {
  32.             this.property = property;
  33.             this.sortDirection = direction;
  34.         }
  35.        
  36.         /// <devdoc>
  37.         /// <para>[To be supplied.]</para>
  38.         /// </devdoc>
  39.         public PropertyDescriptor PropertyDescriptor {
  40.             get { return this.property; }
  41.             set { this.property = value; }
  42.         }
  43.        
  44.         /// <devdoc>
  45.         /// <para>[To be supplied.]</para>
  46.         /// </devdoc>
  47.         public ListSortDirection SortDirection {
  48.             get { return this.sortDirection; }
  49.             set { this.sortDirection = value; }
  50.         }
  51.     }
  52. }

Developer Fusion