The Labs \ Source Viewer \ SSCLI \ System.Runtime.Serialization.Formatters.Soap \ InternalParseStateE

  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. // Class: FormatterEnums
  18. // Purpose: Soap XML Formatter Enums
  19. //
  20. // Date: August 23, 1999
  21. //
  22. //============================================================
  23. namespace System.Runtime.Serialization.Formatters.Soap
  24. {
  25.     using System.Threading;
  26.     using System.Runtime.Remoting;
  27.     using System.Runtime.Serialization;
  28.     using System;
  29.    
  30.     // Enums are for internal use by the XML and Binary Serializers
  31.     // They will eventually be signed to restrict their use
  32.    
  33.     // Formatter Enums
  34.     [Serializable()]
  35.     internal enum InternalSerializerTypeE
  36.     {
  37.         Soap = 1,
  38.         Binary = 2
  39.     }
  40.    
  41.     // Writer Enums
  42.     [Serializable()]
  43.     internal enum InternalElementTypeE
  44.     {
  45.         ObjectBegin = 0,
  46.         ObjectEnd = 1,
  47.         Member = 2
  48.     }
  49.    
  50.     // ParseRecord Enums
  51.     [Serializable()]
  52.     internal enum InternalParseTypeE
  53.     {
  54.         Empty = 0,
  55.         SerializedStreamHeader = 1,
  56.         Object = 2,
  57.         Member = 3,
  58.         ObjectEnd = 4,
  59.         MemberEnd = 5,
  60.         Headers = 6,
  61.         HeadersEnd = 7,
  62.         SerializedStreamHeaderEnd = 8,
  63.         Envelope = 9,
  64.         EnvelopeEnd = 10,
  65.         Body = 11,
  66.         BodyEnd = 12
  67.     }
  68.    
  69.    
  70.     [Serializable()]
  71.     internal enum InternalObjectTypeE
  72.     {
  73.         Empty = 0,
  74.         Object = 1,
  75.         Array = 2
  76.     }
  77.    
  78.    
  79.     [Serializable()]
  80.     internal enum InternalObjectPositionE
  81.     {
  82.         Empty = 0,
  83.         Top = 1,
  84.         Child = 2,
  85.         Headers = 3
  86.     }
  87.    
  88.     [Serializable()]
  89.     internal enum InternalArrayTypeE
  90.     {
  91.         Empty = 0,
  92.         Single = 1,
  93.         Jagged = 2,
  94.         Rectangular = 3,
  95.         Base64 = 4
  96.     }
  97.    
  98.     [Serializable()]
  99.     internal enum InternalMemberTypeE
  100.     {
  101.         Empty = 0,
  102.         Header = 1,
  103.         Field = 2,
  104.         Item = 3
  105.     }
  106.    
  107.     [Serializable()]
  108.     internal enum InternalMemberValueE
  109.     {
  110.         Empty = 0,
  111.         InlineValue = 1,
  112.         Nested = 2,
  113.         Reference = 3,
  114.         Null = 4
  115.     }
  116.    
  117.     // XML Parse Enum
  118.     [Serializable()]
  119.     internal enum InternalParseStateE
  120.     {
  121.         Initial = 0,
  122.         Object = 1,
  123.         Member = 2,
  124.         MemberChild = 3
  125.     }
  126.    
  127.     // Data Type Enums
  128.     [Serializable()]
  129.     internal enum InternalPrimitiveTypeE
  130.     {
  131.         Invalid = 0,
  132.         Boolean = 1,
  133.         Byte = 2,
  134.         Char = 3,
  135.         Currency = 4,
  136.         Decimal = 5,
  137.         Double = 6,
  138.         Int16 = 7,
  139.         Int32 = 8,
  140.         Int64 = 9,
  141.         SByte = 10,
  142.         Single = 11,
  143.         TimeSpan = 12,
  144.         DateTime = 13,
  145.         UInt16 = 14,
  146.         UInt32 = 15,
  147.         UInt64 = 16,
  148.         Time = 17,
  149.         Date = 18,
  150.         YearMonth = 19,
  151.         Year = 20,
  152.         MonthDay = 21,
  153.         Day = 22,
  154.         Month = 23,
  155.         HexBinary = 24,
  156.         Base64Binary = 25,
  157.         Integer = 26,
  158.         PositiveInteger = 27,
  159.         NonPositiveInteger = 28,
  160.         NonNegativeInteger = 29,
  161.         NegativeInteger = 30,
  162.         AnyUri = 31,
  163.         QName = 32,
  164.         Notation = 33,
  165.         NormalizedString = 34,
  166.         Token = 35,
  167.         Language = 36,
  168.         Name = 37,
  169.         Idrefs = 38,
  170.         Entities = 39,
  171.         Nmtoken = 40,
  172.         Nmtokens = 41,
  173.         NcName = 42,
  174.         Id = 43,
  175.         Idref = 44,
  176.         Entity = 45
  177.     }
  178.    
  179.     // ValueType Fixup Enum
  180.     [Serializable()]
  181.     enum ValueFixupEnum
  182.     {
  183.         Empty = 0,
  184.         Array = 1,
  185.         Header = 2,
  186.         Member = 3
  187.     }
  188.    
  189.     // name space
  190.     [Serializable()]
  191.     internal enum InternalNameSpaceE
  192.     {
  193.         None = 0,
  194.         Soap = 1,
  195.         XdrPrimitive = 2,
  196.         XdrString = 3,
  197.         UrtSystem = 4,
  198.         UrtUser = 5,
  199.         UserNameSpace = 6,
  200.         MemberName = 7,
  201.         Interop = 8,
  202.         CallElement = 9
  203.     }
  204.    
  205.     // These don't represent actual Attribute types. They represent the intent
  206.     // of various SoapXXXAttributes that may be applied to a type.
  207.     [Serializable()]
  208.     internal enum SoapAttributeType
  209.     {
  210.         None = 0,
  211.         Embedded = 1,
  212.         XmlElement = 2,
  213.         XmlAttribute = 4,
  214.         XmlType = 8
  215.     }
  216.    
  217.     [Serializable()]
  218.     internal enum XsdVersion
  219.     {
  220.         V1999 = 0,
  221.         V2000 = 1,
  222.         V2001 = 2
  223.     }
  224.    
  225. }

Developer Fusion