System.Runtime.Serialization.Formatters.Binary.BinaryCrossAppDomainMap.Read C# (CSharp) Method

Read() public method

public Read ( __BinaryParser input ) : void
input __BinaryParser
return void
        public  void Read(__BinaryParser input)
        {
            crossAppDomainArrayIndex = input.ReadInt32();
        }

Usage Example

示例#1
0
        internal void ReadCrossAppDomainMap()
        {
            BinaryCrossAppDomainMap record = new BinaryCrossAppDomainMap();

            record.Read(this);
            object mapObject = _objectReader.CrossAppDomainArray(record._crossAppDomainArrayIndex);
            BinaryObjectWithMap binaryObjectWithMap = mapObject as BinaryObjectWithMap;

            if (binaryObjectWithMap != null)
            {
                ReadObjectWithMap(binaryObjectWithMap);
            }
            else
            {
                BinaryObjectWithMapTyped binaryObjectWithMapTyped = mapObject as BinaryObjectWithMapTyped;
                if (binaryObjectWithMapTyped != null)
                {
                    ReadObjectWithMapTyped(binaryObjectWithMapTyped);
                }
                else
                {
                    throw new SerializationException(SR.Format(SR.Serialization_CrossAppDomainError, "BinaryObjectMap", mapObject));
                }
            }
        }
All Usage Examples Of System.Runtime.Serialization.Formatters.Binary.BinaryCrossAppDomainMap::Read