NumberStyles.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. namespace System.Globalization {
  15. [Flags]
  16. public enum NumberStyles {
  17. None = 0x00000000,
  18. AllowLeadingWhite = 0x00000001,
  19. AllowTrailingWhite = 0x00000002,
  20. AllowLeadingSign = 0x00000004,
  21. AllowTrailingSign = 0x00000008,
  22. AllowParentheses = 0x00000010,
  23. AllowDecimalPoint = 0x00000020,
  24. AllowThousands = 0x00000040,
  25. AllowExponent = 0x00000080,
  26. AllowCurrencySymbol = 0x00000100,
  27. AllowHexSpecifier = 0x00000200,
  28. Integer = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign ),
  29. HexNumber = ( AllowLeadingWhite | AllowTrailingWhite | AllowHexSpecifier ),
  30. Number = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  31. AllowTrailingSign | AllowDecimalPoint | AllowThousands ),
  32. Float = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  33. AllowDecimalPoint | AllowExponent ),
  34. Currency = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  35. AllowTrailingSign | AllowParentheses | AllowDecimalPoint |
  36. AllowThousands | AllowCurrencySymbol ),
  37. Any = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign |
  38. AllowTrailingSign | AllowParentheses | AllowDecimalPoint |
  39. AllowThousands | AllowExponent | AllowCurrencySymbol ),
  40. }
  41. } // Namespace