コード例 #1
0
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            _parseTypeEnum = InternalParseTypeE.Empty;
            _objectTypeEnum = InternalObjectTypeE.Empty;
            _arrayTypeEnum = InternalArrayTypeE.Empty;
            _memberTypeEnum = InternalMemberTypeE.Empty;
            _memberValueEnum = InternalMemberValueE.Empty;
            _objectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            _name = null;

            // Value
            _value = null;

            // dt attribute
            _keyDt = null;
            _dtType = null;
            _dtTypeCode = InternalPrimitiveTypeE.Invalid;

            // Object ID
            _objectId = 0;

            // Reference ID
            _idRef = 0;

            // Array

            // Array Element Type
            _arrayElementTypeString = null;
            _arrayElementType = null;
            _isArrayVariant = false;
            _arrayElementTypeCode = InternalPrimitiveTypeE.Invalid;

            // Parsed array information
            _rank = 0;
            _lengthA = null;
            _lowerBoundA = null;

            // Array map for placing array elements in array
            _indexMap = null;
            _memberIndex = 0;
            _linearlength = 0;
            _rectangularMap = null;
            _isLowerBound = false;

            // ValueType Fixup needed
            _isValueTypeFixup = false;

            _newObj = null;
            _objectA = null;
            _primitiveArray = null;
            _objectInfo = null;
            _isRegistered = false;
            _memberData = null;
            _si = null;

            _consecutiveNullArrayEntryCount = 0;
        }
コード例 #2
0
ファイル: BinaryUtilClasses.cs プロジェクト: pgovind/runtime
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            _parseTypeEnum      = InternalParseTypeE.Empty;
            _objectTypeEnum     = InternalObjectTypeE.Empty;
            _arrayTypeEnum      = InternalArrayTypeE.Empty;
            _memberTypeEnum     = InternalMemberTypeE.Empty;
            _memberValueEnum    = InternalMemberValueE.Empty;
            _objectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            _name = null;

            // Value
            _value = null;

            // dt attribute
            _keyDt      = null;
            _dtType     = null;
            _dtTypeCode = InternalPrimitiveTypeE.Invalid;

            // Object ID
            _objectId = 0;

            // Reference ID
            _idRef = 0;

            // Array

            // Array Element Type
            _arrayElementTypeString = null;
            _arrayElementType       = null;
            _isArrayVariant         = false;
            _arrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;

            // Parsed array information
            _rank        = 0;
            _lengthA     = null;
            _lowerBoundA = null;

            // Array map for placing array elements in array
            _indexMap       = null;
            _memberIndex    = 0;
            _linearlength   = 0;
            _rectangularMap = null;
            _isLowerBound   = false;

            // ValueType Fixup needed
            _isValueTypeFixup = false;

            _newObj         = null;
            _objectA        = null;
            _primitiveArray = null;
            _objectInfo     = null;
            _isRegistered   = false;
            _memberData     = null;
            _si             = null;

            _consecutiveNullArrayEntryCount = 0;
        }
コード例 #3
0
 public virtual void _0001(InternalArrayTypeE instance)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (instance < (InternalArrayTypeE)0 || instance > (InternalArrayTypeE)1)
     {
         throw new ArgumentOutOfRangeException("value");
     }
     _ExceptionError = instance;
 }
コード例 #4
0
 internal void Init()
 {
     this.PRparseTypeEnum      = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum     = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum      = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum     = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum    = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname                     = null;
     this.PRnameXmlKey               = null;
     this.PRxmlNameSpace             = null;
     this.PRisParsed                 = false;
     this.PRisProcessAttributes      = false;
     this.PRvalue                    = null;
     this.PRkeyDt                    = null;
     this.PRdtType                   = null;
     this.PRassemblyName             = null;
     this.PRdtTypeCode               = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum                   = false;
     this.PRobjectId                 = 0L;
     this.PRidRef                    = 0L;
     this.PRarrayElementTypeString   = null;
     this.PRarrayElementType         = null;
     this.PRisArrayVariant           = false;
     this.PRarrayElementTypeCode     = InternalPrimitiveTypeE.Invalid;
     this.PRprimitiveArrayTypeString = null;
     this.PRrank                     = 0;
     this.PRlengthA                  = null;
     this.PRpositionA                = null;
     this.PRlowerBoundA              = null;
     this.PRupperBoundA              = null;
     this.PRindexMap                 = null;
     this.PRmemberIndex              = 0;
     this.PRlinearlength             = 0;
     this.PRrectangularMap           = null;
     this.PRisLowerBound             = false;
     this.PRtopId                    = 0L;
     this.PRheaderId                 = 0L;
     this.PRisHeaderRoot             = false;
     this.PRisAttributesProcessed    = false;
     this.PRisMustUnderstand         = false;
     this.PRparseStateEnum           = InternalParseStateE.Initial;
     this.PRisWaitingForNestedObject = false;
     this.PRisValueTypeFixup         = false;
     this.PRnewObj                   = null;
     this.PRobjectA                  = null;
     this.PRprimitiveArray           = null;
     this.PRobjectInfo               = null;
     this.PRisRegistered             = false;
     this.PRisXmlAttribute           = false;
 }
コード例 #5
0
 internal void Init()
 {
     NIFullName          = null;
     NIobjectId          = 0;
     NIassemId           = 0;
     NIprimitiveTypeEnum = InternalPrimitiveTypeE.Invalid;
     NItype                 = null;
     NIisSealed             = false;
     NItransmitTypeOnObject = false;
     NItransmitTypeOnMember = false;
     NIisParentTypeOnObject = false;
     NIisArray              = false;
     NIisArrayItem          = false;
     NIarrayEnum            = InternalArrayTypeE.Empty;
     NIsealedStatusChecked  = false;
 }
コード例 #6
0
 internal void Init()
 {
     this.NIFullName = null;
     this.NIobjectId = 0L;
     this.NIassemId = 0L;
     this.NIprimitiveTypeEnum = InternalPrimitiveTypeE.Invalid;
     this.NItype = null;
     this.NIisSealed = false;
     this.NItransmitTypeOnObject = false;
     this.NItransmitTypeOnMember = false;
     this.NIisParentTypeOnObject = false;
     this.NIisArray = false;
     this.NIisArrayItem = false;
     this.NIarrayEnum = InternalArrayTypeE.Empty;
     this.NIsealedStatusChecked = false;
 }
コード例 #7
0
ファイル: BinaryUtilClasses.cs プロジェクト: pgovind/runtime
 internal void Init()
 {
     _fullName          = null;
     _objectId          = 0;
     _assemId           = 0;
     _primitiveTypeEnum = InternalPrimitiveTypeE.Invalid;
     _type                 = null;
     _isSealed             = false;
     _transmitTypeOnObject = false;
     _transmitTypeOnMember = false;
     _isParentTypeOnObject = false;
     _isArray              = false;
     _isArrayItem          = false;
     _arrayEnum            = InternalArrayTypeE.Empty;
     _sealedStatusChecked  = false;
 }
コード例 #8
0
 internal void Init()
 {
     this.PRparseTypeEnum = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname = null;
     this.PRvalue = null;
     this.PRkeyDt = null;
     this.PRdtType = null;
     this.PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum = false;
     this.PRobjectId = 0L;
     this.PRidRef = 0L;
     this.PRarrayElementTypeString = null;
     this.PRarrayElementType = null;
     this.PRisArrayVariant = false;
     this.PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRrank = 0;
     this.PRlengthA = null;
     this.PRpositionA = null;
     this.PRlowerBoundA = null;
     this.PRupperBoundA = null;
     this.PRindexMap = null;
     this.PRmemberIndex = 0;
     this.PRlinearlength = 0;
     this.PRrectangularMap = null;
     this.PRisLowerBound = false;
     this.PRtopId = 0L;
     this.PRheaderId = 0L;
     this.PRisValueTypeFixup = false;
     this.PRnewObj = null;
     this.PRobjectA = null;
     this.PRprimitiveArray = null;
     this.PRobjectInfo = null;
     this.PRisRegistered = false;
     this.PRmemberData = null;
     this.PRsi = null;
     this.PRnullCount = 0;
 }
コード例 #9
0
 internal void Init()
 {
     this.PRparseTypeEnum      = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum     = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum      = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum     = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum    = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname                   = null;
     this.PRvalue                  = null;
     this.PRkeyDt                  = null;
     this.PRdtType                 = null;
     this.PRdtTypeCode             = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum                 = false;
     this.PRobjectId               = 0L;
     this.PRidRef                  = 0L;
     this.PRarrayElementTypeString = null;
     this.PRarrayElementType       = null;
     this.PRisArrayVariant         = false;
     this.PRarrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;
     this.PRrank                   = 0;
     this.PRlengthA                = null;
     this.PRpositionA              = null;
     this.PRlowerBoundA            = null;
     this.PRupperBoundA            = null;
     this.PRindexMap               = null;
     this.PRmemberIndex            = 0;
     this.PRlinearlength           = 0;
     this.PRrectangularMap         = null;
     this.PRisLowerBound           = false;
     this.PRtopId                  = 0L;
     this.PRheaderId               = 0L;
     this.PRisValueTypeFixup       = false;
     this.PRnewObj                 = null;
     this.PRobjectA                = null;
     this.PRprimitiveArray         = null;
     this.PRobjectInfo             = null;
     this.PRisRegistered           = false;
     this.PRmemberData             = null;
     this.PRsi        = null;
     this.PRnullCount = 0;
 }
コード例 #10
0
 public PrototypeError()
 {
     //Discarded unreachable code: IL_0002, IL_0006
     //IL_0003: Incompatible stack heights: 0 vs 1
     //IL_0007: Incompatible stack heights: 0 vs 1
     SingletonReader.PushGlobal();
     base._002Ector();
     helperError      = (FacadeComposer)0;
     _ExceptionError  = (InternalArrayTypeE)0;
     m_DatabaseError  = (ApplicationState)0;
     _FactoryError    = (ConnectActionCursor)0;
     _AttributeError  = (PageDicCandidate)0;
     m_PageError      = (TaskListAnnotation)0;
     _SerializerError = (AttributeStyle)0;
     m_ParserError    = (SparklineAxisMinMaxValues)0;
     _CallbackError   = (CacheActions)0;
     roleError        = CodeListAnnotation.m_TokenError;
     writerError      = IndexerTest.m_DecoratorTest;
     m_ItemError      = CodeListAnnotation.m_DispatcherError;
     listenerError    = PublisherRequestStrategy._0001();
 }
コード例 #11
0
ファイル: soapparser.cs プロジェクト: ArildF/masters
        // Parse an array dimension bracket
        private int[] ParseArrayDimensions(String dimString, out int rank, out String dimSignature, out InternalArrayTypeE arrayTypeEnum)
        {
            InternalST.Soap( this, "ProcessArrayDimensions Enter ",dimString);      
            char[] dimArray = dimString.ToCharArray();

            int paramCount = 0;
            int commaCount = 0;
            int rankCount = 0;
            int[] dim = new int[dimArray.Length];


            StringBuilder sb = new StringBuilder(10);
            StringBuilder sigSb = new StringBuilder(10);

            for (int i=0; i<dimArray.Length; i++)
            {
                if (dimArray[i] == '[')
                {
                    paramCount++;
                    sigSb.Append(dimArray[i]);
                }
                else if (dimArray[i] == ']')
                {
                    if (sb.Length > 0)
                    {
                        dim[rankCount++] = Int32.Parse(sb.ToString(), CultureInfo.InvariantCulture);
                        sb.Length = 0;
                    }
                    sigSb.Append(dimArray[i]);                  
                }
                else if (dimArray[i] == ',')
                {
                    commaCount++;
                    if (sb.Length > 0)
                    {
                        dim[rankCount++] = Int32.Parse(sb.ToString(), CultureInfo.InvariantCulture);
                        sb.Length = 0;
                    }
                    sigSb.Append(dimArray[i]);                      
                }
                else if ((dimArray[i] == '-') || (Char.IsDigit(dimArray[i])))
                {
                    sb.Append(dimArray[i]);
                }
                else
                    throw new SerializationException(String.Format(SoapUtil.GetResourceString("Serialization_ArrayDimensions"),dimString));
            }

            rank = rankCount;
            dimSignature = sigSb.ToString();
            int[] dimA = new int[rank];
            for (int i=0; i<rank; i++)
            {
                dimA[i] = dim[i];
            }

            InternalArrayTypeE outEnum = InternalArrayTypeE.Empty;

            if (commaCount > 0)
                outEnum = InternalArrayTypeE.Rectangular;
            else
                outEnum = InternalArrayTypeE.Single;

            arrayTypeEnum = outEnum;

            InternalST.Soap( this, "ProcessArrayDimensions length ",PArray(dimA));
            InternalST.Soap( this, "ProcessArrayDimensions Exit rank ",rank," dimSignature ",sigSb.ToString()," arrayTypeEnum ",((Enum)outEnum).ToString());

            return dimA;
        }
コード例 #12
0
 internal void Init()
 {
     _fullName = null;
     _objectId = 0;
     _assemId = 0;
     _primitiveTypeEnum = InternalPrimitiveTypeE.Invalid;
     _type = null;
     _isSealed = false;
     _transmitTypeOnObject = false;
     _transmitTypeOnMember = false;
     _isParentTypeOnObject = false;
     _isArray = false;
     _isArrayItem = false;
     _arrayEnum = InternalArrayTypeE.Empty;
     _sealedStatusChecked = false;
 }
コード例 #13
0
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            PRparseTypeEnum      = InternalParseTypeE.Empty;
            PRobjectTypeEnum     = InternalObjectTypeE.Empty;
            PRarrayTypeEnum      = InternalArrayTypeE.Empty;
            PRmemberTypeEnum     = InternalMemberTypeE.Empty;
            PRmemberValueEnum    = InternalMemberValueE.Empty;
            PRobjectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            PRname = null;

            // Value
            PRvalue = null;

            // dt attribute
            PRkeyDt      = null;
            PRdtType     = null;
            PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
            PRisEnum     = false;

            // Object ID
            PRobjectId = 0;

            // Reference ID
            PRidRef = 0;

            // Array

            // Array Element Type
            PRarrayElementTypeString = null;
            PRarrayElementType       = null;
            PRisArrayVariant         = false;
            PRarrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;


            // Parsed array information
            PRrank        = 0;
            PRlengthA     = null;
            PRpositionA   = null;
            PRlowerBoundA = null;
            PRupperBoundA = null;

            // Array map for placing array elements in array
            PRindexMap       = null;
            PRmemberIndex    = 0;
            PRlinearlength   = 0;
            PRrectangularMap = null;
            PRisLowerBound   = false;

            // SerializedStreamHeader information
            PRtopId    = 0;
            PRheaderId = 0;

            // ValueType Fixup needed
            PRisValueTypeFixup = false;

            PRnewObj         = null;
            PRobjectA        = null;
            PRprimitiveArray = null;
            PRobjectInfo     = null;
            PRisRegistered   = false;
            PRmemberData     = null;
            PRsi             = null;

            PRnullCount = 0;
        }
コード例 #14
0
        // Initialize ParseRecord. Called when reusing. 
        internal void Init()
        {
            // Enums
            PRparseTypeEnum = InternalParseTypeE.Empty; 
            PRobjectTypeEnum = InternalObjectTypeE.Empty;
            PRarrayTypeEnum = InternalArrayTypeE.Empty; 
            PRmemberTypeEnum = InternalMemberTypeE.Empty; 
            PRmemberValueEnum = InternalMemberValueE.Empty;
            PRobjectPositionEnum = InternalObjectPositionE.Empty; 

            // Object
            PRname = null;
 
            // Value
            PRvalue = null; 
 
            // dt attribute
            PRkeyDt = null; 
            PRdtType = null;
            PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
            PRisEnum = false;
 
            // Object ID
            PRobjectId = 0; 
 
            // Reference ID
            PRidRef = 0; 

            // Array

            // Array Element Type 
            PRarrayElementTypeString = null;
            PRarrayElementType = null; 
            PRisArrayVariant = false; 
            PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;
 

            // Parsed array information
            PRrank = 0;
            PRlengthA = null; 
            PRpositionA = null;
            PRlowerBoundA = null; 
            PRupperBoundA = null; 

            // Array map for placing array elements in array 
            PRindexMap = null;
            PRmemberIndex = 0;
            PRlinearlength = 0;
            PRrectangularMap = null; 
            PRisLowerBound = false;
 
            // SerializedStreamHeader information 
            PRtopId = 0;
            PRheaderId = 0; 

            // ValueType Fixup needed
            PRisValueTypeFixup = false;
 
            PRnewObj = null;
            PRobjectA = null; 
            PRprimitiveArray = null; 
            PRobjectInfo = null;
            PRisRegistered = false; 
            PRmemberData = null;
            PRsi = null;

            PRnullCount = 0; 
        }
コード例 #15
0
 internal void Init()
 {
     this.PRparseTypeEnum = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname = null;
     this.PRnameXmlKey = null;
     this.PRxmlNameSpace = null;
     this.PRisParsed = false;
     this.PRisProcessAttributes = false;
     this.PRvalue = null;
     this.PRkeyDt = null;
     this.PRdtType = null;
     this.PRassemblyName = null;
     this.PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum = false;
     this.PRobjectId = 0L;
     this.PRidRef = 0L;
     this.PRarrayElementTypeString = null;
     this.PRarrayElementType = null;
     this.PRisArrayVariant = false;
     this.PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRprimitiveArrayTypeString = null;
     this.PRrank = 0;
     this.PRlengthA = null;
     this.PRpositionA = null;
     this.PRlowerBoundA = null;
     this.PRupperBoundA = null;
     this.PRindexMap = null;
     this.PRmemberIndex = 0;
     this.PRlinearlength = 0;
     this.PRrectangularMap = null;
     this.PRisLowerBound = false;
     this.PRtopId = 0L;
     this.PRheaderId = 0L;
     this.PRisHeaderRoot = false;
     this.PRisAttributesProcessed = false;
     this.PRisMustUnderstand = false;
     this.PRparseStateEnum = InternalParseStateE.Initial;
     this.PRisWaitingForNestedObject = false;
     this.PRisValueTypeFixup = false;
     this.PRnewObj = null;
     this.PRobjectA = null;
     this.PRprimitiveArray = null;
     this.PRobjectInfo = null;
     this.PRisRegistered = false;
     this.PRisXmlAttribute = false;
 }
コード例 #16
0
 private int[] ParseArrayDimensions(string dimString, out int rank, out string dimSignature, out InternalArrayTypeE arrayTypeEnum)
 {
     char[] chArray = dimString.ToCharArray();
     int num = 0;
     int num2 = 0;
     int num3 = 0;
     int[] numArray = new int[chArray.Length];
     StringBuilder builder = new StringBuilder(10);
     StringBuilder builder2 = new StringBuilder(10);
     for (int i = 0; i < chArray.Length; i++)
     {
         if (chArray[i] == '[')
         {
             num++;
             builder2.Append(chArray[i]);
         }
         else if (chArray[i] == ']')
         {
             if (builder.Length > 0)
             {
                 numArray[num3++] = int.Parse(builder.ToString(), CultureInfo.InvariantCulture);
                 builder.Length = 0;
             }
             builder2.Append(chArray[i]);
         }
         else if (chArray[i] == ',')
         {
             num2++;
             if (builder.Length > 0)
             {
                 numArray[num3++] = int.Parse(builder.ToString(), CultureInfo.InvariantCulture);
                 builder.Length = 0;
             }
             builder2.Append(chArray[i]);
         }
         else
         {
             if ((chArray[i] != '-') && !char.IsDigit(chArray[i]))
             {
                 throw new SerializationException(string.Format(CultureInfo.CurrentCulture, SoapUtil.GetResourceString("Serialization_ArrayDimensions"), new object[] { dimString }));
             }
             builder.Append(chArray[i]);
         }
     }
     rank = num3;
     dimSignature = builder2.ToString();
     int[] numArray2 = new int[rank];
     for (int j = 0; j < rank; j++)
     {
         numArray2[j] = numArray[j];
     }
     InternalArrayTypeE empty = InternalArrayTypeE.Empty;
     if (num2 > 0)
     {
         empty = InternalArrayTypeE.Rectangular;
     }
     else
     {
         empty = InternalArrayTypeE.Single;
     }
     arrayTypeEnum = empty;
     return numArray2;
 }
コード例 #17
0
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            PRparseTypeEnum      = InternalParseTypeE.Empty;
            PRobjectTypeEnum     = InternalObjectTypeE.Empty;
            PRarrayTypeEnum      = InternalArrayTypeE.Empty;
            PRmemberTypeEnum     = InternalMemberTypeE.Empty;
            PRmemberValueEnum    = InternalMemberValueE.Empty;
            PRobjectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            PRname                = null;
            PRnameXmlKey          = null;
            PRxmlNameSpace        = null;
            PRisParsed            = false;
            PRisProcessAttributes = false;

            // Value
            PRvalue = null;

            // dt attribute
            PRkeyDt        = null;
            PRdtType       = null;
            PRassemblyName = null;
            PRdtTypeCode   = InternalPrimitiveTypeE.Invalid;
            PRisEnum       = false;

            // Object ID
            PRobjectId = 0;

            // Reference ID
            PRidRef = 0;

            // Array

            // Array Element Type
            PRarrayElementTypeString = null;
            PRarrayElementType       = null;
            PRisArrayVariant         = false;
            PRarrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;


            // Array Primitive Element type
            PRprimitiveArrayTypeString = null;

            // Parsed array information
            PRrank        = 0;
            PRlengthA     = null;
            PRpositionA   = null;
            PRlowerBoundA = null;
            PRupperBoundA = null;

            // Array map for placing array elements in array
            PRindexMap       = null;
            PRmemberIndex    = 0;
            PRlinearlength   = 0;
            PRrectangularMap = null;
            PRisLowerBound   = false;

            // SerializedStreamHeader information
            PRtopId                 = 0;
            PRheaderId              = 0;
            PRisHeaderRoot          = false;
            PRisAttributesProcessed = false;

            // Parsed HeaderMember Information
            PRisMustUnderstand = false;

            // Parse State
            PRparseStateEnum           = InternalParseStateE.Initial;
            PRisWaitingForNestedObject = false;


            // ValueType Fixup needed
            PRisValueTypeFixup = false;

            PRnewObj         = null;
            PRobjectA        = null;
            PRprimitiveArray = null;
            PRobjectInfo     = null;
            PRisRegistered   = false;

            PRisXmlAttribute = false;
        }
コード例 #18
0
        private void WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo)
        {
            bool flag1 = false;

            if (memberNameInfo == null)
            {
                memberNameInfo = this.TypeToNameInfo(objectInfo);
                flag1          = true;
            }
            memberNameInfo.NIisArray = true;
            long num1 = objectInfo.objectId;

            memberNameInfo.NIobjectId = objectInfo.objectId;
            Array           array       = (Array)objectInfo.obj;
            Type            elementType = objectInfo.objectType.GetElementType();
            WriteObjectInfo objectInfo1 = (WriteObjectInfo)null;

            if (!elementType.IsPrimitive)
            {
                objectInfo1         = WriteObjectInfo.Serialize(elementType, this.m_surrogates, this.m_context, this.serObjectInfoInit, this.m_formatterConverter, this.m_binder);
                objectInfo1.assemId = this.GetAssemblyId(objectInfo1);
            }
            NameInfo nameInfo1 = objectInfo1 != null?this.TypeToNameInfo(objectInfo1) : this.TypeToNameInfo(elementType);

            NameInfo nameInfo2 = nameInfo1;
            int      num2      = nameInfo2.NItype.IsArray ? 1 : 0;

            nameInfo2.NIisArray = num2 != 0;
            NameInfo nameInfo3 = memberNameInfo;

            nameInfo3.NIobjectId             = num1;
            nameInfo3.NIisArray              = true;
            nameInfo1.NIobjectId             = num1;
            nameInfo1.NItransmitTypeOnMember = memberNameInfo.NItransmitTypeOnMember;
            nameInfo1.NItransmitTypeOnObject = memberNameInfo.NItransmitTypeOnObject;
            nameInfo1.NIisParentTypeOnObject = memberNameInfo.NIisParentTypeOnObject;
            int rank = array.Rank;

            int[] numArray1   = new int[rank];
            int[] lowerBoundA = new int[rank];
            int[] numArray2   = new int[rank];
            for (int dimension = 0; dimension < rank; ++dimension)
            {
                numArray1[dimension]   = array.GetLength(dimension);
                lowerBoundA[dimension] = array.GetLowerBound(dimension);
                numArray2[dimension]   = array.GetUpperBound(dimension);
            }
            InternalArrayTypeE internalArrayTypeE = !nameInfo1.NIisArray ? (rank != 1 ? InternalArrayTypeE.Rectangular : InternalArrayTypeE.Single) : (rank != 1 ? InternalArrayTypeE.Rectangular : InternalArrayTypeE.Jagged);

            nameInfo1.NIarrayEnum = internalArrayTypeE;
            if (elementType == Converter.typeofByte && rank == 1 && lowerBoundA[0] == 0)
            {
                this.serWriter.WriteObjectByteArray(memberNameInfo, nameInfo3, objectInfo1, nameInfo1, numArray1[0], lowerBoundA[0], (byte[])array);
            }
            else
            {
                if (elementType == Converter.typeofObject || Nullable.GetUnderlyingType(elementType) != null)
                {
                    memberNameInfo.NItransmitTypeOnMember = true;
                    nameInfo1.NItransmitTypeOnMember      = true;
                }
                if (this.CheckTypeFormat(this.formatterEnums.FEtypeFormat, FormatterTypeStyle.TypesAlways))
                {
                    memberNameInfo.NItransmitTypeOnObject = true;
                    nameInfo1.NItransmitTypeOnObject      = true;
                }
                if (internalArrayTypeE == InternalArrayTypeE.Single)
                {
                    this.serWriter.WriteSingleArray(memberNameInfo, nameInfo3, objectInfo1, nameInfo1, numArray1[0], lowerBoundA[0], array);
                    if (!Converter.IsWriteAsByteArray(nameInfo1.NIprimitiveTypeEnum) || lowerBoundA[0] != 0)
                    {
                        object[] objArray = (object[])null;
                        if (!elementType.IsValueType)
                        {
                            objArray = (object[])array;
                        }
                        int num3 = numArray2[0] + 1;
                        for (int index = lowerBoundA[0]; index < num3; ++index)
                        {
                            if (objArray == null)
                            {
                                this.WriteArrayMember(objectInfo, nameInfo1, array.GetValue(index));
                            }
                            else
                            {
                                this.WriteArrayMember(objectInfo, nameInfo1, objArray[index]);
                            }
                        }
                        this.serWriter.WriteItemEnd();
                    }
                }
                else if (internalArrayTypeE == InternalArrayTypeE.Jagged)
                {
                    nameInfo3.NIobjectId = num1;
                    this.serWriter.WriteJaggedArray(memberNameInfo, nameInfo3, objectInfo1, nameInfo1, numArray1[0], lowerBoundA[0]);
                    object[] objArray = (object[])array;
                    for (int index = lowerBoundA[0]; index < numArray2[0] + 1; ++index)
                    {
                        this.WriteArrayMember(objectInfo, nameInfo1, objArray[index]);
                    }
                    this.serWriter.WriteItemEnd();
                }
                else
                {
                    nameInfo3.NIobjectId = num1;
                    this.serWriter.WriteRectangleArray(memberNameInfo, nameInfo3, objectInfo1, nameInfo1, rank, numArray1, lowerBoundA);
                    bool flag2 = false;
                    for (int index = 0; index < rank; ++index)
                    {
                        if (numArray1[index] == 0)
                        {
                            flag2 = true;
                            break;
                        }
                    }
                    if (!flag2)
                    {
                        this.WriteRectangle(objectInfo, rank, numArray1, array, nameInfo1, lowerBoundA);
                    }
                    this.serWriter.WriteItemEnd();
                }
                this.serWriter.WriteObjectEnd(memberNameInfo, nameInfo3);
                this.PutNameInfo(nameInfo1);
                if (!flag1)
                {
                    return;
                }
                this.PutNameInfo(memberNameInfo);
            }
        }
コード例 #19
0
ファイル: soapcommonclasses.cs プロジェクト: ArildF/masters
		// Initialize ParseRecord. Called when reusing.
		internal void Init()
		{
			// Enums
			PRparseTypeEnum = InternalParseTypeE.Empty;
			PRobjectTypeEnum = InternalObjectTypeE.Empty;
			PRarrayTypeEnum = InternalArrayTypeE.Empty;
			PRmemberTypeEnum = InternalMemberTypeE.Empty;
			PRmemberValueEnum = InternalMemberValueE.Empty;
			PRobjectPositionEnum = InternalObjectPositionE.Empty;

			// Object
			PRname = null;
			PRnameXmlKey = null;
			PRxmlNameSpace = null;
			PRisParsed = false;
            PRisProcessAttributes = false;

			// Value
			PRvalue = null;

			// dt attribute
			PRkeyDt = null;
			PRdtType = null;
            PRassemblyName = null;
			PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
			PRisEnum = false;			

			// Object ID
			PRobjectId = 0;

			// Reference ID
			PRidRef = 0;

			// Array

			// Array Element Type
			PRarrayElementTypeString = null;
			PRarrayElementType = null;
			PRisArrayVariant = false;
			PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;


			// Array Primitive Element type
			PRprimitiveArrayTypeString = null;

			// Parsed array information
			PRrank = 0;
			PRlengthA = null;
			PRpositionA = null;
			PRlowerBoundA = null;
			PRupperBoundA = null;		

			// Array map for placing array elements in array
			PRindexMap = null;
			PRmemberIndex = 0;
			PRlinearlength = 0;
			PRrectangularMap = null;
			PRisLowerBound = false;

			// SerializedStreamHeader information
			PRtopId = 0;
			PRheaderId = 0;
			PRisHeaderRoot = false;
			PRisAttributesProcessed = false;

			// Parsed HeaderMember Information
			PRisMustUnderstand = false;

			// Parse State
			PRparseStateEnum = InternalParseStateE.Initial;
			PRisWaitingForNestedObject = false;


			// ValueType Fixup needed
			PRisValueTypeFixup = false;

			PRnewObj = null;
			PRobjectA = null;
			PRprimitiveArray = null;			
			PRobjectInfo = null;
			PRisRegistered = false;

			PRisXmlAttribute = false;
		}
コード例 #20
0
 public override void _0001(InternalArrayTypeE instance)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     m_ExpressionProperty._0001(instance);
 }