NumberStyles.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //------------------------------------------------------------------------------
  2. //
  3. // System.Globalization.NumberStyles.cs
  4. //
  5. // Copyright (C) 2001 Michael Lambert, All Rights Reserved
  6. //
  7. // Author: Michael Lambert, [email protected]
  8. // Created: Thu 07/18/2001
  9. //
  10. // Modified: 7/20/01, Derek Holden ([email protected])
  11. // Added ECMA values for allows and masks for data types
  12. //
  13. //------------------------------------------------------------------------------
  14. //
  15. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  16. //
  17. // Permission is hereby granted, free of charge, to any person obtaining
  18. // a copy of this software and associated documentation files (the
  19. // "Software"), to deal in the Software without restriction, including
  20. // without limitation the rights to use, copy, modify, merge, publish,
  21. // distribute, sublicense, and/or sell copies of the Software, and to
  22. // permit persons to whom the Software is furnished to do so, subject to
  23. // the following conditions:
  24. //
  25. // The above copyright notice and this permission notice shall be
  26. // included in all copies or substantial portions of the Software.
  27. //
  28. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  29. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  30. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  31. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  32. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  33. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  34. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  35. //
  36. namespace System.Globalization {
  37. [Flags]
  38. [Serializable]
  39. #if NET_2_0
  40. [System.Runtime.InteropServices.ComVisible(true)]
  41. #endif
  42. public enum NumberStyles {
  43. None = 0x00000000,
  44. AllowLeadingWhite = 0x00000001,
  45. AllowTrailingWhite = 0x00000002,
  46. AllowLeadingSign = 0x00000004,
  47. AllowTrailingSign = 0x00000008,
  48. AllowParentheses = 0x00000010,
  49. AllowDecimalPoint = 0x00000020,
  50. AllowThousands = 0x00000040,
  51. AllowExponent = 0x00000080,
  52. AllowCurrencySymbol = 0x00000100,
  53. AllowHexSpecifier = 0x00000200,
  54. Integer = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign ),
  55. HexNumber = ( AllowLeadingWhite | AllowTrailingWhite | AllowHexSpecifier ),
  56. Number = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  57. AllowTrailingSign | AllowDecimalPoint | AllowThousands ),
  58. Float = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  59. AllowDecimalPoint | AllowExponent ),
  60. Currency = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  61. AllowTrailingSign | AllowParentheses | AllowDecimalPoint |
  62. AllowThousands | AllowCurrencySymbol ),
  63. Any = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  64. AllowTrailingSign | AllowParentheses | AllowDecimalPoint |
  65. AllowThousands | AllowExponent | AllowCurrencySymbol ),
  66. }
  67. } // Namespace