The Labs \ Source Viewer \ SSCLI \ System \ StringComparison

  1. // ==++==
  2. //
  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. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Enum:  StringComparison
  18. **
  19. **
  20. ** Purpose: A mechanism to expose a simplified infrastructure for
  21. **          Comparing strings. This enum lets you choose of the custom
  22. **          implementations provided by the runtime for the user.
  23. **
  24. **
  25. ===========================================================*/
  26. namespace System
  27. {
  28.    
  29.     [Serializable()]
  30.     [System.Runtime.InteropServices.ComVisible(true)]
  31.     public enum StringComparison
  32.     {
  33.         CurrentCulture = 0,
  34.         CurrentCultureIgnoreCase = 1,
  35.         InvariantCulture = 2,
  36.         InvariantCultureIgnoreCase = 3,
  37.         Ordinal = 4,
  38.         OrdinalIgnoreCase = 5
  39.     }
  40. }

Developer Fusion