The Labs \ Source Viewer \ SSCLI \ System.Runtime.Serialization.Formatters.Binary \ InternalPrimitiveTypeE

  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: BinaryEnums
  18. **
  19. **
  20. ** Purpose: Soap XML Formatter Enums
  21. **
  22. **
  23. ===========================================================*/
  24. namespace System.Runtime.Serialization.Formatters.Binary
  25. {
  26.     using System.Runtime.Serialization.Formatters;
  27.     using System.Runtime.Remoting;
  28.     using System.Runtime.Serialization;
  29.     using System;
  30.     // BinaryHeaderEnum is the first byte on binary records
  31.     // (except for primitive types which do not have a header)
  32.     [Serializable()]
  33.     enum BinaryHeaderEnum
  34.     {
  35.         SerializedStreamHeader = 0,
  36.         Object = 1,
  37.         ObjectWithMap = 2,
  38.         ObjectWithMapAssemId = 3,
  39.         ObjectWithMapTyped = 4,
  40.         ObjectWithMapTypedAssemId = 5,
  41.         ObjectString = 6,
  42.         Array = 7,
  43.         MemberPrimitiveTyped = 8,
  44.         MemberReference = 9,
  45.         ObjectNull = 10,
  46.         MessageEnd = 11,
  47.         Assembly = 12,
  48.         ObjectNullMultiple256 = 13,
  49.         ObjectNullMultiple = 14,
  50.         ArraySinglePrimitive = 15,
  51.         ArraySingleObject = 16,
  52.         ArraySingleString = 17,
  53.         CrossAppDomainMap = 18,
  54.         CrossAppDomainString = 19,
  55.         CrossAppDomainAssembly = 20,
  56.         MethodCall = 21,
  57.         MethodReturn = 22
  58.     }
  59.    
  60.     // BinaryTypeEnum is used specify the type on the wire.
  61.     // Additional information is transmitted with Primitive and Object types
  62.     [Serializable()]
  63.     enum BinaryTypeEnum
  64.     {
  65.         Primitive = 0,
  66.         String = 1,
  67.         Object = 2,
  68.         ObjectUrt = 3,
  69.         ObjectUser = 4,
  70.         ObjectArray = 5,
  71.         StringArray = 6,
  72.         PrimitiveArray = 7
  73.     }
  74.    
  75.     [Serializable()]
  76.     internal enum BinaryArrayTypeEnum
  77.     {
  78.         Single = 0,
  79.         Jagged = 1,
  80.         Rectangular = 2,
  81.         SingleOffset = 3,
  82.         JaggedOffset = 4,
  83.         RectangularOffset = 5
  84.     }
  85.    
  86.     // Enums are for internal use by the XML and Binary Serializers
  87.     // They will eventually signed to restrict there use
  88.    
  89.     // Formatter Enums
  90.     [Serializable()]
  91.     internal enum InternalSerializerTypeE
  92.     {
  93.         Soap = 1,
  94.         Binary = 2
  95.     }
  96.    
  97.     // Writer Enums
  98.     [Serializable()]
  99.     internal enum InternalElementTypeE
  100.     {
  101.         ObjectBegin = 0,
  102.         ObjectEnd = 1,
  103.         Member = 2
  104.     }
  105.    
  106.     // ParseRecord Enums
  107.     [Serializable()]
  108.     internal enum InternalParseTypeE
  109.     {
  110.         Empty = 0,
  111.         SerializedStreamHeader = 1,
  112.         Object = 2,
  113.         Member = 3,
  114.         ObjectEnd = 4,
  115.         MemberEnd = 5,
  116.         Headers = 6,
  117.         HeadersEnd = 7,
  118.         SerializedStreamHeaderEnd = 8,
  119.         Envelope = 9,
  120.         EnvelopeEnd = 10,
  121.         Body = 11,
  122.         BodyEnd = 12
  123.     }
  124.    
  125.    
  126.     [Serializable()]
  127.     internal enum InternalObjectTypeE
  128.     {
  129.         Empty = 0,
  130.         Object = 1,
  131.         Array = 2
  132.     }
  133.    
  134.    
  135.     [Serializable()]
  136.     internal enum InternalObjectPositionE
  137.     {
  138.         Empty = 0,
  139.         Top = 1,
  140.         Child = 2,
  141.         Headers = 3
  142.     }
  143.    
  144.     [Serializable()]
  145.     internal enum InternalArrayTypeE
  146.     {
  147.         Empty = 0,
  148.         Single = 1,
  149.         Jagged = 2,
  150.         Rectangular = 3,
  151.         Base64 = 4
  152.     }
  153.    
  154.     [Serializable()]
  155.     internal enum InternalMemberTypeE
  156.     {
  157.         Empty = 0,
  158.         Header = 1,
  159.         Field = 2,
  160.         Item = 3
  161.     }
  162.    
  163.     [Serializable()]
  164.     internal enum InternalMemberValueE
  165.     {
  166.         Empty = 0,
  167.         InlineValue = 1,
  168.         Nested = 2,
  169.         Reference = 3,
  170.         Null = 4
  171.     }
  172.    
  173.     // XML Parse Enum
  174.     [Serializable()]
  175.     internal enum InternalParseStateE
  176.     {
  177.         Initial = 0,
  178.         Object = 1,
  179.         Member = 2,
  180.         MemberChild = 3
  181.     }
  182.    
  183.     // Data Type Enums
  184.     [Serializable()]
  185.     internal enum InternalPrimitiveTypeE
  186.     {
  187.         Invalid = 0,
  188.         Boolean = 1,
  189.         Byte = 2,
  190.         Char = 3,
  191.         Currency = 4,
  192.         Decimal = 5,
  193.         Double = 6,
  194.         Int16 = 7,
  195.         Int32 = 8,
  196.         Int64 = 9,
  197.         SByte = 10,
  198.         Single = 11,
  199.         TimeSpan = 12,
  200.         DateTime = 13,
  201.         UInt16 = 14,
  202.         UInt32 = 15,
  203.         UInt64 = 16,
  204.        
  205.         // Used in only for MethodCall or MethodReturn header
  206.         Null = 17,
  207.         String = 18
  208.     }
  209.    
  210.     [Serializable(), Flags()]
  211.     internal enum MessageEnum
  212.     {
  213.         NoArgs = 1,
  214.         ArgsInline = 2,
  215.         ArgsIsArray = 4,
  216.         ArgsInArray = 8,
  217.         NoContext = 16,
  218.         ContextInline = 32,
  219.         ContextInArray = 64,
  220.         MethodSignatureInArray = 128,
  221.         PropertyInArray = 256,
  222.         NoReturnValue = 512,
  223.         ReturnValueVoid = 1024,
  224.         ReturnValueInline = 2048,
  225.         ReturnValueInArray = 4096,
  226.         ExceptionInArray = 8192,
  227.         GenericMethod = 32768
  228.     }
  229.    
  230.    
  231.     // ValueType Fixup Enum
  232.     [Serializable()]
  233.     enum ValueFixupEnum
  234.     {
  235.         Empty = 0,
  236.         Array = 1,
  237.         Header = 2,
  238.         Member = 3
  239.     }
  240.    
  241.     // name space
  242.     [Serializable()]
  243.     internal enum InternalNameSpaceE
  244.     {
  245.         None = 0,
  246.         Soap = 1,
  247.         XdrPrimitive = 2,
  248.         XdrString = 3,
  249.         UrtSystem = 4,
  250.         UrtUser = 5,
  251.         UserNameSpace = 6,
  252.         MemberName = 7,
  253.         Interop = 8,
  254.         CallElement = 9
  255.     }
  256.    
  257.     [Serializable()]
  258.     internal enum SoapAttributeType
  259.     {
  260.         None = 0,
  261.         SchemaType = 1,
  262.         Embedded = 2,
  263.         XmlElement = 4,
  264.         XmlAttribute = 8
  265.     }
  266.    
  267. }

Developer Fusion