NumberStyles.cs 1.8 KB

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